pub struct PreparedCall {Show 16 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 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.
Every field starts with the agent’s configuration (with the call’s
input and timeout applied); the prepare function may rewrite any of
them. None means “not set”.
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.
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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for PreparedCall
impl !UnwindSafe for PreparedCall
impl Freeze for PreparedCall
impl Send for PreparedCall
impl Sync for PreparedCall
impl Unpin for PreparedCall
impl UnsafeUnpin for PreparedCall
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more