Documentation menu

Core contracts

Shared schemas and service ports, independent of providers and hosts.

Core

@xandreed/core contains message schemas, plugin and configuration contracts, session events and service ports. The runtime and concrete implementations live in separate packages. @xandreed/sdk reexports the contracts for application authors.

The replaceable services include StepLoop, ConversationMemory, ResultDigester, ToolRegistry, Sessions, SessionLog, TurnAdmission, Tasks and ActionPolicy, and the optional busy-signal probes TurnActivity and TaskActivity.

The step loop is stepLoopPlugin from @xandreed/plugin-agent-loop. @xandreed/plugin-sessions owns serialized turns, durable events and forks; Agent.turn in the SDK composes one turn over them.

Core also ships the port contracts as runnable checks, to run against your own implementation: see conformance kits.

See SDK and sessions.