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

Function newAgentContext

pkg/runtime/event.go:35–37  ·  view source on GitHub ↗

newAgentContext creates a new AgentContext with the current timestamp.

(agentName string)

Source from the content-addressed store, hash-verified

33
34// newAgentContext creates a new AgentContext with the current timestamp.
35func newAgentContext(agentName string) AgentContext {
36 return AgentContext{AgentName: agentName, Timestamp: time.Now()}
37}
38
39// UserMessageEvent is sent when a user message is received
40type UserMessageEvent struct {

Callers 15

UserMessageFunction · 0.85
PartialToolCallFunction · 0.85
ToolCallFunction · 0.85
ToolCallConfirmationFunction · 0.85
ToolCallOutputFunction · 0.85
ToolCallResponseFunction · 0.85
StreamStartedFunction · 0.85
AgentChoiceFunction · 0.85
AgentChoiceReasoningFunction · 0.85
ShellOutputFunction · 0.85
WarningFunction · 0.85
NewTokenUsageEventFunction · 0.85

Calls 1

NowMethod · 0.80