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

Function WithAgentName

pkg/session/session.go:863–867  ·  view source on GitHub ↗

WithAgentName pins this session to a specific agent. When set, RunStream resolves the agent from the session rather than the shared runtime state, which is required for concurrent background agent tasks.

(name string)

Source from the content-addressed store, hash-verified

861// resolves the agent from the session rather than the shared runtime state,
862// which is required for concurrent background agent tasks.
863func WithAgentName(name string) Opt {
864 return func(s *Session) {
865 s.AgentName = name
866 }
867}
868
869// WithParentID marks this session as a sub-session of the given parent.
870// Sub-sessions are not persisted as standalone entries in the session store.

Calls

no outgoing calls