Files
e2e/docs/examples
Oskar Kwaśniewski d228e22ea3 feat(agents)!: plain-object agents entries; createAgent and limits removed (#646)
* feat(agents)!: plain-object agents entries, createAgent and limits removed

Each agents entry is one AgentConfig object: model, judge, system, context,
tools, maxSteps, maxModelCalls, judgmentTimeout, maxObservationBytes,
maxInputTokens, providerOptions, or executor for a custom brain (system and
tools rejected beside it). No inheritance between agents.

- createAgent() kept as a stub throwing INVALID_CONFIG; bare StepExecutor or
  legacy createAgent value as an entry fails naming { executor } / the object
- timeout -> judgmentTimeout, maxTurns removed (entry and
  createToolLoopExecutor), unknown keys get did-you-mean
- top-level limits removed; maxModelTokensPerCall -> per-agent
  maxInputTokens, the rest internal constants; report-1 run.limits keeps
  its shape, filled from max across agents plus the constants
- tools validated at config load; built-in agent built from the entry at
  fixture time; explore and the MCP catalog read the entry's tools
- migrate apps, docs, docs examples, init scaffold, skills, mobile README

* docs: AGENTS.md names the agent entry's model, not createAgent

* refactor(agents)!: delete createAgent instead of a throwing stub

* docs: MODEL_UNAVAILABLE scoped to the built-in agent, fixture-acquisition timing
2026-09-29 19:51:02 +02:00
..