MCPcopy Create free account
hub / github.com/docker/docker-agent / RunAgent

Method RunAgent

pkg/runtime/remote_client.go:31–31  ·  view source on GitHub ↗

RunAgent executes an agent and returns a channel of streaming events. model, when non-empty, is applied as a persistent override on the session's current agent before the turn starts.

(ctx context.Context, sessionID, agent string, messages []api.Message, model string)

Source from the content-addressed store, hash-verified

29 // model, when non-empty, is applied as a persistent override on the
30 // session's current agent before the turn starts.
31 RunAgent(ctx context.Context, sessionID, agent string, messages []api.Message, model string) (<-chan Event, error)
32
33 // RunAgentWithAgentName executes an agent with a specific agent name. See RunAgent for the meaning of model.
34 RunAgentWithAgentName(ctx context.Context, sessionID, agent, agentName string, messages []api.Message, model string) (<-chan Event, error)

Callers 2

RunStreamMethod · 0.65
RunLLMFunction · 0.65

Implementers 2

stubRemoteClientpkg/runtime/remote_contract_test.go
Clientpkg/runtime/client.go

Calls

no outgoing calls

Tested by

no test coverage detected