pub struct RuntimeAgent {
pub system_prompt: String,
pub model: String,
pub tools: Vec<ToolDefinition>,
pub max_iterations: usize,
pub temperature: Option<f32>,
pub max_tokens: Option<u32>,
pub tool_search: Option<ToolSearchConfig>,
pub prompt_cache: Option<PromptCacheConfig>,
pub network_access: Option<NetworkAccessList>,
}Expand description
Runtime configuration for the agent loop
Fields§
§system_prompt: StringSystem prompt that defines the agent’s behavior
model: StringModel identifier (e.g., “gpt-5.2”, “claude-3-opus”)
tools: Vec<ToolDefinition>Available tools for the agent
max_iterations: usizeMaximum number of tool-calling iterations (prevents infinite loops)
temperature: Option<f32>Temperature for LLM sampling (0.0 - 2.0)
max_tokens: Option<u32>Maximum tokens to generate per response
tool_search: Option<ToolSearchConfig>Tool search config (set by openai_tool_search capability)
prompt_cache: Option<PromptCacheConfig>Prompt caching config (set by prompt_caching capability)
network_access: Option<NetworkAccessList>Merged network access list (harness ∩ agent ∩ session). Used by tools (web_fetch) to enforce URL access policy.
Implementations§
Trait Implementations§
Source§impl Clone for RuntimeAgent
impl Clone for RuntimeAgent
Source§fn clone(&self) -> RuntimeAgent
fn clone(&self) -> RuntimeAgent
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 moreSource§impl Debug for RuntimeAgent
impl Debug for RuntimeAgent
Source§impl Default for RuntimeAgent
impl Default for RuntimeAgent
Source§impl<'de> Deserialize<'de> for RuntimeAgent
impl<'de> Deserialize<'de> for RuntimeAgent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&RuntimeAgent> for LlmCallConfig
impl From<&RuntimeAgent> for LlmCallConfig
Source§fn from(runtime_agent: &RuntimeAgent) -> Self
fn from(runtime_agent: &RuntimeAgent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RuntimeAgent
impl RefUnwindSafe for RuntimeAgent
impl Send for RuntimeAgent
impl Sync for RuntimeAgent
impl Unpin for RuntimeAgent
impl UnsafeUnpin for RuntimeAgent
impl UnwindSafe for RuntimeAgent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request