symfonic.cli.chat¶
chat ¶
symfonic chat routing through the public Agent.
HMS is an explicit durable composition, not a property of bare Agent.
The HMS route requires Postgres and never constructs SymfonicAgent.
ChatError ¶
Bases: RuntimeError
A chat invocation that cannot proceed, with an adopter-facing message.
ChatOutcome
dataclass
¶
ChatOutcome(text: str, runtime: Runtime, system_prompt_tokens: int | None, memory_entries_used: int, duration_ms: float, native_hms: NativeHmsOutcome | None = None)
What the turn produced, plus which runtime produced it.
ChatRequest
dataclass
¶
ChatRequest(query: str, tenant_id: str, dsn: str | None, model: str, enable_hms: bool, domain: str, retrieval_min_relevance: float = 0.0)
One symfonic chat invocation, decoded off the command line.
build_provider ¶
Resolve --model to a provider instance.
Raises:
| Type | Description |
|---|---|
ChatError
|
for an unknown name, or for a provider whose optional extra
is not installed โ with the |
Source code in src/symfonic/cli/chat.py
run_chat
async
¶
Execute one turn on whichever runtime :func:select_runtime picks.
Source code in src/symfonic/cli/chat.py
select_runtime ¶
Return the runtime this invocation needs.
HMS opts into the durable native composition. Without HMS, named domains and DSNs retain the presented public-Agent route.