pub struct RunAgentParams<StateT: AgentState = JsonValue, FwdPropsT: FwdProps = JsonValue> {
pub run_id: Option<RunId>,
pub tools: Option<Vec<Tool>>,
pub context: Option<Vec<Context>>,
pub forwarded_props: Option<FwdPropsT>,
pub messages: Vec<Message>,
pub state: StateT,
}Expand description
Parameters for running an agent.
Fields§
§run_id: Option<RunId>§tools: Option<Vec<Tool>>§context: Option<Vec<Context>>§forwarded_props: Option<FwdPropsT>§messages: Vec<Message>§state: StateTTrait Implementations§
Source§impl<StateT: Clone + AgentState, FwdPropsT: Clone + FwdProps> Clone for RunAgentParams<StateT, FwdPropsT>
impl<StateT: Clone + AgentState, FwdPropsT: Clone + FwdProps> Clone for RunAgentParams<StateT, FwdPropsT>
Source§fn clone(&self) -> RunAgentParams<StateT, FwdPropsT>
fn clone(&self) -> RunAgentParams<StateT, FwdPropsT>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<StateT: Debug + AgentState, FwdPropsT: Debug + FwdProps> Debug for RunAgentParams<StateT, FwdPropsT>
impl<StateT: Debug + AgentState, FwdPropsT: Debug + FwdProps> Debug for RunAgentParams<StateT, FwdPropsT>
Source§impl<StateT: Default + AgentState, FwdPropsT: Default + FwdProps> Default for RunAgentParams<StateT, FwdPropsT>
impl<StateT: Default + AgentState, FwdPropsT: Default + FwdProps> Default for RunAgentParams<StateT, FwdPropsT>
Source§fn default() -> RunAgentParams<StateT, FwdPropsT>
fn default() -> RunAgentParams<StateT, FwdPropsT>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<StateT, FwdPropsT> Freeze for RunAgentParams<StateT, FwdPropsT>
impl<StateT, FwdPropsT> RefUnwindSafe for RunAgentParams<StateT, FwdPropsT>where
StateT: RefUnwindSafe,
FwdPropsT: RefUnwindSafe,
impl<StateT, FwdPropsT> Send for RunAgentParams<StateT, FwdPropsT>
impl<StateT, FwdPropsT> Sync for RunAgentParams<StateT, FwdPropsT>
impl<StateT, FwdPropsT> Unpin for RunAgentParams<StateT, FwdPropsT>
impl<StateT, FwdPropsT> UnwindSafe for RunAgentParams<StateT, FwdPropsT>where
StateT: UnwindSafe,
FwdPropsT: UnwindSafe,
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