Skip to content

Chat

Provider-neutral conversations and model/tool loops.

Updated View as Markdown

cortavyn-chat provides a reusable ChatAgent over a provider-neutral ChatModel. Each turn appends the user message, invokes the model, executes requested tools concurrently, appends tool results, and repeats until the assistant returns no tool calls.

The agent owns the loop; provider adapters only map Cortavyn messages to provider protocols. This separation keeps tools, application context, and persistence under application control.

Core types

Type Responsibility
Conversation Immutable provider-neutral history
ChatAgent Model/tool orchestration loop
ChatTool Tool definition and executor pairing
ToolRuntime Run-scoped context, store, and progress writer

Continue with the Chat quickstart.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close