AgentCore (the Core interface impl) belongs in internal/agent alongside the loop, session, and state it orchestrates — not in a separate one-file package. To break the resulting import cycle (agent → pkg/core → agent), define Event and EventHandler natively in pkg/core instead of aliasing from internal/agent. The agent loop now imports pkg/core for these types. Usage token tracking is internal to the loop and no longer emitted as an event (no consumer used it). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| core.go | ||
| hooks.go | ||
| signals.go | ||
| signals_unix.go | ||
| signals_windows.go | ||