pub struct AgentConversationRequest { /* private fields */ }Expand description
Frozen request body for POST /v1/agents/conversation.
Implementations§
Source§impl AgentConversationRequest
impl AgentConversationRequest
Sourcepub fn new(
agent_id: impl Into<String>,
conversation_id: impl Into<String>,
) -> ZaiResult<Self>
pub fn new( agent_id: impl Into<String>, conversation_id: impl Into<String>, ) -> ZaiResult<Self>
Validate identifiers and construct a conversation-continuation request.
Sourcepub fn with_custom_variables(
self,
variables: AgentConversationVariables,
) -> Self
pub fn with_custom_variables( self, variables: AgentConversationVariables, ) -> Self
Set the endpoint’s closed custom-variables object.
Sourcepub fn conversation_id(&self) -> &str
pub fn conversation_id(&self) -> &str
Borrow the conversation identifier.
Sourcepub const fn custom_variables(&self) -> Option<&AgentConversationVariables>
pub const fn custom_variables(&self) -> Option<&AgentConversationVariables>
Borrow the optional custom variables.
Trait Implementations§
Source§impl Clone for AgentConversationRequest
impl Clone for AgentConversationRequest
Source§fn clone(&self) -> AgentConversationRequest
fn clone(&self) -> AgentConversationRequest
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 AgentConversationRequest
impl Debug for AgentConversationRequest
Auto Trait Implementations§
impl Freeze for AgentConversationRequest
impl RefUnwindSafe for AgentConversationRequest
impl Send for AgentConversationRequest
impl Sync for AgentConversationRequest
impl Unpin for AgentConversationRequest
impl UnsafeUnpin for AgentConversationRequest
impl UnwindSafe for AgentConversationRequest
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