ResponseTokenCountRequest
@Serializable
Input whose token count is estimated without generating a response.
Constructors
Link copied to clipboard
constructor(model: ModelId? = null, input: ResponseInput? = null, instructions: String? = null, conversation: String? = null, previousResponseId: ResponseId? = null, parallelToolCalls: Boolean? = null, reasoning: ResponseReasoningOptions? = null, text: ResponseTextOptions? = null, toolChoice: JsonElement? = null, tools: List<ResponseToolDefinition>? = null, truncation: String? = null, personality: String? = null)
Properties
Link copied to clipboard
Conversation supplying context.
Link copied to clipboard
Text or structured context.
Link copied to clipboard
Instructions to include.
Link copied to clipboard
Whether tools can execute in parallel.
Link copied to clipboard
Personality configuration included in the estimate.
Link copied to clipboard
Prior stored response supplying context.
Link copied to clipboard
Reasoning configuration included in the estimate.
Link copied to clipboard
Output format included in the estimate.
Link copied to clipboard
Tool selection configuration.
Link copied to clipboard
Available tools included in the estimate.
Link copied to clipboard
Context truncation strategy.