(p provider.Provider, system string, tools *tool.Registry)
| 36 | } |
| 37 | |
| 38 | func 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. |
no outgoing calls