File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,6 +97,11 @@ func (a *Agent) Model() provider.Provider {
9797 return a .models [rand .Intn (len (a .models ))]
9898}
9999
100+ // Commands returns the named commands configured for this agent.
101+ func (a * Agent ) Commands () map [string ]string {
102+ return a .commands
103+ }
104+
100105// Tools returns the tools available to this agent
101106func (a * Agent ) Tools (ctx context.Context ) ([]tools.Tool , error ) {
102107 a .ensureToolSetsAreStarted (ctx )
@@ -131,11 +136,6 @@ func (a *Agent) ToolSets() []tools.ToolSet {
131136 return toolSets
132137}
133138
134- // Commands returns the named commands configured for this agent.
135- func (a * Agent ) Commands () map [string ]string {
136- return a .commands
137- }
138-
139139func (a * Agent ) ensureToolSetsAreStarted (ctx context.Context ) {
140140 for _ , toolSet := range a .toolsets {
141141 // Skip if toolset is already started
You can’t perform that action at this time.
0 commit comments