MCPcopy Create free account
hub / github.com/betta-tech/byo-coding-agent / New

Function New

internal/agent/agent.go:38–46  ·  view source on GitHub ↗
(p provider.Provider, system string, tools *tool.Registry)

Source from the content-addressed store, hash-verified

36}
37
38func New(p provider.Provider, system string, tools *tool.Registry) *Agent {
39 return &Agent{
40 Provider: p,
41 Tools: tools,
42 System: system,
43 Compactor: compact.NoCompaction{},
44 MaxTurns: 20,
45 }
46}
47
48// Messages returns the agent's conversation slice. Callers (e.g. /compact)
49// may read it, but should not mutate it directly — use SetMessages instead.

Callers 3

mainFunction · 0.92
RunMethod · 0.92
newTestAgentFunction · 0.85

Calls

no outgoing calls

Tested by 1

newTestAgentFunction · 0.68