MCPcopy
hub / github.com/docker/docker-agent / New

Function New

pkg/agent/agent.go:69–80  ·  view source on GitHub ↗

New creates a new agent

(name, prompt string, opts ...Opt)

Source from the content-addressed store, hash-verified

67
68// New creates a new agent
69func New(name, prompt string, opts ...Opt) *Agent {
70 agent := &Agent{
71 name: name,
72 instruction: prompt,
73 }
74
75 for _, opt := range opts {
76 opt(agent)
77 }
78
79 return agent
80}
81
82func (a *Agent) Name() string {
83 return a.name

Calls

no outgoing calls