pub struct AgentTurnResponse {
pub model: String,
pub response_id: String,
pub text: String,
pub tool_call: Option<AgentToolCall>,
pub usage: Option<AgentTokenUsage>,
pub request_id: Option<String>,
}Expand description
Normalized result of one non-streaming OpenAI text/tool turn.
Fields§
§model: StringActual model identifier returned by OpenAI.
response_id: StringOpenAI response identifier.
text: StringOrdered assistant text.
tool_call: Option<AgentToolCall>At most one function call.
usage: Option<AgentTokenUsage>Provider token usage, when returned.
request_id: Option<String>HTTP request identifier, when returned.
Trait Implementations§
Source§impl Clone for AgentTurnResponse
impl Clone for AgentTurnResponse
Source§fn clone(&self) -> AgentTurnResponse
fn clone(&self) -> AgentTurnResponse
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 AgentTurnResponse
impl Debug for AgentTurnResponse
impl Eq for AgentTurnResponse
Source§impl PartialEq for AgentTurnResponse
impl PartialEq for AgentTurnResponse
impl StructuralPartialEq for AgentTurnResponse
Auto Trait Implementations§
impl Freeze for AgentTurnResponse
impl RefUnwindSafe for AgentTurnResponse
impl Send for AgentTurnResponse
impl Sync for AgentTurnResponse
impl Unpin for AgentTurnResponse
impl UnsafeUnpin for AgentTurnResponse
impl UnwindSafe for AgentTurnResponse
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