pub struct InputTokenCountParams {
pub conversation: Option<Conversation>,
pub input: Option<String>,
pub instructions: Option<String>,
pub model: Option<String>,
pub parallel_tool_calls: Option<bool>,
pub previous_response_id: Option<String>,
pub reasoning: Option<Value>,
pub text: Option<Text>,
pub tool_choice: Option<ToolChoice>,
pub tools: Option<Vec<Value>>,
pub truncation: Option<InputTokenCountParamsTruncation>,
}Fields§
§conversation: Option<Conversation>The conversation that this response belongs to.
input: Option<String>Text, image, or file inputs to the model, used to generate a response
instructions: Option<String>A system (or developer) message inserted into the model’s context. When used
model: Option<String>Model ID used to generate the response, like gpt-4o or o3.
parallel_tool_calls: Option<bool>Whether to allow the model to run tool calls in parallel.
previous_response_id: Option<String>The unique ID of the previous response to the model.
reasoning: Option<Value>gpt-5 and o-series models only Configuration options for
text: Option<Text>Configuration options for a text response from the model.
tool_choice: Option<ToolChoice>Controls which tool the model should use, if any.
tools: Option<Vec<Value>>An array of tools the model may call while generating a response.
truncation: Option<InputTokenCountParamsTruncation>The truncation strategy to use for the model response.
Trait Implementations§
Source§impl Clone for InputTokenCountParams
impl Clone for InputTokenCountParams
Source§fn clone(&self) -> InputTokenCountParams
fn clone(&self) -> InputTokenCountParams
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 InputTokenCountParams
impl Debug for InputTokenCountParams
Source§impl<'de> Deserialize<'de> for InputTokenCountParams
impl<'de> Deserialize<'de> for InputTokenCountParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InputTokenCountParams
impl RefUnwindSafe for InputTokenCountParams
impl Send for InputTokenCountParams
impl Sync for InputTokenCountParams
impl Unpin for InputTokenCountParams
impl UnsafeUnpin for InputTokenCountParams
impl UnwindSafe for InputTokenCountParams
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