@letta-ai/letta-client 1.0.0-alpha.2 → 1.0.0-alpha.4
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/Client.d.ts +3 -0
- package/Client.js +37 -32
- package/README.md +320 -88
- package/api/errors/GoneError.d.ts +8 -0
- package/api/errors/GoneError.js +52 -0
- package/api/errors/index.d.ts +1 -0
- package/api/errors/index.js +1 -0
- package/api/resources/agents/client/Client.d.ts +8 -11
- package/api/resources/agents/client/Client.js +19 -24
- package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
- package/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
- package/api/resources/agents/resources/blocks/client/Client.d.ts +12 -12
- package/api/resources/agents/resources/blocks/client/Client.js +17 -17
- package/api/resources/agents/resources/context/client/Client.d.ts +2 -2
- package/api/resources/agents/resources/context/client/Client.js +3 -3
- package/api/resources/agents/resources/coreMemory/client/Client.d.ts +2 -2
- package/api/resources/agents/resources/coreMemory/client/Client.js +3 -3
- package/api/resources/agents/resources/files/client/Client.d.ts +10 -10
- package/api/resources/agents/resources/files/client/Client.js +14 -14
- package/api/resources/agents/resources/folders/client/Client.d.ts +8 -8
- package/api/resources/agents/resources/folders/client/Client.js +11 -11
- package/api/resources/agents/resources/groups/client/Client.d.ts +2 -2
- package/api/resources/agents/resources/groups/client/Client.js +3 -3
- package/api/resources/agents/resources/index.d.ts +0 -3
- package/api/resources/agents/resources/index.js +1 -4
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.d.ts +17 -17
- package/api/resources/agents/resources/messages/client/Client.js +27 -27
- package/api/resources/agents/resources/passages/client/Client.d.ts +8 -8
- package/api/resources/agents/resources/passages/client/Client.js +13 -13
- package/api/resources/agents/resources/sources/client/Client.d.ts +8 -8
- package/api/resources/agents/resources/sources/client/Client.js +11 -11
- package/api/resources/agents/resources/tools/client/Client.d.ts +10 -10
- package/api/resources/agents/resources/tools/client/Client.js +14 -14
- package/api/resources/archives/client/Client.d.ts +2 -2
- package/api/resources/archives/client/Client.js +5 -5
- package/api/resources/batches/client/Client.js +4 -4
- package/api/resources/batches/resources/messages/client/Client.js +1 -1
- package/api/resources/blocks/client/Client.d.ts +6 -6
- package/api/resources/blocks/client/Client.js +12 -12
- package/api/resources/blocks/resources/agents/client/Client.d.ts +2 -2
- package/api/resources/blocks/resources/agents/client/Client.js +3 -3
- package/api/resources/chat/client/Client.d.ts +61 -0
- package/api/resources/chat/client/Client.js +158 -0
- package/api/resources/chat/client/requests/ChatCompletionRequest.d.ts +38 -0
- package/api/resources/chat/client/requests/index.d.ts +1 -0
- package/api/resources/chat/types/ChatCompletionRequestMessagesItem.d.ts +5 -0
- package/api/resources/chat/types/ChatCompletionRequestStop.d.ts +7 -0
- package/api/resources/chat/types/index.d.ts +2 -0
- package/api/resources/{agents/resources/templates → chat}/types/index.js +2 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/api/resources/folders/client/Client.js +8 -8
- package/api/resources/folders/resources/agents/client/Client.js +1 -1
- 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.d.ts +6 -6
- package/api/resources/groups/client/Client.js +12 -12
- package/api/resources/groups/resources/messages/client/Client.d.ts +9 -9
- package/api/resources/groups/resources/messages/client/Client.js +14 -14
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.d.ts +6 -6
- package/api/resources/identities/client/Client.js +13 -13
- package/api/resources/identities/resources/agents/client/Client.d.ts +2 -2
- package/api/resources/identities/resources/agents/client/Client.js +3 -3
- package/api/resources/identities/resources/blocks/client/Client.d.ts +2 -2
- package/api/resources/identities/resources/blocks/client/Client.js +3 -3
- package/api/resources/identities/resources/properties/client/Client.d.ts +2 -2
- package/api/resources/identities/resources/properties/client/Client.js +3 -3
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- package/api/resources/jobs/client/Client.d.ts +6 -6
- package/api/resources/jobs/client/Client.js +11 -11
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/models/resources/embeddings/client/Client.js +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.d.ts +8 -8
- package/api/resources/providers/client/Client.js +15 -15
- package/api/resources/runs/client/Client.js +6 -6
- 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.d.ts +11 -11
- package/api/resources/sources/client/Client.js +21 -21
- package/api/resources/sources/resources/files/client/Client.d.ts +6 -6
- package/api/resources/sources/resources/files/client/Client.js +9 -9
- package/api/resources/sources/resources/passages/client/Client.d.ts +2 -2
- package/api/resources/sources/resources/passages/client/Client.js +3 -3
- package/api/resources/steps/client/Client.d.ts +2 -2
- package/api/resources/steps/client/Client.js +4 -4
- package/api/resources/steps/resources/feedback/client/Client.d.ts +2 -2
- package/api/resources/steps/resources/feedback/client/Client.js +3 -3
- package/api/resources/steps/resources/messages/client/Client.d.ts +2 -2
- package/api/resources/steps/resources/messages/client/Client.js +3 -3
- package/api/resources/steps/resources/metrics/client/Client.d.ts +2 -2
- package/api/resources/steps/resources/metrics/client/Client.js +3 -3
- package/api/resources/steps/resources/trace/client/Client.d.ts +2 -2
- package/api/resources/steps/resources/trace/client/Client.js +3 -3
- package/api/resources/tags/client/Client.js +1 -1
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.d.ts +1 -1
- package/api/resources/templates/client/Client.js +14 -14
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +2 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.d.ts +5 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.d.ts +4 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls.d.ts +5 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCallsItem.d.ts +4 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItem.d.ts +1 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecution.d.ts +5 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecutionItem.d.ts +4 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecutionItem.js +5 -0
- package/api/resources/templates/types/index.d.ts +6 -0
- package/api/resources/templates/types/index.js +6 -0
- package/api/resources/tools/client/Client.d.ts +6 -6
- package/api/resources/tools/client/Client.js +23 -23
- package/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
- package/api/resources/voice/client/Client.d.ts +8 -0
- package/api/resources/voice/client/Client.js +11 -1
- package/api/types/Annotation.d.ts +10 -0
- package/api/types/Annotation.js +5 -0
- package/api/types/AnnotationUrlCitation.d.ts +11 -0
- package/api/types/AnnotationUrlCitation.js +5 -0
- package/api/types/ApprovalRequestMessage.d.ts +4 -0
- package/api/types/ApprovalRequestMessageAllowedToolCalls.d.ts +8 -0
- package/api/types/ApprovalRequestMessageAllowedToolCalls.js +5 -0
- package/api/types/ApprovalRequestMessageRequestedToolCalls.d.ts +8 -0
- package/api/types/ApprovalRequestMessageRequestedToolCalls.js +5 -0
- package/{dist/api/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts → api/types/Audio.d.ts} +2 -2
- package/api/types/Audio.js +5 -0
- package/api/types/ChatCompletion.d.ts +16 -0
- package/api/types/ChatCompletion.js +5 -0
- package/api/types/ChatCompletionAssistantMessageParam.d.ts +13 -0
- package/api/types/ChatCompletionAssistantMessageParam.js +5 -0
- package/api/types/ChatCompletionAssistantMessageParamContent.d.ts +5 -0
- package/api/types/ChatCompletionAssistantMessageParamContent.js +5 -0
- package/api/types/ChatCompletionAssistantMessageParamContentItem.d.ts +5 -0
- package/api/types/ChatCompletionAssistantMessageParamContentItem.js +5 -0
- package/api/types/ChatCompletionAssistantMessageParamToolCallsItem.d.ts +5 -0
- package/api/types/ChatCompletionAssistantMessageParamToolCallsItem.js +5 -0
- package/api/types/ChatCompletionAudio.d.ts +11 -0
- package/api/types/ChatCompletionAudio.js +5 -0
- package/api/types/ChatCompletionContentPartImageParam.d.ts +8 -0
- package/api/types/ChatCompletionContentPartImageParam.js +5 -0
- package/api/types/ChatCompletionContentPartInputAudioParam.d.ts +8 -0
- package/api/types/ChatCompletionContentPartInputAudioParam.js +5 -0
- package/api/types/ChatCompletionContentPartRefusalParam.d.ts +7 -0
- package/api/types/ChatCompletionContentPartRefusalParam.js +5 -0
- package/api/types/ChatCompletionContentPartTextParam.d.ts +7 -0
- package/api/types/ChatCompletionContentPartTextParam.js +5 -0
- package/api/types/ChatCompletionDeveloperMessageParam.d.ts +9 -0
- package/api/types/ChatCompletionDeveloperMessageParam.js +5 -0
- package/api/types/ChatCompletionDeveloperMessageParamContent.d.ts +5 -0
- package/api/types/ChatCompletionDeveloperMessageParamContent.js +5 -0
- package/api/types/ChatCompletionFunctionMessageParam.d.ts +8 -0
- package/api/types/ChatCompletionFunctionMessageParam.js +5 -0
- package/api/types/ChatCompletionMessage.d.ts +15 -0
- package/api/types/ChatCompletionMessage.js +5 -0
- package/api/types/ChatCompletionMessageCustomToolCall.d.ts +11 -0
- package/api/types/ChatCompletionMessageCustomToolCall.js +5 -0
- package/api/types/ChatCompletionMessageCustomToolCallParam.d.ts +9 -0
- package/api/types/ChatCompletionMessageCustomToolCallParam.js +5 -0
- package/api/types/ChatCompletionMessageFunctionToolCallInput.d.ts +11 -0
- package/api/types/ChatCompletionMessageFunctionToolCallInput.js +5 -0
- package/{dist/api/types/ChatCompletionMessageFunctionToolCall.d.ts → api/types/ChatCompletionMessageFunctionToolCallOutput.d.ts} +2 -2
- package/api/types/ChatCompletionMessageFunctionToolCallOutput.js +5 -0
- package/api/types/ChatCompletionMessageFunctionToolCallParam.d.ts +9 -0
- package/api/types/ChatCompletionMessageFunctionToolCallParam.js +5 -0
- package/api/types/ChatCompletionMessageToolCallsItem.d.ts +5 -0
- package/api/types/ChatCompletionMessageToolCallsItem.js +5 -0
- package/api/types/ChatCompletionServiceTier.d.ts +11 -0
- package/api/types/ChatCompletionServiceTier.js +13 -0
- package/api/types/ChatCompletionSystemMessageParam.d.ts +9 -0
- package/api/types/ChatCompletionSystemMessageParam.js +5 -0
- package/api/types/ChatCompletionSystemMessageParamContent.d.ts +5 -0
- package/api/types/ChatCompletionSystemMessageParamContent.js +5 -0
- package/api/types/ChatCompletionTokenLogprob.d.ts +12 -0
- package/api/types/ChatCompletionTokenLogprob.js +5 -0
- package/api/types/ChatCompletionToolMessageParam.d.ts +9 -0
- package/api/types/ChatCompletionToolMessageParam.js +5 -0
- package/api/types/ChatCompletionToolMessageParamContent.d.ts +5 -0
- package/api/types/ChatCompletionToolMessageParamContent.js +5 -0
- package/api/types/ChatCompletionUserMessageParam.d.ts +9 -0
- package/api/types/ChatCompletionUserMessageParam.js +5 -0
- package/api/types/ChatCompletionUserMessageParamContent.d.ts +5 -0
- package/api/types/ChatCompletionUserMessageParamContent.js +5 -0
- package/api/types/ChatCompletionUserMessageParamContentItem.d.ts +5 -0
- package/api/types/ChatCompletionUserMessageParamContentItem.js +5 -0
- package/api/types/Choice.d.ts +12 -0
- package/api/types/Choice.js +5 -0
- package/api/types/ChoiceFinishReason.d.ts +11 -0
- package/api/types/ChoiceFinishReason.js +13 -0
- package/api/types/ChoiceLogprobs.d.ts +10 -0
- package/api/types/ChoiceLogprobs.js +5 -0
- package/api/types/CompletionTokensDetails.d.ts +11 -0
- package/api/types/CompletionTokensDetails.js +5 -0
- package/api/types/CompletionUsage.d.ts +13 -0
- package/api/types/CompletionUsage.js +5 -0
- package/api/types/CustomInput.d.ts +7 -0
- package/api/types/CustomInput.js +5 -0
- package/api/types/CustomOutput.d.ts +9 -0
- package/api/types/CustomOutput.js +5 -0
- package/api/types/FileFile.d.ts +8 -0
- package/api/types/FileFile.js +5 -0
- package/api/types/File_.d.ts +8 -0
- package/api/types/File_.js +5 -0
- package/api/types/FunctionCallInput.d.ts +7 -0
- package/api/types/FunctionCallInput.js +5 -0
- package/api/types/FunctionCallOutput.d.ts +9 -0
- package/api/types/FunctionCallOutput.js +5 -0
- package/api/types/{Function.d.ts → FunctionOutput.d.ts} +1 -1
- package/api/types/FunctionOutput.js +5 -0
- package/api/types/ImageUrl.d.ts +8 -0
- package/api/types/ImageUrl.js +5 -0
- package/api/types/ImageUrlDetail.d.ts +9 -0
- package/api/types/ImageUrlDetail.js +11 -0
- package/api/types/InputAudio.d.ts +8 -0
- package/api/types/InputAudio.js +5 -0
- package/api/types/InputAudioFormat.d.ts +8 -0
- package/api/types/InputAudioFormat.js +10 -0
- package/api/types/InternalTemplateAgentCreate.d.ts +2 -0
- package/api/types/LettaSchemasAgentFileAgentSchema.d.ts +2 -0
- package/api/types/LettaSchemasAgentFileMessageSchema.d.ts +3 -1
- package/api/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.d.ts +5 -0
- package/api/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.js +5 -0
- package/api/types/LettaSchemasAgentFileToolSchema.d.ts +2 -0
- package/api/types/LlmConfig.d.ts +4 -0
- package/api/types/Message.d.ts +1 -1
- package/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts +9 -0
- package/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js +5 -0
- package/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.d.ts +7 -0
- package/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.js +5 -0
- package/api/types/PromptTokensDetails.d.ts +9 -0
- package/api/types/PromptTokensDetails.js +5 -0
- package/api/types/RunMetrics.d.ts +2 -0
- package/api/types/Tool.d.ts +2 -0
- package/api/types/ToolCreate.d.ts +2 -0
- package/api/types/TopLogprob.d.ts +10 -0
- package/api/types/TopLogprob.js +5 -0
- package/api/types/index.d.ts +55 -2
- package/api/types/index.js +55 -2
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +37 -32
- package/dist/api/errors/GoneError.d.ts +8 -0
- package/dist/api/errors/GoneError.js +52 -0
- package/dist/api/errors/index.d.ts +1 -0
- package/dist/api/errors/index.js +1 -0
- package/dist/api/resources/agents/client/Client.d.ts +8 -11
- package/dist/api/resources/agents/client/Client.js +19 -24
- package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
- package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
- package/dist/api/resources/agents/resources/blocks/client/Client.d.ts +12 -12
- package/dist/api/resources/agents/resources/blocks/client/Client.js +17 -17
- package/dist/api/resources/agents/resources/context/client/Client.d.ts +2 -2
- package/dist/api/resources/agents/resources/context/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/coreMemory/client/Client.d.ts +2 -2
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/files/client/Client.d.ts +10 -10
- package/dist/api/resources/agents/resources/files/client/Client.js +14 -14
- package/dist/api/resources/agents/resources/folders/client/Client.d.ts +8 -8
- package/dist/api/resources/agents/resources/folders/client/Client.js +11 -11
- package/dist/api/resources/agents/resources/groups/client/Client.d.ts +2 -2
- package/dist/api/resources/agents/resources/groups/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/index.d.ts +0 -3
- package/dist/api/resources/agents/resources/index.js +1 -4
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.d.ts +17 -17
- package/dist/api/resources/agents/resources/messages/client/Client.js +27 -27
- package/dist/api/resources/agents/resources/passages/client/Client.d.ts +8 -8
- package/dist/api/resources/agents/resources/passages/client/Client.js +13 -13
- package/dist/api/resources/agents/resources/sources/client/Client.d.ts +8 -8
- package/dist/api/resources/agents/resources/sources/client/Client.js +11 -11
- package/dist/api/resources/agents/resources/tools/client/Client.d.ts +10 -10
- package/dist/api/resources/agents/resources/tools/client/Client.js +14 -14
- package/dist/api/resources/archives/client/Client.d.ts +2 -2
- package/dist/api/resources/archives/client/Client.js +5 -5
- package/dist/api/resources/batches/client/Client.js +4 -4
- package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/blocks/client/Client.d.ts +6 -6
- package/dist/api/resources/blocks/client/Client.js +12 -12
- package/dist/api/resources/blocks/resources/agents/client/Client.d.ts +2 -2
- package/dist/api/resources/blocks/resources/agents/client/Client.js +3 -3
- package/dist/api/resources/chat/client/Client.d.ts +61 -0
- package/dist/api/resources/chat/client/Client.js +158 -0
- package/dist/api/resources/chat/client/requests/ChatCompletionRequest.d.ts +38 -0
- package/dist/api/resources/chat/client/requests/ChatCompletionRequest.js +5 -0
- package/dist/api/resources/chat/client/requests/index.d.ts +1 -0
- package/dist/api/resources/chat/types/ChatCompletionRequestMessagesItem.d.ts +5 -0
- package/dist/api/resources/chat/types/ChatCompletionRequestMessagesItem.js +5 -0
- package/dist/api/resources/chat/types/ChatCompletionRequestStop.d.ts +7 -0
- package/dist/api/resources/chat/types/ChatCompletionRequestStop.js +5 -0
- package/dist/api/resources/chat/types/index.d.ts +2 -0
- package/dist/api/resources/chat/types/index.js +18 -0
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/dist/api/resources/folders/client/Client.js +8 -8
- package/dist/api/resources/folders/resources/agents/client/Client.js +1 -1
- 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.d.ts +6 -6
- package/dist/api/resources/groups/client/Client.js +12 -12
- package/dist/api/resources/groups/resources/messages/client/Client.d.ts +9 -9
- package/dist/api/resources/groups/resources/messages/client/Client.js +14 -14
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.d.ts +6 -6
- package/dist/api/resources/identities/client/Client.js +13 -13
- package/dist/api/resources/identities/resources/agents/client/Client.d.ts +2 -2
- package/dist/api/resources/identities/resources/agents/client/Client.js +3 -3
- package/dist/api/resources/identities/resources/blocks/client/Client.d.ts +2 -2
- package/dist/api/resources/identities/resources/blocks/client/Client.js +3 -3
- package/dist/api/resources/identities/resources/properties/client/Client.d.ts +2 -2
- package/dist/api/resources/identities/resources/properties/client/Client.js +3 -3
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +4 -1
- package/dist/api/resources/jobs/client/Client.d.ts +6 -6
- package/dist/api/resources/jobs/client/Client.js +11 -11
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.d.ts +8 -8
- package/dist/api/resources/providers/client/Client.js +15 -15
- package/dist/api/resources/runs/client/Client.js +6 -6
- 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.d.ts +11 -11
- package/dist/api/resources/sources/client/Client.js +21 -21
- package/dist/api/resources/sources/resources/files/client/Client.d.ts +6 -6
- package/dist/api/resources/sources/resources/files/client/Client.js +9 -9
- package/dist/api/resources/sources/resources/passages/client/Client.d.ts +2 -2
- package/dist/api/resources/sources/resources/passages/client/Client.js +3 -3
- package/dist/api/resources/steps/client/Client.d.ts +2 -2
- package/dist/api/resources/steps/client/Client.js +4 -4
- package/dist/api/resources/steps/resources/feedback/client/Client.d.ts +2 -2
- package/dist/api/resources/steps/resources/feedback/client/Client.js +3 -3
- package/dist/api/resources/steps/resources/messages/client/Client.d.ts +2 -2
- package/dist/api/resources/steps/resources/messages/client/Client.js +3 -3
- package/dist/api/resources/steps/resources/metrics/client/Client.d.ts +2 -2
- package/dist/api/resources/steps/resources/metrics/client/Client.js +3 -3
- package/dist/api/resources/steps/resources/trace/client/Client.d.ts +2 -2
- package/dist/api/resources/steps/resources/trace/client/Client.js +3 -3
- 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.d.ts +1 -1
- package/dist/api/resources/templates/client/Client.js +14 -14
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +2 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.d.ts +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.js +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.d.ts +4 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.js +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls.d.ts +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls.js +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCallsItem.d.ts +4 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCallsItem.js +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItem.d.ts +1 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecution.d.ts +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecution.js +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecutionItem.d.ts +4 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecutionItem.js +5 -0
- package/dist/api/resources/templates/types/index.d.ts +6 -0
- package/dist/api/resources/templates/types/index.js +6 -0
- package/dist/api/resources/tools/client/Client.d.ts +6 -6
- package/dist/api/resources/tools/client/Client.js +23 -23
- package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
- package/dist/api/resources/voice/client/Client.d.ts +8 -0
- package/dist/api/resources/voice/client/Client.js +11 -1
- package/dist/api/types/Annotation.d.ts +10 -0
- package/dist/api/types/Annotation.js +5 -0
- package/dist/api/types/AnnotationUrlCitation.d.ts +11 -0
- package/dist/api/types/AnnotationUrlCitation.js +5 -0
- package/dist/api/types/ApprovalRequestMessage.d.ts +4 -0
- package/dist/api/types/ApprovalRequestMessageAllowedToolCalls.d.ts +8 -0
- package/dist/api/types/ApprovalRequestMessageAllowedToolCalls.js +5 -0
- package/dist/api/types/ApprovalRequestMessageRequestedToolCalls.d.ts +8 -0
- package/dist/api/types/ApprovalRequestMessageRequestedToolCalls.js +5 -0
- package/{api/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts → dist/api/types/Audio.d.ts} +2 -2
- package/dist/api/types/Audio.js +5 -0
- package/dist/api/types/ChatCompletion.d.ts +16 -0
- package/dist/api/types/ChatCompletion.js +5 -0
- package/dist/api/types/ChatCompletionAssistantMessageParam.d.ts +13 -0
- package/dist/api/types/ChatCompletionAssistantMessageParam.js +5 -0
- package/dist/api/types/ChatCompletionAssistantMessageParamContent.d.ts +5 -0
- package/dist/api/types/ChatCompletionAssistantMessageParamContent.js +5 -0
- package/dist/api/types/ChatCompletionAssistantMessageParamContentItem.d.ts +5 -0
- package/dist/api/types/ChatCompletionAssistantMessageParamContentItem.js +5 -0
- package/dist/api/types/ChatCompletionAssistantMessageParamToolCallsItem.d.ts +5 -0
- package/dist/api/types/ChatCompletionAssistantMessageParamToolCallsItem.js +5 -0
- package/dist/api/types/ChatCompletionAudio.d.ts +11 -0
- package/dist/api/types/ChatCompletionAudio.js +5 -0
- package/dist/api/types/ChatCompletionContentPartImageParam.d.ts +8 -0
- package/dist/api/types/ChatCompletionContentPartImageParam.js +5 -0
- package/dist/api/types/ChatCompletionContentPartInputAudioParam.d.ts +8 -0
- package/dist/api/types/ChatCompletionContentPartInputAudioParam.js +5 -0
- package/dist/api/types/ChatCompletionContentPartRefusalParam.d.ts +7 -0
- package/dist/api/types/ChatCompletionContentPartRefusalParam.js +5 -0
- package/dist/api/types/ChatCompletionContentPartTextParam.d.ts +7 -0
- package/dist/api/types/ChatCompletionContentPartTextParam.js +5 -0
- package/dist/api/types/ChatCompletionDeveloperMessageParam.d.ts +9 -0
- package/dist/api/types/ChatCompletionDeveloperMessageParam.js +5 -0
- package/dist/api/types/ChatCompletionDeveloperMessageParamContent.d.ts +5 -0
- package/dist/api/types/ChatCompletionDeveloperMessageParamContent.js +5 -0
- package/dist/api/types/ChatCompletionFunctionMessageParam.d.ts +8 -0
- package/dist/api/types/ChatCompletionFunctionMessageParam.js +5 -0
- package/dist/api/types/ChatCompletionMessage.d.ts +15 -0
- package/dist/api/types/ChatCompletionMessage.js +5 -0
- package/dist/api/types/ChatCompletionMessageCustomToolCall.d.ts +11 -0
- package/dist/api/types/ChatCompletionMessageCustomToolCall.js +5 -0
- package/dist/api/types/ChatCompletionMessageCustomToolCallParam.d.ts +9 -0
- package/dist/api/types/ChatCompletionMessageCustomToolCallParam.js +5 -0
- package/dist/api/types/ChatCompletionMessageFunctionToolCallInput.d.ts +11 -0
- package/dist/api/types/ChatCompletionMessageFunctionToolCallInput.js +5 -0
- package/{api/types/ChatCompletionMessageFunctionToolCall.d.ts → dist/api/types/ChatCompletionMessageFunctionToolCallOutput.d.ts} +2 -2
- package/dist/api/types/ChatCompletionMessageFunctionToolCallOutput.js +5 -0
- package/dist/api/types/ChatCompletionMessageFunctionToolCallParam.d.ts +9 -0
- package/dist/api/types/ChatCompletionMessageFunctionToolCallParam.js +5 -0
- package/dist/api/types/ChatCompletionMessageToolCallsItem.d.ts +5 -0
- package/dist/api/types/ChatCompletionMessageToolCallsItem.js +5 -0
- package/dist/api/types/ChatCompletionServiceTier.d.ts +11 -0
- package/dist/api/types/ChatCompletionServiceTier.js +13 -0
- package/dist/api/types/ChatCompletionSystemMessageParam.d.ts +9 -0
- package/dist/api/types/ChatCompletionSystemMessageParam.js +5 -0
- package/dist/api/types/ChatCompletionSystemMessageParamContent.d.ts +5 -0
- package/dist/api/types/ChatCompletionSystemMessageParamContent.js +5 -0
- package/dist/api/types/ChatCompletionTokenLogprob.d.ts +12 -0
- package/dist/api/types/ChatCompletionTokenLogprob.js +5 -0
- package/dist/api/types/ChatCompletionToolMessageParam.d.ts +9 -0
- package/dist/api/types/ChatCompletionToolMessageParam.js +5 -0
- package/dist/api/types/ChatCompletionToolMessageParamContent.d.ts +5 -0
- package/dist/api/types/ChatCompletionToolMessageParamContent.js +5 -0
- package/dist/api/types/ChatCompletionUserMessageParam.d.ts +9 -0
- package/dist/api/types/ChatCompletionUserMessageParam.js +5 -0
- package/dist/api/types/ChatCompletionUserMessageParamContent.d.ts +5 -0
- package/dist/api/types/ChatCompletionUserMessageParamContent.js +5 -0
- package/dist/api/types/ChatCompletionUserMessageParamContentItem.d.ts +5 -0
- package/dist/api/types/ChatCompletionUserMessageParamContentItem.js +5 -0
- package/dist/api/types/Choice.d.ts +12 -0
- package/dist/api/types/Choice.js +5 -0
- package/dist/api/types/ChoiceFinishReason.d.ts +11 -0
- package/dist/api/types/ChoiceFinishReason.js +13 -0
- package/dist/api/types/ChoiceLogprobs.d.ts +10 -0
- package/dist/api/types/ChoiceLogprobs.js +5 -0
- package/dist/api/types/CompletionTokensDetails.d.ts +11 -0
- package/dist/api/types/CompletionTokensDetails.js +5 -0
- package/dist/api/types/CompletionUsage.d.ts +13 -0
- package/dist/api/types/CompletionUsage.js +5 -0
- package/dist/api/types/CustomInput.d.ts +7 -0
- package/dist/api/types/CustomInput.js +5 -0
- package/dist/api/types/CustomOutput.d.ts +9 -0
- package/dist/api/types/CustomOutput.js +5 -0
- package/dist/api/types/FileFile.d.ts +8 -0
- package/dist/api/types/FileFile.js +5 -0
- package/dist/api/types/File_.d.ts +8 -0
- package/dist/api/types/File_.js +5 -0
- package/dist/api/types/FunctionCallInput.d.ts +7 -0
- package/dist/api/types/FunctionCallInput.js +5 -0
- package/dist/api/types/FunctionCallOutput.d.ts +9 -0
- package/dist/api/types/FunctionCallOutput.js +5 -0
- package/dist/api/types/{Function.d.ts → FunctionOutput.d.ts} +1 -1
- package/dist/api/types/FunctionOutput.js +5 -0
- package/dist/api/types/ImageUrl.d.ts +8 -0
- package/dist/api/types/ImageUrl.js +5 -0
- package/dist/api/types/ImageUrlDetail.d.ts +9 -0
- package/dist/api/types/ImageUrlDetail.js +11 -0
- package/dist/api/types/InputAudio.d.ts +8 -0
- package/dist/api/types/InputAudio.js +5 -0
- package/dist/api/types/InputAudioFormat.d.ts +8 -0
- package/dist/api/types/InputAudioFormat.js +10 -0
- package/dist/api/types/InternalTemplateAgentCreate.d.ts +2 -0
- package/dist/api/types/LettaSchemasAgentFileAgentSchema.d.ts +2 -0
- package/dist/api/types/LettaSchemasAgentFileMessageSchema.d.ts +3 -1
- package/dist/api/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.d.ts +5 -0
- package/dist/api/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.js +5 -0
- package/dist/api/types/LettaSchemasAgentFileToolSchema.d.ts +2 -0
- package/dist/api/types/LlmConfig.d.ts +4 -0
- package/dist/api/types/Message.d.ts +1 -1
- package/dist/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts +9 -0
- package/dist/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js +5 -0
- package/dist/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.d.ts +7 -0
- package/dist/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.js +5 -0
- package/dist/api/types/PromptTokensDetails.d.ts +9 -0
- package/dist/api/types/PromptTokensDetails.js +5 -0
- package/dist/api/types/RunMetrics.d.ts +2 -0
- package/dist/api/types/Tool.d.ts +2 -0
- package/dist/api/types/ToolCreate.d.ts +2 -0
- package/dist/api/types/TopLogprob.d.ts +10 -0
- package/dist/api/types/TopLogprob.js +5 -0
- package/dist/api/types/index.d.ts +55 -2
- package/dist/api/types/index.js +55 -2
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
- package/dist/serialization/resources/agents/resources/index.d.ts +0 -3
- package/dist/serialization/resources/agents/resources/index.js +1 -4
- package/dist/serialization/resources/chat/client/requests/ChatCompletionRequest.d.ts +24 -0
- package/{serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js → dist/serialization/resources/chat/client/requests/ChatCompletionRequest.js} +16 -6
- package/dist/serialization/resources/chat/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/chat/client/requests/index.js +5 -0
- package/dist/serialization/resources/chat/types/ChatCompletionRequestMessagesItem.d.ts +16 -0
- package/dist/serialization/resources/chat/types/ChatCompletionRequestMessagesItem.js +54 -0
- package/dist/serialization/resources/chat/types/ChatCompletionRequestStop.d.ts +10 -0
- package/dist/serialization/resources/chat/types/ChatCompletionRequestStop.js +44 -0
- package/dist/serialization/resources/chat/types/index.d.ts +2 -0
- package/dist/serialization/resources/chat/types/index.js +18 -0
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +4 -1
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +4 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.js +4 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.d.ts +11 -0
- package/dist/serialization/resources/{agents/resources/templates/client/requests/TemplatesMigrateRequest.js → templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.js} +9 -7
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.d.ts +10 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.js +41 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls.d.ts +11 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls.js +47 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCallsItem.d.ts +10 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCallsItem.js +41 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItem.d.ts +2 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItem.js +2 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecution.d.ts +11 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecution.js +46 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecutionItem.d.ts +10 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecutionItem.js +41 -0
- package/dist/serialization/resources/templates/types/index.d.ts +6 -0
- package/dist/serialization/resources/templates/types/index.js +6 -0
- package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
- package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
- package/dist/serialization/types/Annotation.d.ts +15 -0
- package/dist/serialization/types/Annotation.js +47 -0
- package/dist/serialization/types/AnnotationUrlCitation.d.ts +16 -0
- package/dist/serialization/types/AnnotationUrlCitation.js +48 -0
- package/dist/serialization/types/ApprovalRequestMessage.d.ts +4 -0
- package/dist/serialization/types/ApprovalRequestMessage.js +4 -0
- package/dist/serialization/types/ApprovalRequestMessageAllowedToolCalls.d.ts +12 -0
- package/dist/serialization/types/ApprovalRequestMessageAllowedToolCalls.js +43 -0
- package/dist/serialization/types/ApprovalRequestMessageRequestedToolCalls.d.ts +12 -0
- package/dist/serialization/types/ApprovalRequestMessageRequestedToolCalls.js +43 -0
- package/dist/serialization/types/Audio.d.ts +12 -0
- package/{serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.js → dist/serialization/types/Audio.js} +4 -4
- package/dist/serialization/types/ChatCompletion.d.ts +23 -0
- package/dist/serialization/types/ChatCompletion.js +55 -0
- package/dist/serialization/types/ChatCompletionAssistantMessageParam.d.ts +22 -0
- package/dist/serialization/types/ChatCompletionAssistantMessageParam.js +53 -0
- package/dist/serialization/types/ChatCompletionAssistantMessageParamContent.d.ts +11 -0
- package/dist/serialization/types/ChatCompletionAssistantMessageParamContent.js +45 -0
- package/dist/serialization/types/ChatCompletionAssistantMessageParamContentItem.d.ts +12 -0
- package/dist/serialization/types/ChatCompletionAssistantMessageParamContentItem.js +46 -0
- package/dist/serialization/types/ChatCompletionAssistantMessageParamToolCallsItem.d.ts +12 -0
- package/dist/serialization/types/ChatCompletionAssistantMessageParamToolCallsItem.js +46 -0
- package/dist/serialization/types/ChatCompletionAudio.d.ts +16 -0
- package/dist/serialization/types/ChatCompletionAudio.js +48 -0
- package/dist/serialization/types/ChatCompletionContentPartImageParam.d.ts +14 -0
- package/dist/serialization/types/ChatCompletionContentPartImageParam.js +45 -0
- package/dist/serialization/types/ChatCompletionContentPartInputAudioParam.d.ts +14 -0
- package/dist/serialization/types/ChatCompletionContentPartInputAudioParam.js +45 -0
- package/dist/serialization/types/ChatCompletionContentPartRefusalParam.d.ts +13 -0
- package/dist/serialization/types/ChatCompletionContentPartRefusalParam.js +44 -0
- package/dist/serialization/types/ChatCompletionContentPartTextParam.d.ts +13 -0
- package/dist/serialization/types/ChatCompletionContentPartTextParam.js +44 -0
- package/dist/serialization/types/ChatCompletionDeveloperMessageParam.d.ts +15 -0
- package/dist/serialization/types/ChatCompletionDeveloperMessageParam.js +46 -0
- package/dist/serialization/types/ChatCompletionDeveloperMessageParamContent.d.ts +11 -0
- package/dist/serialization/types/ChatCompletionDeveloperMessageParamContent.js +45 -0
- package/dist/serialization/types/ChatCompletionFunctionMessageParam.d.ts +14 -0
- package/dist/serialization/types/ChatCompletionFunctionMessageParam.js +45 -0
- package/dist/serialization/types/ChatCompletionMessage.d.ts +23 -0
- package/dist/serialization/types/ChatCompletionMessage.js +55 -0
- package/dist/serialization/types/ChatCompletionMessageCustomToolCall.d.ts +16 -0
- package/dist/serialization/types/ChatCompletionMessageCustomToolCall.js +48 -0
- package/dist/serialization/types/ChatCompletionMessageCustomToolCallParam.d.ts +15 -0
- package/dist/serialization/types/ChatCompletionMessageCustomToolCallParam.js +46 -0
- package/dist/serialization/types/ChatCompletionMessageFunctionToolCallInput.d.ts +16 -0
- package/dist/serialization/types/ChatCompletionMessageFunctionToolCallInput.js +48 -0
- package/dist/serialization/types/ChatCompletionMessageFunctionToolCallOutput.d.ts +16 -0
- package/dist/serialization/types/{ChatCompletionMessageFunctionToolCall.js → ChatCompletionMessageFunctionToolCallOutput.js} +4 -4
- package/dist/serialization/types/ChatCompletionMessageFunctionToolCallParam.d.ts +15 -0
- package/dist/serialization/types/ChatCompletionMessageFunctionToolCallParam.js +46 -0
- package/dist/serialization/types/ChatCompletionMessageToolCallsItem.d.ts +12 -0
- package/dist/serialization/types/ChatCompletionMessageToolCallsItem.js +46 -0
- package/dist/serialization/types/ChatCompletionServiceTier.d.ts +10 -0
- package/dist/serialization/types/ChatCompletionServiceTier.js +41 -0
- package/dist/serialization/types/ChatCompletionSystemMessageParam.d.ts +15 -0
- package/dist/serialization/types/ChatCompletionSystemMessageParam.js +46 -0
- package/dist/serialization/types/ChatCompletionSystemMessageParamContent.d.ts +11 -0
- package/dist/serialization/types/ChatCompletionSystemMessageParamContent.js +45 -0
- package/dist/serialization/types/ChatCompletionTokenLogprob.d.ts +17 -0
- package/dist/serialization/types/ChatCompletionTokenLogprob.js +49 -0
- package/dist/serialization/types/ChatCompletionToolMessageParam.d.ts +15 -0
- package/dist/serialization/types/ChatCompletionToolMessageParam.js +46 -0
- package/dist/serialization/types/ChatCompletionToolMessageParamContent.d.ts +11 -0
- package/dist/serialization/types/ChatCompletionToolMessageParamContent.js +45 -0
- package/dist/serialization/types/ChatCompletionUserMessageParam.d.ts +15 -0
- package/dist/serialization/types/ChatCompletionUserMessageParam.js +46 -0
- package/dist/serialization/types/ChatCompletionUserMessageParamContent.d.ts +11 -0
- package/dist/serialization/types/ChatCompletionUserMessageParamContent.js +45 -0
- package/dist/serialization/types/ChatCompletionUserMessageParamContentItem.d.ts +14 -0
- package/dist/serialization/types/ChatCompletionUserMessageParamContentItem.js +50 -0
- package/dist/serialization/types/Choice.d.ts +19 -0
- package/dist/serialization/types/Choice.js +51 -0
- package/dist/serialization/types/ChoiceFinishReason.d.ts +10 -0
- package/dist/serialization/types/ChoiceFinishReason.js +41 -0
- package/dist/serialization/types/ChoiceLogprobs.d.ts +15 -0
- package/dist/serialization/types/ChoiceLogprobs.js +47 -0
- package/dist/serialization/types/CompletionTokensDetails.d.ts +16 -0
- package/dist/serialization/types/CompletionTokensDetails.js +48 -0
- package/dist/serialization/types/CompletionUsage.d.ts +19 -0
- package/dist/serialization/types/CompletionUsage.js +51 -0
- package/dist/serialization/types/CustomInput.d.ts +13 -0
- package/dist/serialization/{resources/agents/resources/templates/types/TemplatesMigrateResponse.js → types/CustomInput.js} +5 -4
- package/dist/serialization/types/CustomOutput.d.ts +14 -0
- package/dist/serialization/types/CustomOutput.js +46 -0
- package/dist/serialization/types/FileFile.d.ts +14 -0
- package/dist/serialization/types/FileFile.js +45 -0
- package/dist/serialization/types/File_.d.ts +14 -0
- package/dist/serialization/types/File_.js +45 -0
- package/dist/serialization/types/FunctionCallInput.d.ts +13 -0
- package/dist/serialization/types/FunctionCallInput.js +44 -0
- package/dist/serialization/types/FunctionCallOutput.d.ts +14 -0
- package/dist/serialization/types/FunctionCallOutput.js +46 -0
- package/{serialization/types/Function.d.ts → dist/serialization/types/FunctionOutput.d.ts} +2 -2
- package/{serialization/types/Function.js → dist/serialization/types/FunctionOutput.js} +2 -2
- package/dist/serialization/types/ImageUrl.d.ts +14 -0
- package/dist/serialization/types/ImageUrl.js +45 -0
- package/dist/serialization/types/ImageUrlDetail.d.ts +10 -0
- package/dist/serialization/types/ImageUrlDetail.js +41 -0
- package/dist/serialization/types/InputAudio.d.ts +14 -0
- package/dist/serialization/types/InputAudio.js +45 -0
- package/dist/serialization/types/InputAudioFormat.d.ts +10 -0
- package/dist/serialization/types/InputAudioFormat.js +41 -0
- package/dist/serialization/types/InternalTemplateAgentCreate.d.ts +1 -0
- package/dist/serialization/types/InternalTemplateAgentCreate.js +1 -0
- package/dist/serialization/types/LettaSchemasAgentFileAgentSchema.d.ts +1 -0
- package/dist/serialization/types/LettaSchemasAgentFileAgentSchema.js +1 -0
- package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +4 -2
- package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.js +4 -2
- package/dist/serialization/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.d.ts +12 -0
- package/dist/serialization/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.js +43 -0
- package/dist/serialization/types/LettaSchemasAgentFileToolSchema.d.ts +1 -0
- package/dist/serialization/types/LettaSchemasAgentFileToolSchema.js +1 -0
- package/dist/serialization/types/LlmConfig.d.ts +2 -0
- package/dist/serialization/types/LlmConfig.js +2 -0
- package/dist/serialization/types/Message.d.ts +2 -2
- package/dist/serialization/types/Message.js +2 -2
- package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts +14 -0
- package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js +46 -0
- package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.d.ts +13 -0
- package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.js +44 -0
- package/dist/serialization/types/PromptTokensDetails.d.ts +14 -0
- package/dist/serialization/types/PromptTokensDetails.js +46 -0
- package/dist/serialization/types/RunMetrics.d.ts +1 -0
- package/dist/serialization/types/RunMetrics.js +1 -0
- package/dist/serialization/types/Tool.d.ts +1 -0
- package/dist/serialization/types/Tool.js +1 -0
- package/dist/serialization/types/ToolCreate.d.ts +1 -0
- package/dist/serialization/types/ToolCreate.js +1 -0
- package/dist/serialization/types/TopLogprob.d.ts +15 -0
- package/dist/serialization/types/TopLogprob.js +47 -0
- package/dist/serialization/types/index.d.ts +55 -2
- package/dist/serialization/types/index.js +55 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +336 -395
- package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
- package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
- package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
- package/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
- package/serialization/resources/agents/resources/index.d.ts +0 -3
- package/serialization/resources/agents/resources/index.js +1 -4
- package/serialization/resources/chat/client/requests/ChatCompletionRequest.d.ts +24 -0
- package/serialization/resources/chat/client/requests/ChatCompletionRequest.js +55 -0
- package/serialization/resources/chat/client/requests/index.d.ts +1 -0
- package/serialization/resources/chat/client/requests/index.js +5 -0
- package/serialization/resources/chat/types/ChatCompletionRequestMessagesItem.d.ts +16 -0
- package/serialization/resources/chat/types/ChatCompletionRequestMessagesItem.js +54 -0
- package/serialization/resources/chat/types/ChatCompletionRequestStop.d.ts +10 -0
- package/serialization/resources/chat/types/ChatCompletionRequestStop.js +44 -0
- package/serialization/resources/chat/types/index.d.ts +2 -0
- package/serialization/resources/chat/types/index.js +18 -0
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +4 -1
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +4 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.js +4 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.d.ts +11 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.js +47 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.d.ts +10 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.js +41 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls.d.ts +11 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls.js +47 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCallsItem.d.ts +10 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCallsItem.js +41 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItem.d.ts +2 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItem.js +2 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecution.d.ts +11 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecution.js +46 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecutionItem.d.ts +10 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecutionItem.js +41 -0
- package/serialization/resources/templates/types/index.d.ts +6 -0
- package/serialization/resources/templates/types/index.js +6 -0
- package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
- package/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
- package/serialization/types/Annotation.d.ts +15 -0
- package/serialization/types/Annotation.js +47 -0
- package/serialization/types/AnnotationUrlCitation.d.ts +16 -0
- package/serialization/types/AnnotationUrlCitation.js +48 -0
- package/serialization/types/ApprovalRequestMessage.d.ts +4 -0
- package/serialization/types/ApprovalRequestMessage.js +4 -0
- package/serialization/types/ApprovalRequestMessageAllowedToolCalls.d.ts +12 -0
- package/serialization/types/ApprovalRequestMessageAllowedToolCalls.js +43 -0
- package/serialization/types/ApprovalRequestMessageRequestedToolCalls.d.ts +12 -0
- package/serialization/types/ApprovalRequestMessageRequestedToolCalls.js +43 -0
- package/serialization/types/Audio.d.ts +12 -0
- package/serialization/types/Audio.js +43 -0
- package/serialization/types/ChatCompletion.d.ts +23 -0
- package/serialization/types/ChatCompletion.js +55 -0
- package/serialization/types/ChatCompletionAssistantMessageParam.d.ts +22 -0
- package/serialization/types/ChatCompletionAssistantMessageParam.js +53 -0
- package/serialization/types/ChatCompletionAssistantMessageParamContent.d.ts +11 -0
- package/serialization/types/ChatCompletionAssistantMessageParamContent.js +45 -0
- package/serialization/types/ChatCompletionAssistantMessageParamContentItem.d.ts +12 -0
- package/serialization/types/ChatCompletionAssistantMessageParamContentItem.js +46 -0
- package/serialization/types/ChatCompletionAssistantMessageParamToolCallsItem.d.ts +12 -0
- package/serialization/types/ChatCompletionAssistantMessageParamToolCallsItem.js +46 -0
- package/serialization/types/ChatCompletionAudio.d.ts +16 -0
- package/serialization/types/ChatCompletionAudio.js +48 -0
- package/serialization/types/ChatCompletionContentPartImageParam.d.ts +14 -0
- package/serialization/types/ChatCompletionContentPartImageParam.js +45 -0
- package/serialization/types/ChatCompletionContentPartInputAudioParam.d.ts +14 -0
- package/serialization/types/ChatCompletionContentPartInputAudioParam.js +45 -0
- package/serialization/types/ChatCompletionContentPartRefusalParam.d.ts +13 -0
- package/serialization/types/ChatCompletionContentPartRefusalParam.js +44 -0
- package/serialization/types/ChatCompletionContentPartTextParam.d.ts +13 -0
- package/serialization/types/ChatCompletionContentPartTextParam.js +44 -0
- package/serialization/types/ChatCompletionDeveloperMessageParam.d.ts +15 -0
- package/serialization/types/ChatCompletionDeveloperMessageParam.js +46 -0
- package/serialization/types/ChatCompletionDeveloperMessageParamContent.d.ts +11 -0
- package/serialization/types/ChatCompletionDeveloperMessageParamContent.js +45 -0
- package/serialization/types/ChatCompletionFunctionMessageParam.d.ts +14 -0
- package/serialization/types/ChatCompletionFunctionMessageParam.js +45 -0
- package/serialization/types/ChatCompletionMessage.d.ts +23 -0
- package/serialization/types/ChatCompletionMessage.js +55 -0
- package/serialization/types/ChatCompletionMessageCustomToolCall.d.ts +16 -0
- package/serialization/types/ChatCompletionMessageCustomToolCall.js +48 -0
- package/serialization/types/ChatCompletionMessageCustomToolCallParam.d.ts +15 -0
- package/serialization/types/ChatCompletionMessageCustomToolCallParam.js +46 -0
- package/serialization/types/ChatCompletionMessageFunctionToolCallInput.d.ts +16 -0
- package/serialization/types/ChatCompletionMessageFunctionToolCallInput.js +48 -0
- package/serialization/types/ChatCompletionMessageFunctionToolCallOutput.d.ts +16 -0
- package/serialization/types/{ChatCompletionMessageFunctionToolCall.js → ChatCompletionMessageFunctionToolCallOutput.js} +4 -4
- package/serialization/types/ChatCompletionMessageFunctionToolCallParam.d.ts +15 -0
- package/serialization/types/ChatCompletionMessageFunctionToolCallParam.js +46 -0
- package/serialization/types/ChatCompletionMessageToolCallsItem.d.ts +12 -0
- package/serialization/types/ChatCompletionMessageToolCallsItem.js +46 -0
- package/serialization/types/ChatCompletionServiceTier.d.ts +10 -0
- package/serialization/types/ChatCompletionServiceTier.js +41 -0
- package/serialization/types/ChatCompletionSystemMessageParam.d.ts +15 -0
- package/serialization/types/ChatCompletionSystemMessageParam.js +46 -0
- package/serialization/types/ChatCompletionSystemMessageParamContent.d.ts +11 -0
- package/serialization/types/ChatCompletionSystemMessageParamContent.js +45 -0
- package/serialization/types/ChatCompletionTokenLogprob.d.ts +17 -0
- package/serialization/types/ChatCompletionTokenLogprob.js +49 -0
- package/serialization/types/ChatCompletionToolMessageParam.d.ts +15 -0
- package/serialization/types/ChatCompletionToolMessageParam.js +46 -0
- package/serialization/types/ChatCompletionToolMessageParamContent.d.ts +11 -0
- package/serialization/types/ChatCompletionToolMessageParamContent.js +45 -0
- package/serialization/types/ChatCompletionUserMessageParam.d.ts +15 -0
- package/serialization/types/ChatCompletionUserMessageParam.js +46 -0
- package/serialization/types/ChatCompletionUserMessageParamContent.d.ts +11 -0
- package/serialization/types/ChatCompletionUserMessageParamContent.js +45 -0
- package/serialization/types/ChatCompletionUserMessageParamContentItem.d.ts +14 -0
- package/serialization/types/ChatCompletionUserMessageParamContentItem.js +50 -0
- package/serialization/types/Choice.d.ts +19 -0
- package/serialization/types/Choice.js +51 -0
- package/serialization/types/ChoiceFinishReason.d.ts +10 -0
- package/serialization/types/ChoiceFinishReason.js +41 -0
- package/serialization/types/ChoiceLogprobs.d.ts +15 -0
- package/serialization/types/ChoiceLogprobs.js +47 -0
- package/serialization/types/CompletionTokensDetails.d.ts +16 -0
- package/serialization/types/CompletionTokensDetails.js +48 -0
- package/serialization/types/CompletionUsage.d.ts +19 -0
- package/serialization/types/CompletionUsage.js +51 -0
- package/serialization/types/CustomInput.d.ts +13 -0
- package/serialization/types/CustomInput.js +44 -0
- package/serialization/types/CustomOutput.d.ts +14 -0
- package/serialization/types/CustomOutput.js +46 -0
- package/serialization/types/FileFile.d.ts +14 -0
- package/serialization/types/FileFile.js +45 -0
- package/serialization/types/File_.d.ts +14 -0
- package/serialization/types/File_.js +45 -0
- package/serialization/types/FunctionCallInput.d.ts +13 -0
- package/serialization/types/FunctionCallInput.js +44 -0
- package/serialization/types/FunctionCallOutput.d.ts +14 -0
- package/serialization/types/FunctionCallOutput.js +46 -0
- package/{dist/serialization/types/Function.d.ts → serialization/types/FunctionOutput.d.ts} +2 -2
- package/{dist/serialization/types/Function.js → serialization/types/FunctionOutput.js} +2 -2
- package/serialization/types/ImageUrl.d.ts +14 -0
- package/serialization/types/ImageUrl.js +45 -0
- package/serialization/types/ImageUrlDetail.d.ts +10 -0
- package/serialization/types/ImageUrlDetail.js +41 -0
- package/serialization/types/InputAudio.d.ts +14 -0
- package/serialization/types/InputAudio.js +45 -0
- package/serialization/types/InputAudioFormat.d.ts +10 -0
- package/serialization/types/InputAudioFormat.js +41 -0
- package/serialization/types/InternalTemplateAgentCreate.d.ts +1 -0
- package/serialization/types/InternalTemplateAgentCreate.js +1 -0
- package/serialization/types/LettaSchemasAgentFileAgentSchema.d.ts +1 -0
- package/serialization/types/LettaSchemasAgentFileAgentSchema.js +1 -0
- package/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +4 -2
- package/serialization/types/LettaSchemasAgentFileMessageSchema.js +4 -2
- package/serialization/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.d.ts +12 -0
- package/serialization/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.js +43 -0
- package/serialization/types/LettaSchemasAgentFileToolSchema.d.ts +1 -0
- package/serialization/types/LettaSchemasAgentFileToolSchema.js +1 -0
- package/serialization/types/LlmConfig.d.ts +2 -0
- package/serialization/types/LlmConfig.js +2 -0
- package/serialization/types/Message.d.ts +2 -2
- package/serialization/types/Message.js +2 -2
- package/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts +14 -0
- package/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js +46 -0
- package/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.d.ts +13 -0
- package/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.js +44 -0
- package/serialization/types/PromptTokensDetails.d.ts +14 -0
- package/serialization/types/PromptTokensDetails.js +46 -0
- package/serialization/types/RunMetrics.d.ts +1 -0
- package/serialization/types/RunMetrics.js +1 -0
- package/serialization/types/Tool.d.ts +1 -0
- package/serialization/types/Tool.js +1 -0
- package/serialization/types/ToolCreate.d.ts +1 -0
- package/serialization/types/ToolCreate.js +1 -0
- package/serialization/types/TopLogprob.d.ts +15 -0
- package/serialization/types/TopLogprob.js +47 -0
- package/serialization/types/index.d.ts +55 -2
- package/serialization/types/index.js +55 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/agents/resources/templates/client/Client.d.ts +0 -79
- package/api/resources/agents/resources/templates/client/Client.js +0 -250
- package/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -16
- package/api/resources/agents/resources/templates/client/requests/index.d.ts +0 -1
- package/api/resources/agents/resources/templates/types/index.d.ts +0 -1
- package/dist/api/resources/agents/resources/templates/client/Client.d.ts +0 -79
- package/dist/api/resources/agents/resources/templates/client/Client.js +0 -250
- package/dist/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -16
- package/dist/api/resources/agents/resources/templates/client/requests/index.d.ts +0 -1
- package/dist/api/resources/agents/resources/templates/types/index.d.ts +0 -1
- package/dist/api/resources/agents/resources/templates/types/index.js +0 -17
- package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -14
- package/dist/serialization/resources/agents/resources/templates/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/agents/resources/templates/client/requests/index.js +0 -5
- package/dist/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts +0 -12
- package/dist/serialization/resources/agents/resources/templates/types/index.d.ts +0 -1
- package/dist/serialization/resources/agents/resources/templates/types/index.js +0 -17
- package/dist/serialization/types/ChatCompletionMessageFunctionToolCall.d.ts +0 -16
- package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -14
- package/serialization/resources/agents/resources/templates/client/requests/index.d.ts +0 -1
- package/serialization/resources/agents/resources/templates/client/requests/index.js +0 -5
- package/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts +0 -12
- package/serialization/resources/agents/resources/templates/types/index.d.ts +0 -1
- package/serialization/resources/agents/resources/templates/types/index.js +0 -17
- package/serialization/types/ChatCompletionMessageFunctionToolCall.d.ts +0 -16
- /package/api/resources/{agents/resources/templates → chat}/client/index.d.ts +0 -0
- /package/api/resources/{agents/resources/templates → chat}/client/index.js +0 -0
- /package/api/resources/{agents/resources/templates/client/requests/TemplatesMigrateRequest.js → chat/client/requests/ChatCompletionRequest.js} +0 -0
- /package/api/resources/{agents/resources/templates → chat}/client/requests/index.js +0 -0
- /package/api/resources/{agents/resources/templates → chat}/index.d.ts +0 -0
- /package/api/resources/{agents/resources/templates → chat}/index.js +0 -0
- /package/api/resources/{agents/resources/templates/types/TemplatesMigrateResponse.js → chat/types/ChatCompletionRequestMessagesItem.js} +0 -0
- /package/api/{types/ChatCompletionMessageFunctionToolCall.js → resources/chat/types/ChatCompletionRequestStop.js} +0 -0
- /package/api/{types/Function.js → resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.js} +0 -0
- /package/{dist/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js → api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.js} +0 -0
- /package/{dist/api/resources/agents/resources/templates/types/TemplatesMigrateResponse.js → api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls.js} +0 -0
- /package/{dist/api/types/ChatCompletionMessageFunctionToolCall.js → api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCallsItem.js} +0 -0
- /package/{dist/api/types/Function.js → api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecution.js} +0 -0
- /package/dist/api/resources/{agents/resources/templates → chat}/client/index.d.ts +0 -0
- /package/dist/api/resources/{agents/resources/templates → chat}/client/index.js +0 -0
- /package/dist/api/resources/{agents/resources/templates → chat}/client/requests/index.js +0 -0
- /package/dist/api/resources/{agents/resources/templates → chat}/index.d.ts +0 -0
- /package/dist/api/resources/{agents/resources/templates → chat}/index.js +0 -0
- /package/dist/serialization/resources/{agents/resources/templates → chat}/client/index.d.ts +0 -0
- /package/dist/serialization/resources/{agents/resources/templates → chat}/client/index.js +0 -0
- /package/dist/serialization/resources/{agents/resources/templates → chat}/index.d.ts +0 -0
- /package/dist/serialization/resources/{agents/resources/templates → chat}/index.js +0 -0
- /package/serialization/resources/{agents/resources/templates → chat}/client/index.d.ts +0 -0
- /package/serialization/resources/{agents/resources/templates → chat}/client/index.js +0 -0
- /package/serialization/resources/{agents/resources/templates → chat}/index.d.ts +0 -0
- /package/serialization/resources/{agents/resources/templates → chat}/index.js +0 -0
|
@@ -30,10 +30,18 @@ export declare class Voice {
|
|
|
30
30
|
protected readonly _options: Voice.Options;
|
|
31
31
|
constructor(_options?: Voice.Options);
|
|
32
32
|
/**
|
|
33
|
+
* DEPRECATED: This voice-beta endpoint has been deprecated.
|
|
34
|
+
*
|
|
35
|
+
* The voice functionality has been integrated into the main chat completions endpoint.
|
|
36
|
+
* Please use the standard /v1/agents/{agent_id}/messages endpoint instead.
|
|
37
|
+
*
|
|
38
|
+
* This endpoint will be removed in a future version.
|
|
39
|
+
*
|
|
33
40
|
* @param {string} agentId
|
|
34
41
|
* @param {Record<string, unknown>} request
|
|
35
42
|
* @param {Voice.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
43
|
*
|
|
44
|
+
* @throws {@link Letta.GoneError}
|
|
37
45
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
38
46
|
*
|
|
39
47
|
* @example
|
|
@@ -60,10 +60,18 @@ class Voice {
|
|
|
60
60
|
this._options = _options;
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
|
+
* DEPRECATED: This voice-beta endpoint has been deprecated.
|
|
64
|
+
*
|
|
65
|
+
* The voice functionality has been integrated into the main chat completions endpoint.
|
|
66
|
+
* Please use the standard /v1/agents/{agent_id}/messages endpoint instead.
|
|
67
|
+
*
|
|
68
|
+
* This endpoint will be removed in a future version.
|
|
69
|
+
*
|
|
63
70
|
* @param {string} agentId
|
|
64
71
|
* @param {Record<string, unknown>} request
|
|
65
72
|
* @param {Voice.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
73
|
*
|
|
74
|
+
* @throws {@link Letta.GoneError}
|
|
67
75
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
68
76
|
*
|
|
69
77
|
* @example
|
|
@@ -82,7 +90,7 @@ class Voice {
|
|
|
82
90
|
method: "POST",
|
|
83
91
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
84
92
|
? yield core.Supplier.get(this._options.project)
|
|
85
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
93
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "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),
|
|
86
94
|
contentType: "application/json",
|
|
87
95
|
requestType: "json",
|
|
88
96
|
body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(request, {
|
|
@@ -97,6 +105,8 @@ class Voice {
|
|
|
97
105
|
}
|
|
98
106
|
if (_response.error.reason === "status-code") {
|
|
99
107
|
switch (_response.error.statusCode) {
|
|
108
|
+
case 410:
|
|
109
|
+
throw new Letta.GoneError(_response.error.body, _response.rawResponse);
|
|
100
110
|
case 422:
|
|
101
111
|
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
102
112
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export interface Annotation {
|
|
6
|
+
type: "url_citation";
|
|
7
|
+
urlCitation: Letta.AnnotationUrlCitation;
|
|
8
|
+
/** Accepts any additional properties */
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface AnnotationUrlCitation {
|
|
5
|
+
endIndex: number;
|
|
6
|
+
startIndex: number;
|
|
7
|
+
title: string;
|
|
8
|
+
url: string;
|
|
9
|
+
/** Accepts any additional properties */
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
@@ -24,4 +24,8 @@ export interface ApprovalRequestMessage {
|
|
|
24
24
|
runId?: string;
|
|
25
25
|
/** The tool call that has been requested by the llm to run */
|
|
26
26
|
toolCall: Letta.ApprovalRequestMessageToolCall;
|
|
27
|
+
/** The tool calls that have been requested by the llm to run, which are pending approval */
|
|
28
|
+
requestedToolCalls?: Letta.ApprovalRequestMessageRequestedToolCalls;
|
|
29
|
+
/** Any tool calls returned by the llm during the same turn that do not require approvals, which will execute once this approval request is handled regardless of approval or denial. Only used when parallel_tool_calls is enabled */
|
|
30
|
+
allowedToolCalls?: Letta.ApprovalRequestMessageAllowedToolCalls;
|
|
27
31
|
}
|
|
@@ -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
|
+
/**
|
|
6
|
+
* Any tool calls returned by the llm during the same turn that do not require approvals, which will execute once this approval request is handled regardless of approval or denial. Only used when parallel_tool_calls is enabled
|
|
7
|
+
*/
|
|
8
|
+
export type ApprovalRequestMessageAllowedToolCalls = Letta.ToolCall[] | Letta.ToolCallDelta;
|
|
@@ -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
|
+
/**
|
|
6
|
+
* The tool calls that have been requested by the llm to run, which are pending approval
|
|
7
|
+
*/
|
|
8
|
+
export type ApprovalRequestMessageRequestedToolCalls = Letta.ToolCall[] | Letta.ToolCallDelta;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export interface ChatCompletion {
|
|
6
|
+
id: string;
|
|
7
|
+
choices: Letta.Choice[];
|
|
8
|
+
created: number;
|
|
9
|
+
model: string;
|
|
10
|
+
object: "chat.completion";
|
|
11
|
+
serviceTier?: Letta.ChatCompletionServiceTier;
|
|
12
|
+
systemFingerprint?: string;
|
|
13
|
+
usage?: Letta.CompletionUsage;
|
|
14
|
+
/** Accepts any additional properties */
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export interface ChatCompletionAssistantMessageParam {
|
|
6
|
+
role: "assistant";
|
|
7
|
+
audio?: Letta.Audio;
|
|
8
|
+
content?: Letta.ChatCompletionAssistantMessageParamContent;
|
|
9
|
+
functionCall?: Letta.FunctionCallInput;
|
|
10
|
+
name?: string;
|
|
11
|
+
refusal?: string;
|
|
12
|
+
toolCalls?: Letta.ChatCompletionAssistantMessageParamToolCallsItem[];
|
|
13
|
+
}
|
|
@@ -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;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface ChatCompletionAudio {
|
|
5
|
+
id: string;
|
|
6
|
+
data: string;
|
|
7
|
+
expiresAt: number;
|
|
8
|
+
transcript: string;
|
|
9
|
+
/** Accepts any additional properties */
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
@@ -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 ChatCompletionDeveloperMessageParam {
|
|
6
|
+
content: Letta.ChatCompletionDeveloperMessageParamContent;
|
|
7
|
+
role: "developer";
|
|
8
|
+
name?: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export interface ChatCompletionMessage {
|
|
6
|
+
content?: string;
|
|
7
|
+
refusal?: string;
|
|
8
|
+
role: "assistant";
|
|
9
|
+
annotations?: Letta.Annotation[];
|
|
10
|
+
audio?: Letta.ChatCompletionAudio;
|
|
11
|
+
functionCall?: Letta.FunctionCallOutput;
|
|
12
|
+
toolCalls?: Letta.ChatCompletionMessageToolCallsItem[];
|
|
13
|
+
/** Accepts any additional properties */
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export interface ChatCompletionMessageCustomToolCall {
|
|
6
|
+
id: string;
|
|
7
|
+
custom: Letta.CustomOutput;
|
|
8
|
+
type: "custom";
|
|
9
|
+
/** Accepts any additional properties */
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export interface ChatCompletionMessageFunctionToolCallInput {
|
|
6
|
+
id: string;
|
|
7
|
+
function: Letta.OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction;
|
|
8
|
+
type: "function";
|
|
9
|
+
/** Accepts any additional properties */
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
@@ -2,9 +2,9 @@
|
|
|
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 ChatCompletionMessageFunctionToolCallOutput {
|
|
6
6
|
id: string;
|
|
7
|
-
function: Letta.
|
|
7
|
+
function: Letta.FunctionOutput;
|
|
8
8
|
type: "function";
|
|
9
9
|
/** Accepts any additional properties */
|
|
10
10
|
[key: string]: any;
|
|
@@ -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,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type ChatCompletionServiceTier = "auto" | "default" | "flex" | "scale" | "priority";
|
|
5
|
+
export declare const ChatCompletionServiceTier: {
|
|
6
|
+
readonly Auto: "auto";
|
|
7
|
+
readonly Default: "default";
|
|
8
|
+
readonly Flex: "flex";
|
|
9
|
+
readonly Scale: "scale";
|
|
10
|
+
readonly Priority: "priority";
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
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.ChatCompletionServiceTier = void 0;
|
|
7
|
+
exports.ChatCompletionServiceTier = {
|
|
8
|
+
Auto: "auto",
|
|
9
|
+
Default: "default",
|
|
10
|
+
Flex: "flex",
|
|
11
|
+
Scale: "scale",
|
|
12
|
+
Priority: "priority",
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export interface ChatCompletionTokenLogprob {
|
|
6
|
+
token: string;
|
|
7
|
+
bytes?: number[];
|
|
8
|
+
logprob: number;
|
|
9
|
+
topLogprobs: Letta.TopLogprob[];
|
|
10
|
+
/** Accepts any additional properties */
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}
|