pub struct PreparedCall {Show 24 fields
pub input: AgentInput,
pub instructions: Option<Instructions>,
pub allow_system_in_messages: bool,
pub model: LanguageModelRef,
pub tools: ToolSet,
pub tool_choice: Option<ToolChoice>,
pub active_tools: Option<Vec<ToolName>>,
pub tool_order: Vec<ToolName>,
pub tools_context: Option<JsonValue>,
pub runtime_context: Option<JsonValue>,
pub tool_approval: Option<Arc<dyn ApprovalPolicy>>,
pub tool_approval_secret: Option<Arc<SecretBox<[u8]>>>,
pub tool_callers: ToolCallers,
pub prepare_step: Option<Arc<dyn PrepareStep>>,
pub repair_tool_call: Option<Arc<dyn ToolCallRepair>>,
pub refine_tool_inputs: RefineToolInputs,
pub download: Option<Arc<dyn DownloadFn>>,
pub settings: CallSettings,
pub stop_conditions: Vec<Arc<dyn StopCondition>>,
pub timeout: Timeout,
pub retry_policy: RetryPolicy,
pub include: Include,
pub max_tool_concurrency: Option<usize>,
pub telemetry: TelemetryOptions,
}Expand description
The effective settings of one call, as seen by PrepareCall.
Fields start with the agent’s configuration and the call’s input; the
prepare function may rewrite them. None means “not set”. An explicit
call timeout takes precedence after preparation.
Fields§
§input: AgentInputThe prompt or conversation.
instructions: Option<Instructions>System instructions.
allow_system_in_messages: boolWhether system messages are allowed inside the conversation.
model: LanguageModelRefThe model.
tools: ToolSetThe tools.
tool_choice: Option<ToolChoice>Tool choice.
active_tools: Option<Vec<ToolName>>Tools sent to the model (all when None).
tool_order: Vec<ToolName>Tool order sent to the model.
tools_context: Option<JsonValue>Shared tool context.
runtime_context: Option<JsonValue>Application state for the generation lifecycle, separate from tool context.
tool_approval: Option<Arc<dyn ApprovalPolicy>>Call-level approval policy; None uses the tools’ own approval declarations.
tool_approval_secret: Option<Arc<SecretBox<[u8]>>>Secret used to sign approval requests, if configured.
tool_callers: ToolCallersAllowed callers for individual tools.
prepare_step: Option<Arc<dyn PrepareStep>>Callback that selects settings before each step.
repair_tool_call: Option<Arc<dyn ToolCallRepair>>Callback that repairs invalid tool calls.
refine_tool_inputs: RefineToolInputsInput normalization functions indexed by tool name.
download: Option<Arc<dyn DownloadFn>>Downloader for file URLs that the model cannot fetch itself.
settings: CallSettingsSampling settings, headers and provider options.
stop_conditions: Vec<Arc<dyn StopCondition>>Stop conditions (default: twenty steps).
timeout: TimeoutTimeouts.
retry_policy: RetryPolicyRetry policy.
include: IncludePayloads copied into step results.
max_tool_concurrency: Option<usize>Tool concurrency limit.
telemetry: TelemetryOptionsTelemetry options.
Trait Implementations§
Source§impl Clone for PreparedCall
impl Clone for PreparedCall
Source§fn clone(&self) -> PreparedCall
fn clone(&self) -> PreparedCall
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more