File tree 2 files changed +25
-0
lines changed
libs/langchain-openai/src
2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -318,6 +318,19 @@ export interface ChatOpenAIStructuredOutputMethodOptions<
318
318
strict ?: boolean ;
319
319
}
320
320
321
+ /**
322
+ * @typedef {Object } ChatOpenAICallOptions
323
+ * @extends OpenAICallOptions
324
+ * @extends BaseFunctionCallOptions
325
+ * @property {ChatOpenAIToolType[] } [tools] - Array of tools to be used by the model.
326
+ * @property {OpenAIToolChoice } [tool_choice] - Specifies how the model should choose tools.
327
+ * @property {number } [promptIndex] - Index of the prompt to use.
328
+ * @property {{ type: "json_object" } } [response_format] - Specifies the format of the response.
329
+ * @property {number } [seed] - Seed for deterministic sampling.
330
+ * @property {{ include_usage: boolean } } [stream_options] - Options for streamed completions.
331
+ * @property {boolean } [parallel_tool_calls] - Whether to allow parallel tool calls.
332
+ * @property {boolean } [strict] - Whether to enforce strict schema validation.
333
+ */
321
334
export interface ChatOpenAICallOptions
322
335
extends OpenAICallOptions ,
323
336
BaseFunctionCallOptions {
@@ -398,7 +411,14 @@ export interface ChatOpenAIFields
398
411
* console.log(message);
399
412
*
400
413
* ```
414
+ *
415
+ *
416
+ * @extends {BaseChatModel<CallOptions, AIMessageChunk> }
417
+ * @implements {OpenAIChatInput}
418
+ * @implements {AzureOpenAIInput}
401
419
*/
420
+
421
+ /** {@inheritDoc ChatOpenAICallOptions } */
402
422
export class ChatOpenAI <
403
423
CallOptions extends ChatOpenAICallOptions = ChatOpenAICallOptions
404
424
>
Original file line number Diff line number Diff line change @@ -103,6 +103,11 @@ export type OpenAICoreRequestOptions<
103
103
idempotencyKey ?: string ;
104
104
} ;
105
105
106
+ /**
107
+ * @typedef {Object } OpenAICallOptions
108
+ * @extends BaseLanguageModelCallOptions
109
+ * @property {OpenAICoreRequestOptions } [options] - Additional options to pass to the underlying axios request.
110
+ */
106
111
export interface OpenAICallOptions extends BaseLanguageModelCallOptions {
107
112
/**
108
113
* Additional options to pass to the underlying axios request.
You can’t perform that action at this time.
0 commit comments