Module runtime

Module runtime 

Source
Expand description

Runtime contracts grouped by domain boundaries.

Re-exports§

pub use action::Action;
pub use activity::ActivityManager;
pub use activity::NoOpActivityManager;
pub use behavior::build_read_only_context_from_step;
pub use behavior::AgentBehavior;
pub use behavior::NoOpBehavior;
pub use behavior::ReadOnlyContext;
pub use extensions::Extensions;
pub use inference::StopReason;
pub use inference::StreamResult;
pub use inference::TokenUsage;
pub use phase::AfterInferenceContext;
pub use phase::AfterToolExecuteContext;
pub use phase::BeforeInferenceContext;
pub use phase::BeforeToolExecuteContext;
pub use phase::Phase;
pub use phase::PhaseContext;
pub use phase::PhasePolicy;
pub use phase::RunAction;
pub use phase::RunEndContext;
pub use phase::RunStartContext;
pub use phase::StepContext;
pub use phase::StepEndContext;
pub use phase::StepOutcome;
pub use phase::StepStartContext;
pub use phase::SuspendTicket;
pub use phase::ToolCallAction;
pub use run::run_lifecycle_from_state;
pub use run::FlowControl;
pub use run::InferenceError;
pub use run::RunContext;
pub use run::RunDelta;
pub use run::RunIdentity;
pub use run::RunLifecycleAction;
pub use run::RunLifecycleState;
pub use run::RunPolicy;
pub use run::RunStatus;
pub use run::StoppedReason;
pub use run::TerminationReason;
pub use state::reduce_state_actions;
pub use state::AnyStateAction;
pub use state::ScopeContext;
pub use state::SerializedStateAction;
pub use state::StateActionDecodeError;
pub use state::StateActionDeserializerRegistry;
pub use state::StateScopeRegistry;
pub use tool_call::suspended_calls_from_state;
pub use tool_call::tool_call_states_from_state;
pub use tool_call::ActivityContext;
pub use tool_call::DecisionReplayPolicy;
pub use tool_call::PendingToolCall;
pub use tool_call::SuspendedCall;
pub use tool_call::SuspendedCallAction;
pub use tool_call::SuspendedCallState;
pub use tool_call::Suspension;
pub use tool_call::SuspensionResponse;
pub use tool_call::ToolCallContext;
pub use tool_call::ToolCallOutcome;
pub use tool_call::ToolCallProgressSink;
pub use tool_call::ToolCallProgressState;
pub use tool_call::ToolCallProgressStatus;
pub use tool_call::ToolCallProgressUpdate;
pub use tool_call::ToolCallResume;
pub use tool_call::ToolCallResumeMode;
pub use tool_call::ToolCallState;
pub use tool_call::ToolCallStateAction;
pub use tool_call::ToolCallStatus;
pub use tool_call::ToolExecution;
pub use tool_call::ToolExecutionEffect;
pub use tool_call::ToolExecutionRequest;
pub use tool_call::ToolExecutionResult;
pub use tool_call::ToolExecutor;
pub use tool_call::ToolExecutorError;
pub use tool_call::ToolGate;
pub use tool_call::ToolProgressState;
pub use tool_call::TOOL_CALL_PROGRESS_ACTIVITY_TYPE;
pub use tool_call::TOOL_CALL_PROGRESS_SCHEMA;
pub use tool_call::TOOL_CALL_PROGRESS_TYPE;
pub use tool_call::TOOL_PROGRESS_ACTIVITY_TYPE;
pub use tool_call::TOOL_PROGRESS_ACTIVITY_TYPE_LEGACY;

Modules§

action
activity
Activity management trait for external state updates.
behavior
extensions
inference
phase
run
state
tool_call

Enums§

StateScope
Lifecycle scope of a StateSpec type.

Traits§

StateSpec
Extends State with a typed action and a pure reducer.