@letta-ai/letta-client 0.1.178 → 0.1.179
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/agents/client/Client.js +10 -10
- package/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/files/client/Client.js +3 -3
- package/api/resources/agents/resources/folders/client/Client.js +3 -3
- package/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +8 -8
- package/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/batches/client/Client.js +4 -4
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/api/resources/embeddingModels/client/Client.js +1 -1
- package/api/resources/folders/client/Client.js +9 -9
- package/api/resources/folders/resources/files/client/Client.js +3 -3
- package/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/api/resources/groups/client/Client.js +6 -6
- package/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +7 -7
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/jobs/client/Client.js +5 -5
- package/api/resources/messages/client/Client.js +1 -1
- package/api/resources/models/client/Client.js +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +6 -6
- package/api/resources/runs/client/Client.js +4 -4
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/sources/client/Client.js +10 -10
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/steps/client/Client.js +3 -3
- package/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/api/resources/tags/client/Client.js +1 -1
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +20 -20
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/ChatCompletionAllowedToolChoiceParam.d.ts +8 -0
- package/api/types/ChatCompletionAllowedToolsParam.d.ts +8 -0
- package/api/types/ChatCompletionAllowedToolsParamMode.d.ts +8 -0
- package/api/types/ChatCompletionAllowedToolsParamMode.js +10 -0
- package/api/types/ChatCompletionAssistantMessageParam.d.ts +1 -1
- package/api/types/ChatCompletionAssistantMessageParamToolCallsItem.d.ts +5 -0
- package/api/types/ChatCompletionCustomToolParam.d.ts +8 -0
- package/api/types/{ChatCompletionToolParam.d.ts → ChatCompletionFunctionToolParam.d.ts} +1 -1
- package/api/types/ChatCompletionMessageCustomToolCallParam.d.ts +9 -0
- package/api/types/{ChatCompletionMessageToolCall.d.ts → ChatCompletionMessageFunctionToolCall.d.ts} +1 -1
- package/api/types/ChatCompletionMessageFunctionToolCallParam.d.ts +9 -0
- package/api/types/ChatCompletionNamedToolChoiceCustomParam.d.ts +8 -0
- package/api/types/ChatCompletionNamedToolChoiceCustomParam.js +5 -0
- package/api/types/ChatCompletionStreamOptionsParam.d.ts +1 -0
- package/api/types/CompletionCreateParamsNonStreaming.d.ts +2 -1
- package/api/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
- package/api/types/CompletionCreateParamsNonStreamingReasoningEffort.d.ts +2 -1
- package/api/types/CompletionCreateParamsNonStreamingReasoningEffort.js +1 -0
- package/api/types/CompletionCreateParamsNonStreamingToolChoice.d.ts +1 -1
- package/api/types/CompletionCreateParamsNonStreamingToolsItem.d.ts +5 -0
- package/api/types/CompletionCreateParamsNonStreamingToolsItem.js +5 -0
- package/api/types/CompletionCreateParamsNonStreamingVerbosity.d.ts +9 -0
- package/api/types/CompletionCreateParamsNonStreamingVerbosity.js +11 -0
- package/api/types/CompletionCreateParamsStreaming.d.ts +2 -1
- package/api/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
- package/api/types/CompletionCreateParamsStreamingReasoningEffort.d.ts +2 -1
- package/api/types/CompletionCreateParamsStreamingReasoningEffort.js +1 -0
- package/api/types/CompletionCreateParamsStreamingToolChoice.d.ts +1 -1
- package/api/types/CompletionCreateParamsStreamingToolsItem.d.ts +5 -0
- package/api/types/CompletionCreateParamsStreamingToolsItem.js +5 -0
- package/api/types/CompletionCreateParamsStreamingVerbosity.d.ts +9 -0
- package/api/types/CompletionCreateParamsStreamingVerbosity.js +11 -0
- package/api/types/CustomFormatGrammar.d.ts +8 -0
- package/api/types/CustomFormatGrammar.js +5 -0
- package/api/types/CustomFormatGrammarGrammar.d.ts +8 -0
- package/api/types/CustomFormatGrammarGrammar.js +5 -0
- package/api/types/CustomFormatGrammarGrammarSyntax.d.ts +8 -0
- package/api/types/CustomFormatGrammarGrammarSyntax.js +10 -0
- package/api/types/CustomFormatText.d.ts +6 -0
- package/api/types/CustomFormatText.js +5 -0
- package/api/types/McpTool.d.ts +2 -0
- package/api/types/McpToolHealth.d.ts +12 -0
- package/api/types/McpToolHealth.js +5 -0
- package/api/types/Message.d.ts +1 -1
- package/api/types/OpenaiTypesChatChatCompletionCustomToolParamCustom.d.ts +9 -0
- package/api/types/OpenaiTypesChatChatCompletionCustomToolParamCustom.js +5 -0
- package/api/types/OpenaiTypesChatChatCompletionCustomToolParamCustomFormat.d.ts +5 -0
- package/api/types/OpenaiTypesChatChatCompletionCustomToolParamCustomFormat.js +5 -0
- package/api/types/OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom.d.ts +7 -0
- package/api/types/OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom.js +5 -0
- package/api/types/{OpenaiTypesChatChatCompletionMessageToolCallParamFunction.d.ts → OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.d.ts} +1 -1
- package/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.js +5 -0
- package/api/types/OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom.d.ts +6 -0
- package/api/types/OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom.js +5 -0
- package/api/types/index.d.ts +24 -4
- package/api/types/index.js +24 -4
- package/dist/api/resources/agents/client/Client.js +10 -10
- package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/files/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
- package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/batches/client/Client.js +4 -4
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/dist/api/resources/embeddingModels/client/Client.js +1 -1
- package/dist/api/resources/folders/client/Client.js +9 -9
- package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
- package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/groups/client/Client.js +6 -6
- package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +7 -7
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/jobs/client/Client.js +5 -5
- package/dist/api/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/models/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +6 -6
- package/dist/api/resources/runs/client/Client.js +4 -4
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.js +10 -10
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/steps/client/Client.js +3 -3
- package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/dist/api/resources/tags/client/Client.js +1 -1
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +20 -20
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/ChatCompletionAllowedToolChoiceParam.d.ts +8 -0
- package/dist/api/types/ChatCompletionAllowedToolChoiceParam.js +5 -0
- package/dist/api/types/ChatCompletionAllowedToolsParam.d.ts +8 -0
- package/dist/api/types/ChatCompletionAllowedToolsParam.js +5 -0
- package/dist/api/types/ChatCompletionAllowedToolsParamMode.d.ts +8 -0
- package/dist/api/types/ChatCompletionAllowedToolsParamMode.js +10 -0
- package/dist/api/types/ChatCompletionAssistantMessageParam.d.ts +1 -1
- package/dist/api/types/ChatCompletionAssistantMessageParamToolCallsItem.d.ts +5 -0
- package/dist/api/types/ChatCompletionAssistantMessageParamToolCallsItem.js +5 -0
- package/dist/api/types/ChatCompletionCustomToolParam.d.ts +8 -0
- package/dist/api/types/ChatCompletionCustomToolParam.js +5 -0
- package/dist/api/types/{ChatCompletionToolParam.d.ts → ChatCompletionFunctionToolParam.d.ts} +1 -1
- package/dist/api/types/ChatCompletionFunctionToolParam.js +5 -0
- package/dist/api/types/ChatCompletionMessageCustomToolCallParam.d.ts +9 -0
- package/dist/api/types/ChatCompletionMessageCustomToolCallParam.js +5 -0
- package/dist/api/types/{ChatCompletionMessageToolCall.d.ts → ChatCompletionMessageFunctionToolCall.d.ts} +1 -1
- package/dist/api/types/ChatCompletionMessageFunctionToolCall.js +5 -0
- package/dist/api/types/ChatCompletionMessageFunctionToolCallParam.d.ts +9 -0
- package/dist/api/types/ChatCompletionMessageFunctionToolCallParam.js +5 -0
- package/dist/api/types/ChatCompletionNamedToolChoiceCustomParam.d.ts +8 -0
- package/dist/api/types/ChatCompletionNamedToolChoiceCustomParam.js +5 -0
- package/dist/api/types/ChatCompletionStreamOptionsParam.d.ts +1 -0
- package/dist/api/types/CompletionCreateParamsNonStreaming.d.ts +2 -1
- package/dist/api/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
- package/dist/api/types/CompletionCreateParamsNonStreamingReasoningEffort.d.ts +2 -1
- package/dist/api/types/CompletionCreateParamsNonStreamingReasoningEffort.js +1 -0
- package/dist/api/types/CompletionCreateParamsNonStreamingToolChoice.d.ts +1 -1
- package/dist/api/types/CompletionCreateParamsNonStreamingToolsItem.d.ts +5 -0
- package/dist/api/types/CompletionCreateParamsNonStreamingToolsItem.js +5 -0
- package/dist/api/types/CompletionCreateParamsNonStreamingVerbosity.d.ts +9 -0
- package/dist/api/types/CompletionCreateParamsNonStreamingVerbosity.js +11 -0
- package/dist/api/types/CompletionCreateParamsStreaming.d.ts +2 -1
- package/dist/api/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
- package/dist/api/types/CompletionCreateParamsStreamingReasoningEffort.d.ts +2 -1
- package/dist/api/types/CompletionCreateParamsStreamingReasoningEffort.js +1 -0
- package/dist/api/types/CompletionCreateParamsStreamingToolChoice.d.ts +1 -1
- package/dist/api/types/CompletionCreateParamsStreamingToolsItem.d.ts +5 -0
- package/dist/api/types/CompletionCreateParamsStreamingToolsItem.js +5 -0
- package/dist/api/types/CompletionCreateParamsStreamingVerbosity.d.ts +9 -0
- package/dist/api/types/CompletionCreateParamsStreamingVerbosity.js +11 -0
- package/dist/api/types/CustomFormatGrammar.d.ts +8 -0
- package/dist/api/types/CustomFormatGrammar.js +5 -0
- package/dist/api/types/CustomFormatGrammarGrammar.d.ts +8 -0
- package/dist/api/types/CustomFormatGrammarGrammar.js +5 -0
- package/dist/api/types/CustomFormatGrammarGrammarSyntax.d.ts +8 -0
- package/dist/api/types/CustomFormatGrammarGrammarSyntax.js +10 -0
- package/dist/api/types/CustomFormatText.d.ts +6 -0
- package/dist/api/types/CustomFormatText.js +5 -0
- package/dist/api/types/McpTool.d.ts +2 -0
- package/dist/api/types/McpToolHealth.d.ts +12 -0
- package/dist/api/types/McpToolHealth.js +5 -0
- package/dist/api/types/Message.d.ts +1 -1
- package/dist/api/types/OpenaiTypesChatChatCompletionCustomToolParamCustom.d.ts +9 -0
- package/dist/api/types/OpenaiTypesChatChatCompletionCustomToolParamCustom.js +5 -0
- package/dist/api/types/OpenaiTypesChatChatCompletionCustomToolParamCustomFormat.d.ts +5 -0
- package/dist/api/types/OpenaiTypesChatChatCompletionCustomToolParamCustomFormat.js +5 -0
- package/dist/api/types/OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom.d.ts +7 -0
- package/dist/api/types/OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom.js +5 -0
- package/dist/api/types/{OpenaiTypesChatChatCompletionMessageToolCallParamFunction.d.ts → OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.d.ts} +1 -1
- package/dist/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.js +5 -0
- package/dist/api/types/OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom.d.ts +6 -0
- package/dist/api/types/OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom.js +5 -0
- package/dist/api/types/index.d.ts +24 -4
- package/dist/api/types/index.js +24 -4
- package/dist/serialization/types/ChatCompletionAllowedToolChoiceParam.d.ts +14 -0
- package/dist/serialization/types/ChatCompletionAllowedToolChoiceParam.js +45 -0
- package/dist/serialization/types/ChatCompletionAllowedToolsParam.d.ts +14 -0
- package/dist/serialization/types/ChatCompletionAllowedToolsParam.js +45 -0
- package/dist/serialization/types/ChatCompletionAllowedToolsParamMode.d.ts +10 -0
- package/dist/serialization/types/ChatCompletionAllowedToolsParamMode.js +41 -0
- package/dist/serialization/types/ChatCompletionAssistantMessageParam.d.ts +2 -2
- package/dist/serialization/types/ChatCompletionAssistantMessageParam.js +2 -2
- package/dist/serialization/types/ChatCompletionAssistantMessageParamToolCallsItem.d.ts +12 -0
- package/dist/serialization/types/ChatCompletionAssistantMessageParamToolCallsItem.js +46 -0
- package/dist/serialization/types/ChatCompletionCustomToolParam.d.ts +14 -0
- package/dist/serialization/types/ChatCompletionCustomToolParam.js +45 -0
- package/dist/serialization/types/{ChatCompletionToolParam.d.ts → ChatCompletionFunctionToolParam.d.ts} +2 -2
- package/dist/serialization/types/{ChatCompletionToolParam.js → ChatCompletionFunctionToolParam.js} +2 -2
- package/dist/serialization/types/ChatCompletionMessageCustomToolCallParam.d.ts +15 -0
- package/dist/serialization/types/ChatCompletionMessageCustomToolCallParam.js +46 -0
- package/dist/serialization/types/{ChatCompletionMessageToolCall.d.ts → ChatCompletionMessageFunctionToolCall.d.ts} +2 -2
- package/dist/serialization/types/{ChatCompletionMessageToolCall.js → ChatCompletionMessageFunctionToolCall.js} +2 -2
- package/dist/serialization/types/ChatCompletionMessageFunctionToolCallParam.d.ts +15 -0
- package/dist/serialization/types/{ChatCompletionMessageToolCallParam.js → ChatCompletionMessageFunctionToolCallParam.js} +4 -4
- package/dist/serialization/types/ChatCompletionNamedToolChoiceCustomParam.d.ts +14 -0
- package/dist/serialization/types/ChatCompletionNamedToolChoiceCustomParam.js +45 -0
- package/dist/serialization/types/ChatCompletionStreamOptionsParam.d.ts +1 -0
- package/dist/serialization/types/ChatCompletionStreamOptionsParam.js +1 -0
- package/dist/serialization/types/CompletionCreateParamsNonStreaming.d.ts +4 -2
- package/dist/serialization/types/CompletionCreateParamsNonStreaming.js +4 -2
- package/dist/serialization/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
- package/dist/serialization/types/CompletionCreateParamsNonStreamingModel.js +7 -0
- package/dist/serialization/types/CompletionCreateParamsNonStreamingReasoningEffort.d.ts +1 -1
- package/dist/serialization/types/CompletionCreateParamsNonStreamingReasoningEffort.js +1 -1
- package/dist/serialization/types/CompletionCreateParamsNonStreamingToolChoice.d.ts +3 -1
- package/dist/serialization/types/CompletionCreateParamsNonStreamingToolChoice.js +4 -0
- package/dist/serialization/types/CompletionCreateParamsNonStreamingToolsItem.d.ts +12 -0
- package/dist/serialization/types/CompletionCreateParamsNonStreamingToolsItem.js +43 -0
- package/dist/serialization/types/CompletionCreateParamsNonStreamingVerbosity.d.ts +10 -0
- package/dist/serialization/types/CompletionCreateParamsNonStreamingVerbosity.js +41 -0
- package/dist/serialization/types/CompletionCreateParamsStreaming.d.ts +4 -2
- package/dist/serialization/types/CompletionCreateParamsStreaming.js +4 -2
- package/dist/serialization/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
- package/dist/serialization/types/CompletionCreateParamsStreamingModel.js +7 -0
- package/dist/serialization/types/CompletionCreateParamsStreamingReasoningEffort.d.ts +1 -1
- package/dist/serialization/types/CompletionCreateParamsStreamingReasoningEffort.js +1 -1
- package/dist/serialization/types/CompletionCreateParamsStreamingToolChoice.d.ts +3 -1
- package/dist/serialization/types/CompletionCreateParamsStreamingToolChoice.js +4 -0
- package/dist/serialization/types/CompletionCreateParamsStreamingToolsItem.d.ts +12 -0
- package/dist/serialization/types/CompletionCreateParamsStreamingToolsItem.js +43 -0
- package/dist/serialization/types/CompletionCreateParamsStreamingVerbosity.d.ts +10 -0
- package/dist/serialization/types/CompletionCreateParamsStreamingVerbosity.js +41 -0
- package/dist/serialization/types/CustomFormatGrammar.d.ts +14 -0
- package/dist/serialization/types/CustomFormatGrammar.js +45 -0
- package/dist/serialization/types/CustomFormatGrammarGrammar.d.ts +14 -0
- package/dist/serialization/types/CustomFormatGrammarGrammar.js +45 -0
- package/dist/serialization/types/CustomFormatGrammarGrammarSyntax.d.ts +10 -0
- package/dist/serialization/types/CustomFormatGrammarGrammarSyntax.js +41 -0
- package/dist/serialization/types/CustomFormatText.d.ts +12 -0
- package/dist/serialization/types/CustomFormatText.js +43 -0
- package/dist/serialization/types/McpTool.d.ts +2 -0
- package/dist/serialization/types/McpTool.js +2 -0
- package/dist/serialization/types/McpToolHealth.d.ts +13 -0
- package/dist/serialization/types/McpToolHealth.js +44 -0
- package/dist/serialization/types/Message.d.ts +2 -2
- package/dist/serialization/types/Message.js +2 -2
- package/dist/serialization/types/OpenaiTypesChatChatCompletionCustomToolParamCustom.d.ts +15 -0
- package/dist/serialization/types/OpenaiTypesChatChatCompletionCustomToolParamCustom.js +46 -0
- package/dist/serialization/types/OpenaiTypesChatChatCompletionCustomToolParamCustomFormat.d.ts +12 -0
- package/dist/serialization/types/OpenaiTypesChatChatCompletionCustomToolParamCustomFormat.js +43 -0
- package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom.d.ts +13 -0
- package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom.js +44 -0
- package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.d.ts +13 -0
- package/{serialization/types/OpenaiTypesChatChatCompletionMessageToolCallParamFunction.js → dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.js} +2 -2
- package/dist/serialization/types/OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom.d.ts +12 -0
- package/dist/serialization/types/OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom.js +43 -0
- package/dist/serialization/types/index.d.ts +24 -4
- package/dist/serialization/types/index.js +24 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/types/ChatCompletionAllowedToolChoiceParam.d.ts +14 -0
- package/serialization/types/ChatCompletionAllowedToolChoiceParam.js +45 -0
- package/serialization/types/ChatCompletionAllowedToolsParam.d.ts +14 -0
- package/serialization/types/ChatCompletionAllowedToolsParam.js +45 -0
- package/serialization/types/ChatCompletionAllowedToolsParamMode.d.ts +10 -0
- package/serialization/types/ChatCompletionAllowedToolsParamMode.js +41 -0
- package/serialization/types/ChatCompletionAssistantMessageParam.d.ts +2 -2
- package/serialization/types/ChatCompletionAssistantMessageParam.js +2 -2
- package/serialization/types/ChatCompletionAssistantMessageParamToolCallsItem.d.ts +12 -0
- package/serialization/types/ChatCompletionAssistantMessageParamToolCallsItem.js +46 -0
- package/serialization/types/ChatCompletionCustomToolParam.d.ts +14 -0
- package/serialization/types/ChatCompletionCustomToolParam.js +45 -0
- package/serialization/types/{ChatCompletionToolParam.d.ts → ChatCompletionFunctionToolParam.d.ts} +2 -2
- package/serialization/types/{ChatCompletionToolParam.js → ChatCompletionFunctionToolParam.js} +2 -2
- package/serialization/types/ChatCompletionMessageCustomToolCallParam.d.ts +15 -0
- package/serialization/types/ChatCompletionMessageCustomToolCallParam.js +46 -0
- package/serialization/types/{ChatCompletionMessageToolCall.d.ts → ChatCompletionMessageFunctionToolCall.d.ts} +2 -2
- package/serialization/types/{ChatCompletionMessageToolCall.js → ChatCompletionMessageFunctionToolCall.js} +2 -2
- package/serialization/types/ChatCompletionMessageFunctionToolCallParam.d.ts +15 -0
- package/serialization/types/{ChatCompletionMessageToolCallParam.js → ChatCompletionMessageFunctionToolCallParam.js} +4 -4
- package/serialization/types/ChatCompletionNamedToolChoiceCustomParam.d.ts +14 -0
- package/serialization/types/ChatCompletionNamedToolChoiceCustomParam.js +45 -0
- package/serialization/types/ChatCompletionStreamOptionsParam.d.ts +1 -0
- package/serialization/types/ChatCompletionStreamOptionsParam.js +1 -0
- package/serialization/types/CompletionCreateParamsNonStreaming.d.ts +4 -2
- package/serialization/types/CompletionCreateParamsNonStreaming.js +4 -2
- package/serialization/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
- package/serialization/types/CompletionCreateParamsNonStreamingModel.js +7 -0
- package/serialization/types/CompletionCreateParamsNonStreamingReasoningEffort.d.ts +1 -1
- package/serialization/types/CompletionCreateParamsNonStreamingReasoningEffort.js +1 -1
- package/serialization/types/CompletionCreateParamsNonStreamingToolChoice.d.ts +3 -1
- package/serialization/types/CompletionCreateParamsNonStreamingToolChoice.js +4 -0
- package/serialization/types/CompletionCreateParamsNonStreamingToolsItem.d.ts +12 -0
- package/serialization/types/CompletionCreateParamsNonStreamingToolsItem.js +43 -0
- package/serialization/types/CompletionCreateParamsNonStreamingVerbosity.d.ts +10 -0
- package/serialization/types/CompletionCreateParamsNonStreamingVerbosity.js +41 -0
- package/serialization/types/CompletionCreateParamsStreaming.d.ts +4 -2
- package/serialization/types/CompletionCreateParamsStreaming.js +4 -2
- package/serialization/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
- package/serialization/types/CompletionCreateParamsStreamingModel.js +7 -0
- package/serialization/types/CompletionCreateParamsStreamingReasoningEffort.d.ts +1 -1
- package/serialization/types/CompletionCreateParamsStreamingReasoningEffort.js +1 -1
- package/serialization/types/CompletionCreateParamsStreamingToolChoice.d.ts +3 -1
- package/serialization/types/CompletionCreateParamsStreamingToolChoice.js +4 -0
- package/serialization/types/CompletionCreateParamsStreamingToolsItem.d.ts +12 -0
- package/serialization/types/CompletionCreateParamsStreamingToolsItem.js +43 -0
- package/serialization/types/CompletionCreateParamsStreamingVerbosity.d.ts +10 -0
- package/serialization/types/CompletionCreateParamsStreamingVerbosity.js +41 -0
- package/serialization/types/CustomFormatGrammar.d.ts +14 -0
- package/serialization/types/CustomFormatGrammar.js +45 -0
- package/serialization/types/CustomFormatGrammarGrammar.d.ts +14 -0
- package/serialization/types/CustomFormatGrammarGrammar.js +45 -0
- package/serialization/types/CustomFormatGrammarGrammarSyntax.d.ts +10 -0
- package/serialization/types/CustomFormatGrammarGrammarSyntax.js +41 -0
- package/serialization/types/CustomFormatText.d.ts +12 -0
- package/serialization/types/CustomFormatText.js +43 -0
- package/serialization/types/McpTool.d.ts +2 -0
- package/serialization/types/McpTool.js +2 -0
- package/serialization/types/McpToolHealth.d.ts +13 -0
- package/serialization/types/McpToolHealth.js +44 -0
- package/serialization/types/Message.d.ts +2 -2
- package/serialization/types/Message.js +2 -2
- package/serialization/types/OpenaiTypesChatChatCompletionCustomToolParamCustom.d.ts +15 -0
- package/serialization/types/OpenaiTypesChatChatCompletionCustomToolParamCustom.js +46 -0
- package/serialization/types/OpenaiTypesChatChatCompletionCustomToolParamCustomFormat.d.ts +12 -0
- package/serialization/types/OpenaiTypesChatChatCompletionCustomToolParamCustomFormat.js +43 -0
- package/serialization/types/OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom.d.ts +13 -0
- package/serialization/types/OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom.js +44 -0
- package/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.d.ts +13 -0
- package/{dist/serialization/types/OpenaiTypesChatChatCompletionMessageToolCallParamFunction.js → serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.js} +2 -2
- package/serialization/types/OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom.d.ts +12 -0
- package/serialization/types/OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom.js +43 -0
- package/serialization/types/index.d.ts +24 -4
- package/serialization/types/index.js +24 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/ChatCompletionMessageToolCallParam.d.ts +0 -9
- package/dist/api/types/ChatCompletionMessageToolCallParam.d.ts +0 -9
- package/dist/serialization/types/ChatCompletionMessageToolCallParam.d.ts +0 -15
- package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageToolCallParamFunction.d.ts +0 -13
- package/serialization/types/ChatCompletionMessageToolCallParam.d.ts +0 -15
- package/serialization/types/OpenaiTypesChatChatCompletionMessageToolCallParamFunction.d.ts +0 -13
- /package/api/types/{ChatCompletionMessageToolCall.js → ChatCompletionAllowedToolChoiceParam.js} +0 -0
- /package/api/types/{ChatCompletionMessageToolCallParam.js → ChatCompletionAllowedToolsParam.js} +0 -0
- /package/api/types/{ChatCompletionToolParam.js → ChatCompletionAssistantMessageParamToolCallsItem.js} +0 -0
- /package/api/types/{OpenaiTypesChatChatCompletionMessageToolCallParamFunction.js → ChatCompletionCustomToolParam.js} +0 -0
- /package/{dist/api/types/ChatCompletionMessageToolCall.js → api/types/ChatCompletionFunctionToolParam.js} +0 -0
- /package/{dist/api/types/ChatCompletionMessageToolCallParam.js → api/types/ChatCompletionMessageCustomToolCallParam.js} +0 -0
- /package/{dist/api/types/ChatCompletionToolParam.js → api/types/ChatCompletionMessageFunctionToolCall.js} +0 -0
- /package/{dist/api/types/OpenaiTypesChatChatCompletionMessageToolCallParamFunction.js → api/types/ChatCompletionMessageFunctionToolCallParam.js} +0 -0
|
@@ -79,7 +79,7 @@ class Telemetry {
|
|
|
79
79
|
method: "GET",
|
|
80
80
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
81
81
|
? yield core.Supplier.get(this._options.project)
|
|
82
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
82
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
83
83
|
contentType: "application/json",
|
|
84
84
|
requestType: "json",
|
|
85
85
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -97,7 +97,7 @@ class Templates {
|
|
|
97
97
|
method: "GET",
|
|
98
98
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
99
99
|
? yield core.Supplier.get(this._options.project)
|
|
100
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
100
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
101
101
|
contentType: "application/json",
|
|
102
102
|
queryParameters: _queryParams,
|
|
103
103
|
requestType: "json",
|
|
@@ -83,7 +83,7 @@ class Agents {
|
|
|
83
83
|
method: "POST",
|
|
84
84
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
85
85
|
? yield core.Supplier.get(this._options.project)
|
|
86
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
86
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
87
87
|
contentType: "application/json",
|
|
88
88
|
requestType: "json",
|
|
89
89
|
body: serializers.templates.AgentsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -81,7 +81,7 @@ class Tools {
|
|
|
81
81
|
method: "GET",
|
|
82
82
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
83
83
|
? yield core.Supplier.get(this._options.project)
|
|
84
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
84
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
requestType: "json",
|
|
87
87
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -157,7 +157,7 @@ class Tools {
|
|
|
157
157
|
method: "DELETE",
|
|
158
158
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
159
159
|
? yield core.Supplier.get(this._options.project)
|
|
160
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
160
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
161
161
|
contentType: "application/json",
|
|
162
162
|
requestType: "json",
|
|
163
163
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -225,7 +225,7 @@ class Tools {
|
|
|
225
225
|
method: "PATCH",
|
|
226
226
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
227
227
|
? yield core.Supplier.get(this._options.project)
|
|
228
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
228
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
229
229
|
contentType: "application/json",
|
|
230
230
|
requestType: "json",
|
|
231
231
|
body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -307,7 +307,7 @@ class Tools {
|
|
|
307
307
|
method: "GET",
|
|
308
308
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
309
309
|
? yield core.Supplier.get(this._options.project)
|
|
310
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
310
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
311
311
|
contentType: "application/json",
|
|
312
312
|
queryParameters: _queryParams,
|
|
313
313
|
requestType: "json",
|
|
@@ -395,7 +395,7 @@ class Tools {
|
|
|
395
395
|
method: "GET",
|
|
396
396
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
397
397
|
? yield core.Supplier.get(this._options.project)
|
|
398
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
398
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
399
399
|
contentType: "application/json",
|
|
400
400
|
queryParameters: _queryParams,
|
|
401
401
|
requestType: "json",
|
|
@@ -474,7 +474,7 @@ class Tools {
|
|
|
474
474
|
method: "POST",
|
|
475
475
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
476
476
|
? yield core.Supplier.get(this._options.project)
|
|
477
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
477
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
478
478
|
contentType: "application/json",
|
|
479
479
|
requestType: "json",
|
|
480
480
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -553,7 +553,7 @@ class Tools {
|
|
|
553
553
|
method: "PUT",
|
|
554
554
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
555
555
|
? yield core.Supplier.get(this._options.project)
|
|
556
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
556
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
557
557
|
contentType: "application/json",
|
|
558
558
|
requestType: "json",
|
|
559
559
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -629,7 +629,7 @@ class Tools {
|
|
|
629
629
|
method: "POST",
|
|
630
630
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
631
631
|
? yield core.Supplier.get(this._options.project)
|
|
632
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
632
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
633
633
|
contentType: "application/json",
|
|
634
634
|
requestType: "json",
|
|
635
635
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -710,7 +710,7 @@ class Tools {
|
|
|
710
710
|
method: "POST",
|
|
711
711
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
712
712
|
? yield core.Supplier.get(this._options.project)
|
|
713
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
713
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
714
714
|
contentType: "application/json",
|
|
715
715
|
requestType: "json",
|
|
716
716
|
body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -788,7 +788,7 @@ class Tools {
|
|
|
788
788
|
method: "GET",
|
|
789
789
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
790
790
|
? yield core.Supplier.get(this._options.project)
|
|
791
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
791
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
792
792
|
contentType: "application/json",
|
|
793
793
|
requestType: "json",
|
|
794
794
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -864,7 +864,7 @@ class Tools {
|
|
|
864
864
|
method: "GET",
|
|
865
865
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
866
866
|
? yield core.Supplier.get(this._options.project)
|
|
867
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
867
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
868
868
|
contentType: "application/json",
|
|
869
869
|
requestType: "json",
|
|
870
870
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -940,7 +940,7 @@ class Tools {
|
|
|
940
940
|
method: "POST",
|
|
941
941
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
942
942
|
? yield core.Supplier.get(this._options.project)
|
|
943
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
943
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
944
944
|
contentType: "application/json",
|
|
945
945
|
requestType: "json",
|
|
946
946
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1017,7 +1017,7 @@ class Tools {
|
|
|
1017
1017
|
method: "GET",
|
|
1018
1018
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1019
1019
|
? yield core.Supplier.get(this._options.project)
|
|
1020
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1020
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1021
1021
|
contentType: "application/json",
|
|
1022
1022
|
requestType: "json",
|
|
1023
1023
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1097,7 +1097,7 @@ class Tools {
|
|
|
1097
1097
|
method: "PUT",
|
|
1098
1098
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1099
1099
|
? yield core.Supplier.get(this._options.project)
|
|
1100
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1100
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1101
1101
|
contentType: "application/json",
|
|
1102
1102
|
requestType: "json",
|
|
1103
1103
|
body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1174,7 +1174,7 @@ class Tools {
|
|
|
1174
1174
|
method: "GET",
|
|
1175
1175
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1176
1176
|
? yield core.Supplier.get(this._options.project)
|
|
1177
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1177
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1178
1178
|
contentType: "application/json",
|
|
1179
1179
|
requestType: "json",
|
|
1180
1180
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1251,7 +1251,7 @@ class Tools {
|
|
|
1251
1251
|
method: "POST",
|
|
1252
1252
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1253
1253
|
? yield core.Supplier.get(this._options.project)
|
|
1254
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1254
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1255
1255
|
contentType: "application/json",
|
|
1256
1256
|
requestType: "json",
|
|
1257
1257
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1327,7 +1327,7 @@ class Tools {
|
|
|
1327
1327
|
method: "DELETE",
|
|
1328
1328
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1329
1329
|
? yield core.Supplier.get(this._options.project)
|
|
1330
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1330
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1331
1331
|
contentType: "application/json",
|
|
1332
1332
|
requestType: "json",
|
|
1333
1333
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1404,7 +1404,7 @@ class Tools {
|
|
|
1404
1404
|
method: "PATCH",
|
|
1405
1405
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1406
1406
|
? yield core.Supplier.get(this._options.project)
|
|
1407
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1407
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1408
1408
|
contentType: "application/json",
|
|
1409
1409
|
requestType: "json",
|
|
1410
1410
|
body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1486,7 +1486,7 @@ class Tools {
|
|
|
1486
1486
|
method: "POST",
|
|
1487
1487
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1488
1488
|
? yield core.Supplier.get(this._options.project)
|
|
1489
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1489
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1490
1490
|
contentType: "application/json",
|
|
1491
1491
|
requestType: "json",
|
|
1492
1492
|
body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1547,7 +1547,7 @@ class Tools {
|
|
|
1547
1547
|
method: "POST",
|
|
1548
1548
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1549
1549
|
? yield core.Supplier.get(this._options.project)
|
|
1550
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1550
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1551
1551
|
contentType: "application/json",
|
|
1552
1552
|
requestType: "json",
|
|
1553
1553
|
body: serializers.ConnectMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -85,7 +85,7 @@ class Voice {
|
|
|
85
85
|
method: "POST",
|
|
86
86
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
87
87
|
? yield core.Supplier.get(this._options.project)
|
|
88
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
88
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
89
89
|
contentType: "application/json",
|
|
90
90
|
requestType: "json",
|
|
91
91
|
body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type ChatCompletionAllowedToolsParamMode = "auto" | "required";
|
|
5
|
+
export declare const ChatCompletionAllowedToolsParamMode: {
|
|
6
|
+
readonly Auto: "auto";
|
|
7
|
+
readonly Required: "required";
|
|
8
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ChatCompletionAllowedToolsParamMode = void 0;
|
|
7
|
+
exports.ChatCompletionAllowedToolsParamMode = {
|
|
8
|
+
Auto: "auto",
|
|
9
|
+
Required: "required",
|
|
10
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export type ChatCompletionAssistantMessageParamToolCallsItem = Letta.ChatCompletionMessageFunctionToolCallParam | Letta.ChatCompletionMessageCustomToolCallParam;
|
package/dist/api/types/{ChatCompletionToolParam.d.ts → ChatCompletionFunctionToolParam.d.ts}
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../index";
|
|
5
|
-
export interface
|
|
5
|
+
export interface ChatCompletionFunctionToolParam {
|
|
6
6
|
function: Letta.FunctionDefinitionInput;
|
|
7
7
|
type: "function";
|
|
8
8
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export interface ChatCompletionMessageCustomToolCallParam {
|
|
6
|
+
id: string;
|
|
7
|
+
custom: Letta.OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom;
|
|
8
|
+
type: "custom";
|
|
9
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../index";
|
|
5
|
-
export interface
|
|
5
|
+
export interface ChatCompletionMessageFunctionToolCall {
|
|
6
6
|
id: string;
|
|
7
7
|
function: Letta.FunctionOutput;
|
|
8
8
|
type: "function";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export interface ChatCompletionMessageFunctionToolCallParam {
|
|
6
|
+
id: string;
|
|
7
|
+
function: Letta.OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction;
|
|
8
|
+
type: "function";
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export interface ChatCompletionNamedToolChoiceCustomParam {
|
|
6
|
+
custom: Letta.OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom;
|
|
7
|
+
type: "custom";
|
|
8
|
+
}
|
|
@@ -30,10 +30,11 @@ export interface CompletionCreateParamsNonStreaming {
|
|
|
30
30
|
streamOptions?: Letta.ChatCompletionStreamOptionsParam;
|
|
31
31
|
temperature?: number;
|
|
32
32
|
toolChoice?: Letta.CompletionCreateParamsNonStreamingToolChoice;
|
|
33
|
-
tools?: Letta.
|
|
33
|
+
tools?: Letta.CompletionCreateParamsNonStreamingToolsItem[];
|
|
34
34
|
topLogprobs?: number;
|
|
35
35
|
topP?: number;
|
|
36
36
|
user?: string;
|
|
37
|
+
verbosity?: Letta.CompletionCreateParamsNonStreamingVerbosity;
|
|
37
38
|
webSearchOptions?: Letta.WebSearchOptions;
|
|
38
39
|
stream?: boolean;
|
|
39
40
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type CompletionCreateParamsNonStreamingModel = string | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4.1-2025-04-14" | "gpt-4.1-mini-2025-04-14" | "gpt-4.1-nano-2025-04-14" | "o4-mini" | "o4-mini-2025-04-16" | "o3" | "o3-2025-04-16" | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-audio-preview-2025-06-03" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "gpt-4o-search-preview" | "gpt-4o-mini-search-preview" | "gpt-4o-search-preview-2025-03-11" | "gpt-4o-mini-search-preview-2025-03-11" | "chatgpt-4o-latest" | "codex-mini-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
|
|
4
|
+
export type CompletionCreateParamsNonStreamingModel = string | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gpt-5-2025-08-07" | "gpt-5-mini-2025-08-07" | "gpt-5-nano-2025-08-07" | "gpt-5-chat-latest" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4.1-2025-04-14" | "gpt-4.1-mini-2025-04-14" | "gpt-4.1-nano-2025-04-14" | "o4-mini" | "o4-mini-2025-04-16" | "o3" | "o3-2025-04-16" | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-audio-preview-2025-06-03" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "gpt-4o-search-preview" | "gpt-4o-mini-search-preview" | "gpt-4o-search-preview-2025-03-11" | "gpt-4o-mini-search-preview-2025-03-11" | "chatgpt-4o-latest" | "codex-mini-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type CompletionCreateParamsNonStreamingReasoningEffort = "low" | "medium" | "high";
|
|
4
|
+
export type CompletionCreateParamsNonStreamingReasoningEffort = "minimal" | "low" | "medium" | "high";
|
|
5
5
|
export declare const CompletionCreateParamsNonStreamingReasoningEffort: {
|
|
6
|
+
readonly Minimal: "minimal";
|
|
6
7
|
readonly Low: "low";
|
|
7
8
|
readonly Medium: "medium";
|
|
8
9
|
readonly High: "high";
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.CompletionCreateParamsNonStreamingReasoningEffort = void 0;
|
|
7
7
|
exports.CompletionCreateParamsNonStreamingReasoningEffort = {
|
|
8
|
+
Minimal: "minimal",
|
|
8
9
|
Low: "low",
|
|
9
10
|
Medium: "medium",
|
|
10
11
|
High: "high",
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../index";
|
|
5
|
-
export type CompletionCreateParamsNonStreamingToolChoice = "none" | "auto" | "required" | Letta.ChatCompletionNamedToolChoiceParam;
|
|
5
|
+
export type CompletionCreateParamsNonStreamingToolChoice = "none" | "auto" | "required" | Letta.ChatCompletionAllowedToolChoiceParam | Letta.ChatCompletionNamedToolChoiceParam | Letta.ChatCompletionNamedToolChoiceCustomParam;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type CompletionCreateParamsNonStreamingVerbosity = "low" | "medium" | "high";
|
|
5
|
+
export declare const CompletionCreateParamsNonStreamingVerbosity: {
|
|
6
|
+
readonly Low: "low";
|
|
7
|
+
readonly Medium: "medium";
|
|
8
|
+
readonly High: "high";
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.CompletionCreateParamsNonStreamingVerbosity = void 0;
|
|
7
|
+
exports.CompletionCreateParamsNonStreamingVerbosity = {
|
|
8
|
+
Low: "low",
|
|
9
|
+
Medium: "medium",
|
|
10
|
+
High: "high",
|
|
11
|
+
};
|
|
@@ -30,10 +30,11 @@ export interface CompletionCreateParamsStreaming {
|
|
|
30
30
|
streamOptions?: Letta.ChatCompletionStreamOptionsParam;
|
|
31
31
|
temperature?: number;
|
|
32
32
|
toolChoice?: Letta.CompletionCreateParamsStreamingToolChoice;
|
|
33
|
-
tools?: Letta.
|
|
33
|
+
tools?: Letta.CompletionCreateParamsStreamingToolsItem[];
|
|
34
34
|
topLogprobs?: number;
|
|
35
35
|
topP?: number;
|
|
36
36
|
user?: string;
|
|
37
|
+
verbosity?: Letta.CompletionCreateParamsStreamingVerbosity;
|
|
37
38
|
webSearchOptions?: Letta.WebSearchOptions;
|
|
38
39
|
stream: boolean;
|
|
39
40
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type CompletionCreateParamsStreamingModel = string | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4.1-2025-04-14" | "gpt-4.1-mini-2025-04-14" | "gpt-4.1-nano-2025-04-14" | "o4-mini" | "o4-mini-2025-04-16" | "o3" | "o3-2025-04-16" | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-audio-preview-2025-06-03" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "gpt-4o-search-preview" | "gpt-4o-mini-search-preview" | "gpt-4o-search-preview-2025-03-11" | "gpt-4o-mini-search-preview-2025-03-11" | "chatgpt-4o-latest" | "codex-mini-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
|
|
4
|
+
export type CompletionCreateParamsStreamingModel = string | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gpt-5-2025-08-07" | "gpt-5-mini-2025-08-07" | "gpt-5-nano-2025-08-07" | "gpt-5-chat-latest" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4.1-2025-04-14" | "gpt-4.1-mini-2025-04-14" | "gpt-4.1-nano-2025-04-14" | "o4-mini" | "o4-mini-2025-04-16" | "o3" | "o3-2025-04-16" | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-audio-preview-2025-06-03" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "gpt-4o-search-preview" | "gpt-4o-mini-search-preview" | "gpt-4o-search-preview-2025-03-11" | "gpt-4o-mini-search-preview-2025-03-11" | "chatgpt-4o-latest" | "codex-mini-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type CompletionCreateParamsStreamingReasoningEffort = "low" | "medium" | "high";
|
|
4
|
+
export type CompletionCreateParamsStreamingReasoningEffort = "minimal" | "low" | "medium" | "high";
|
|
5
5
|
export declare const CompletionCreateParamsStreamingReasoningEffort: {
|
|
6
|
+
readonly Minimal: "minimal";
|
|
6
7
|
readonly Low: "low";
|
|
7
8
|
readonly Medium: "medium";
|
|
8
9
|
readonly High: "high";
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../index";
|
|
5
|
-
export type CompletionCreateParamsStreamingToolChoice = "none" | "auto" | "required" | Letta.ChatCompletionNamedToolChoiceParam;
|
|
5
|
+
export type CompletionCreateParamsStreamingToolChoice = "none" | "auto" | "required" | Letta.ChatCompletionAllowedToolChoiceParam | Letta.ChatCompletionNamedToolChoiceParam | Letta.ChatCompletionNamedToolChoiceCustomParam;
|