pub struct CreateTurnRequest {
pub scope_id: ScopeId,
pub role: TurnRole,
pub content: String,
pub agent_id: Option<AgentId>,
pub tokens_input: Option<i64>,
pub tokens_output: Option<i64>,
pub model: Option<String>,
pub metadata: Option<Value>,
}Expand description
Create a new turn (conversation message).
Fields§
§scope_id: ScopeId§role: TurnRole§content: String§agent_id: Option<AgentId>§tokens_input: Option<i64>§tokens_output: Option<i64>§model: Option<String>§metadata: Option<Value>Trait Implementations§
Source§impl Clone for CreateTurnRequest
impl Clone for CreateTurnRequest
Source§fn clone(&self) -> CreateTurnRequest
fn clone(&self) -> CreateTurnRequest
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 Debug for CreateTurnRequest
impl Debug for CreateTurnRequest
Auto Trait Implementations§
impl Freeze for CreateTurnRequest
impl RefUnwindSafe for CreateTurnRequest
impl Send for CreateTurnRequest
impl Sync for CreateTurnRequest
impl Unpin for CreateTurnRequest
impl UnwindSafe for CreateTurnRequest
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