MCPcopy Index your code
hub / github.com/docker/docker-agent / AgentInfo

Function AgentInfo

pkg/runtime/event.go:635–649  ·  view source on GitHub ↗
(agentName, model, description, welcomeMessage string, contextLimit ...int64)

Source from the content-addressed store, hash-verified

633}
634
635func AgentInfo(agentName, model, description, welcomeMessage string, contextLimit ...int64) Event {
636 var limit int64
637 if len(contextLimit) > 0 {
638 limit = contextLimit[0]
639 }
640 return &AgentInfoEvent{
641 Type: "agent_info",
642 AgentName: agentName,
643 Model: model,
644 Description: description,
645 WelcomeMessage: welcomeMessage,
646 ContextLimit: limit,
647 AgentContext: newAgentContext(agentName),
648 }
649}
650
651// AgentDetails contains information about an agent for display in the sidebar
652type AgentDetails struct {

Callers 15

runHarnessAgentMethod · 0.70
runStreamLoopMethod · 0.70
runTurnMethod · 0.70
TestSimpleFunction · 0.70
TestWithReasoningFunction · 0.70
TestEmitStartupInfoFunction · 0.70
swapCurrentAgentMethod · 0.70
EmitStartupInfoMethod · 0.70

Calls 1

newAgentContextFunction · 0.85

Tested by 6

TestSimpleFunction · 0.56
TestWithReasoningFunction · 0.56
TestEmitStartupInfoFunction · 0.56