Type Alias ChatOpenAICallOptions
ChatOpenAICallOptions: { audio: undefined | ChatCompletionAudioParam; callbacks?: undefined | Callbacks; configurable: undefined | Record<string, any>; function_call: undefined | FunctionCallOption; functions: undefined | FunctionDefinition[]; include: undefined | null | ResponseIncludable[]; ls_structured_output_format?: undefined | { kwargs: { method: string; }; schema?: JsonSchema7Type; }; maxConcurrency: undefined | number; metadata?: undefined | Record<string, unknown>; modalities: undefined | ChatCompletionModality[]; options?: undefined | RequestOptions; parallel_tool_calls: undefined | boolean; prediction: undefined | ChatCompletionPredictionContent; previous_response_id: undefined | null | string; promptIndex: undefined | number; reasoning: undefined | Reasoning; recursionLimit: undefined | number; response_format: undefined | ChatOpenAIResponseFormat; runId?: undefined | string; runName?: undefined | string; seed: undefined | number; service_tier: | undefined | null | "auto" | "default" | "flex"; signal: undefined | AbortSignal; stop?: undefined | string[]; stream_options: undefined | ChatCompletionStreamOptions; strict: undefined | boolean; tags?: undefined | string[]; text: undefined | ResponseTextConfig; timeout: undefined | number; tool_choice: | undefined | string | ChatCompletionNamedToolChoice | ToolChoiceTypes | ToolChoiceFunction; tools: undefined | ChatOpenAIToolType[]; truncation: | undefined | null | "auto" | "disabled"; } Type declaration
Optional
callbacks?: undefined | Callbacks
configurable: undefined | Record<string, any>
function_call: undefined | FunctionCallOption
functions: undefined | FunctionDefinition[]
Optional
ls_structured_output_format?: undefined | {
kwargs: {
method: string;
};
schema?: JsonSchema7Type;
}
maxConcurrency: undefined | number
Optional
metadata?: undefined | Record<string, unknown>
Optional
options?: undefined | RequestOptions
parallel_tool_calls: undefined | boolean
previous_response_id: undefined | null | string
promptIndex: undefined | number
reasoning: undefined | Reasoning
recursionLimit: undefined | number
Optional
runId?: undefined | string
Optional
runName?: undefined | string
seed: undefined | number
service_tier:
| undefined
| null
| "auto"
| "default"
| "flex"
signal: undefined | AbortSignal
Optional
stop?: undefined | string[]
strict: undefined | boolean
Optional
tags?: undefined | string[]
timeout: undefined | number
tools: undefined | ChatOpenAIToolType[]
truncation:
| undefined
| null
| "auto"
| "disabled"
Callbacks for this call and any sub-calls (eg. a Chain calling an LLM). Tags are passed to all callbacks, metadata is passed to handle*Start callbacks.