pub struct AgentInvokeRequest<N: StreamMode> { /* private fields */ }Expand description
Frozen request body for POST /v1/agents.
Implementations§
Source§impl<N: StreamMode> AgentInvokeRequest<N>
impl<N: StreamMode> AgentInvokeRequest<N>
Sourcepub fn builder(agent_id: AgentId) -> AgentInvokeRequestBuilder<N>
pub fn builder(agent_id: AgentId) -> AgentInvokeRequestBuilder<N>
Start an invocation request for a frozen Agent v1 identifier.
Sourcepub fn messages(&self) -> &[AgentMessage]
pub fn messages(&self) -> &[AgentMessage]
Borrow request messages.
Sourcepub const fn custom_variables(&self) -> &AgentCustomVariables
pub const fn custom_variables(&self) -> &AgentCustomVariables
Borrow the open variables object.
Trait Implementations§
Source§impl<N: Clone + StreamMode> Clone for AgentInvokeRequest<N>
impl<N: Clone + StreamMode> Clone for AgentInvokeRequest<N>
Source§fn clone(&self) -> AgentInvokeRequest<N>
fn clone(&self) -> AgentInvokeRequest<N>
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<N: StreamMode> Debug for AgentInvokeRequest<N>
impl<N: StreamMode> Debug for AgentInvokeRequest<N>
Source§impl<N: StreamMode> Serialize for AgentInvokeRequest<N>
impl<N: StreamMode> Serialize for AgentInvokeRequest<N>
Auto Trait Implementations§
impl<N> Freeze for AgentInvokeRequest<N>
impl<N> RefUnwindSafe for AgentInvokeRequest<N>where
N: RefUnwindSafe,
impl<N> Send for AgentInvokeRequest<N>where
N: Send,
impl<N> Sync for AgentInvokeRequest<N>where
N: Sync,
impl<N> Unpin for AgentInvokeRequest<N>where
N: Unpin,
impl<N> UnsafeUnpin for AgentInvokeRequest<N>
impl<N> UnwindSafe for AgentInvokeRequest<N>where
N: 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