diff --git a/libs/sdk-js/src/types.messages.ts b/libs/sdk-js/src/types.messages.ts index 79ed78473..a2eb34a9a 100644 --- a/libs/sdk-js/src/types.messages.ts +++ b/libs/sdk-js/src/types.messages.ts @@ -8,19 +8,10 @@ type MessageContentText = { type: "text"; text: string }; type MessageContentComplex = MessageContentText | MessageContentImageUrl; type MessageContent = string | MessageContentComplex[]; -type MessageAdditionalKwargs = { - [x: string]: unknown; - - function_call?: { arguments: string; name: string } | undefined; - tool_calls?: - | { - id: string; - function: { arguments: string; name: string }; - type: "function"; - index?: number | undefined; - }[] - | undefined; -}; +/** + * Model-specific additional kwargs, which is passed back to the underlying LLM. + */ +type MessageAdditionalKwargs = Record; export type HumanMessage = { type: "human";