tirea_contract/runtime/
mod.rs1pub mod action;
4pub mod activity;
5pub mod behavior;
6pub mod extensions;
7pub mod inference;
8pub mod phase;
9pub mod run;
10pub mod state;
11pub mod tool_call;
12
13pub use action::Action;
14pub use activity::{ActivityManager, NoOpActivityManager};
15pub use behavior::{
16 build_read_only_context_from_step, AgentBehavior, NoOpBehavior, ReadOnlyContext,
17};
18pub use extensions::Extensions;
19pub use inference::{StopReason, StreamResult, TokenUsage};
20pub use phase::{
21 AfterInferenceContext, AfterToolExecuteContext, BeforeInferenceContext,
22 BeforeToolExecuteContext, Phase, PhaseContext, PhasePolicy, RunAction, RunEndContext,
23 RunStartContext, StepContext, StepEndContext, StepOutcome, StepStartContext, SuspendTicket,
24 ToolCallAction,
25};
26pub use run::{
27 run_lifecycle_from_state, FlowControl, InferenceError, RunContext, RunDelta, RunIdentity,
28 RunLifecycleAction, RunLifecycleState, RunPolicy, RunStatus, StoppedReason, TerminationReason,
29};
30pub use state::{
31 reduce_state_actions, AnyStateAction, ScopeContext, SerializedStateAction,
32 StateActionDecodeError, StateActionDeserializerRegistry, StateScope, StateScopeRegistry,
33 StateSpec,
34};
35pub use tool_call::{
36 suspended_calls_from_state, tool_call_states_from_state, ActivityContext, DecisionReplayPolicy,
37 PendingToolCall, SuspendedCall, SuspendedCallAction, SuspendedCallState, Suspension,
38 SuspensionResponse, ToolCallContext, ToolCallOutcome, ToolCallProgressSink,
39 ToolCallProgressState, ToolCallProgressStatus, ToolCallProgressUpdate, ToolCallResume,
40 ToolCallResumeMode, ToolCallState, ToolCallStateAction, ToolCallStatus, ToolExecution,
41 ToolExecutionEffect, ToolExecutionRequest, ToolExecutionResult, ToolExecutor,
42 ToolExecutorError, ToolGate, ToolProgressState, TOOL_CALL_PROGRESS_ACTIVITY_TYPE,
43 TOOL_CALL_PROGRESS_SCHEMA, TOOL_CALL_PROGRESS_TYPE, TOOL_PROGRESS_ACTIVITY_TYPE,
44 TOOL_PROGRESS_ACTIVITY_TYPE_LEGACY,
45};