Skip to main content

Module runtime

Module runtime 

Source

Modules§

openai
OpenAI-compatible provider engine.
subagent

Structs§

Runtime
The core runtime — manages API communication, tool execution, authentication, and streaming for all SynapsCLI binaries (chat, chatui, server, agent, watcher).

Enums§

AgentEvent
BeforeToolCallDecision
Result of resolving before_tool_call extension policy.
LlmEvent
SessionEvent
StreamEvent
Top-level stream event — grouped into concern-specific sub-enums.

Functions§

emit_after_tool_call
Emit an after_tool_call event and include the runtime tool name when it differs from the API-safe name.
emit_before_tool_call
Emit a before_tool_call event and include the runtime tool name when it differs from the API-safe name.
resolve_before_tool_call_decision
Resolve before_tool_call policy into executable input or a block reason.
resolve_before_tool_call_result
Resolve a before_tool_call result that may request user confirmation.