Skip to content

Commit b30bde5

Browse files
committed
Move code
Signed-off-by: David Gageot <david.gageot@docker.com>
1 parent cbcbc4a commit b30bde5

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

pkg/agent/agent.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
101106
func (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-
139139
func (a *Agent) ensureToolSetsAreStarted(ctx context.Context) {
140140
for _, toolSet := range a.toolsets {
141141
// Skip if toolset is already started

0 commit comments

Comments
 (0)