Skip to main content

Crate kcode_agent_runtime

Crate kcode_agent_runtime 

Source
Expand description

Provider-neutral agent loops over kcode-intelligence-router.

Structs§

AgentRuntime
Cloneable provider-neutral subagent runtime.
ContextBudget
Read-only capacity view supplied while a host evaluates a tool.
PreparedRound
Exact provider input prepared by the application for one primary round.
RoundCompletion
Provider completion summarized for the application-owned session policy.
RunRequest
Inputs for one complete subagent run.
RunResult
Completed subagent output.
SessionRoundLimitError
Error returned when a restored primary turn exhausts its cumulative round budget.
SessionRunRequest
Inputs shared by every provider call in one primary session run.
SessionToolOutcome
Complete application handling of one primary-session tool call.
StateUpdate
One replaceable state section rendered into every later context slice.
ToolCall
One application tool call requested by a subagent.
ToolOutcome
Result returned by the application after one tool or capture operation.

Enums§

AuditEvent
One complete, typed audit fact selected by the subagent runtime.
ProviderResume
Application preparation immediately before a primary provider turn resumes.
RoundPreparation
Result of preparing the next primary round.
SessionControl
Application decision after completing a semantic primary-session transition.
SessionEvent
One durable provider-protocol fact emitted by the primary runtime.

Constants§

DEFAULT_ROUND_LIMIT
Default maximum provider calls for primary and delegated agent loops.

Traits§

Host
Application-owned behavior invoked by the generic subagent loop.
SessionHost
Application-owned semantics invoked by the primary agent runtime.

Functions§

is_session_round_limit
Returns whether an error is the primary runtime’s round-limit signal.

Type Aliases§

HostFuture
A boxed asynchronous host operation.