@letta-ai/letta-client 1.0.0-alpha.2 → 1.0.0-alpha.3
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 +0 -3
- package/api/resources/agents/client/Client.js +11 -16
- 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 +4 -4
- 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/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.js +10 -10
- package/api/resources/agents/resources/passages/client/Client.js +5 -5
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +4 -4
- package/api/resources/archives/client/Client.js +3 -3
- 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.js +6 -6
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- 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.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/agents/client/Client.js +1 -1
- package/api/resources/identities/resources/blocks/client/Client.js +1 -1
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- package/api/resources/jobs/client/Client.js +5 -5
- 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.js +7 -7
- 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.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 +2 -2
- package/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/api/resources/steps/resources/messages/client/Client.js +1 -1
- package/api/resources/steps/resources/metrics/client/Client.js +1 -1
- package/api/resources/steps/resources/trace/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.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 +1 -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/index.d.ts +2 -0
- package/api/resources/templates/types/index.js +2 -0
- package/api/resources/tools/client/Client.js +17 -17
- 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/AnnotationUrlCitation.d.ts +11 -0
- package/{dist/api/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts → api/types/Audio.d.ts} +2 -2
- 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/LettaSchemasAgentFileMessageSchema.d.ts +3 -1
- package/api/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.d.ts +5 -0
- package/api/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.js +5 -0
- package/api/types/LlmConfig.d.ts +2 -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/TopLogprob.d.ts +10 -0
- package/api/types/TopLogprob.js +5 -0
- package/api/types/index.d.ts +53 -2
- package/api/types/index.js +53 -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 +0 -3
- package/dist/api/resources/agents/client/Client.js +11 -16
- 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 +4 -4
- 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/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.js +10 -10
- package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
- package/dist/api/resources/archives/client/Client.js +3 -3
- 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.js +6 -6
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- 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.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/agents/client/Client.js +1 -1
- package/dist/api/resources/identities/resources/blocks/client/Client.js +1 -1
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +4 -1
- package/dist/api/resources/jobs/client/Client.js +5 -5
- 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.js +7 -7
- 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.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 +2 -2
- package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/dist/api/resources/steps/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
- package/dist/api/resources/steps/resources/trace/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.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 +1 -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/index.d.ts +2 -0
- package/dist/api/resources/templates/types/index.js +2 -0
- package/dist/api/resources/tools/client/Client.js +17 -17
- 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/{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/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/LlmConfig.d.ts +2 -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/TopLogprob.d.ts +10 -0
- package/dist/api/types/TopLogprob.js +5 -0
- package/dist/api/types/index.d.ts +53 -2
- package/dist/api/types/index.js +53 -2
- 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 +2 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.js +2 -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/index.d.ts +2 -0
- package/dist/serialization/resources/templates/types/index.js +2 -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/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/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/LlmConfig.d.ts +1 -0
- package/dist/serialization/types/LlmConfig.js +1 -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/TopLogprob.d.ts +15 -0
- package/dist/serialization/types/TopLogprob.js +47 -0
- package/dist/serialization/types/index.d.ts +53 -2
- package/dist/serialization/types/index.js +53 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +101 -209
- 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 +2 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.js +2 -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/index.d.ts +2 -0
- package/serialization/resources/templates/types/index.js +2 -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/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/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/LlmConfig.d.ts +1 -0
- package/serialization/types/LlmConfig.js +1 -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/TopLogprob.d.ts +15 -0
- package/serialization/types/TopLogprob.js +47 -0
- package/serialization/types/index.d.ts +53 -2
- package/serialization/types/index.js +53 -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/types/Annotation.js} +0 -0
- /package/{dist/api/types/ChatCompletionMessageFunctionToolCall.js → api/types/AnnotationUrlCitation.js} +0 -0
- /package/{dist/api/types/Function.js → api/types/Audio.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
package/api/types/index.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ export * from "./AgentStateToolRulesItem";
|
|
|
10
10
|
export * from "./AgentStateResponseFormat";
|
|
11
11
|
export * from "./AgentState";
|
|
12
12
|
export * from "./AgentType";
|
|
13
|
+
export * from "./Annotation";
|
|
14
|
+
export * from "./AnnotationUrlCitation";
|
|
13
15
|
export * from "./ApprovalCreateApprovalsItem";
|
|
14
16
|
export * from "./ApprovalCreate";
|
|
15
17
|
export * from "./ApprovalRequestMessageToolCall";
|
|
@@ -22,6 +24,7 @@ export * from "./ArchivalMemorySearchResult";
|
|
|
22
24
|
export * from "./Archive";
|
|
23
25
|
export * from "./AssistantMessageContent";
|
|
24
26
|
export * from "./AssistantMessage";
|
|
27
|
+
export * from "./Audio";
|
|
25
28
|
export * from "./AuthRequest";
|
|
26
29
|
export * from "./AuthResponse";
|
|
27
30
|
export * from "./Base64Image";
|
|
@@ -31,16 +34,51 @@ export * from "./Block";
|
|
|
31
34
|
export * from "./BlockSchema";
|
|
32
35
|
export * from "./BlockUpdate";
|
|
33
36
|
export * from "./BodyExportAgent";
|
|
34
|
-
export * from "./
|
|
37
|
+
export * from "./ChatCompletionServiceTier";
|
|
38
|
+
export * from "./ChatCompletion";
|
|
39
|
+
export * from "./ChatCompletionAssistantMessageParamContentItem";
|
|
40
|
+
export * from "./ChatCompletionAssistantMessageParamContent";
|
|
41
|
+
export * from "./ChatCompletionAssistantMessageParamToolCallsItem";
|
|
42
|
+
export * from "./ChatCompletionAssistantMessageParam";
|
|
43
|
+
export * from "./ChatCompletionAudio";
|
|
44
|
+
export * from "./ChatCompletionContentPartImageParam";
|
|
45
|
+
export * from "./ChatCompletionContentPartInputAudioParam";
|
|
46
|
+
export * from "./ChatCompletionContentPartRefusalParam";
|
|
47
|
+
export * from "./ChatCompletionContentPartTextParam";
|
|
48
|
+
export * from "./ChatCompletionDeveloperMessageParamContent";
|
|
49
|
+
export * from "./ChatCompletionDeveloperMessageParam";
|
|
50
|
+
export * from "./ChatCompletionFunctionMessageParam";
|
|
51
|
+
export * from "./ChatCompletionMessageToolCallsItem";
|
|
52
|
+
export * from "./ChatCompletionMessage";
|
|
53
|
+
export * from "./ChatCompletionMessageCustomToolCall";
|
|
54
|
+
export * from "./ChatCompletionMessageCustomToolCallParam";
|
|
55
|
+
export * from "./ChatCompletionMessageFunctionToolCallInput";
|
|
56
|
+
export * from "./ChatCompletionMessageFunctionToolCallOutput";
|
|
57
|
+
export * from "./ChatCompletionMessageFunctionToolCallParam";
|
|
58
|
+
export * from "./ChatCompletionSystemMessageParamContent";
|
|
59
|
+
export * from "./ChatCompletionSystemMessageParam";
|
|
60
|
+
export * from "./ChatCompletionTokenLogprob";
|
|
61
|
+
export * from "./ChatCompletionToolMessageParamContent";
|
|
62
|
+
export * from "./ChatCompletionToolMessageParam";
|
|
63
|
+
export * from "./ChatCompletionUserMessageParamContentItem";
|
|
64
|
+
export * from "./ChatCompletionUserMessageParamContent";
|
|
65
|
+
export * from "./ChatCompletionUserMessageParam";
|
|
35
66
|
export * from "./ChildToolRule";
|
|
36
67
|
export * from "./ChildToolRuleSchema";
|
|
68
|
+
export * from "./ChoiceFinishReason";
|
|
69
|
+
export * from "./Choice";
|
|
70
|
+
export * from "./ChoiceLogprobs";
|
|
37
71
|
export * from "./CodeInput";
|
|
72
|
+
export * from "./CompletionTokensDetails";
|
|
73
|
+
export * from "./CompletionUsage";
|
|
38
74
|
export * from "./ConditionalToolRule";
|
|
39
75
|
export * from "./ConditionalToolRuleSchema";
|
|
40
76
|
export * from "./ContextWindowOverview";
|
|
41
77
|
export * from "./ContinueToolRule";
|
|
42
78
|
export * from "./CoreMemoryBlockSchema";
|
|
43
79
|
export * from "./CreateBlock";
|
|
80
|
+
export * from "./CustomInput";
|
|
81
|
+
export * from "./CustomOutput";
|
|
44
82
|
export * from "./DeleteDeploymentResponse";
|
|
45
83
|
export * from "./DeploymentEntity";
|
|
46
84
|
export * from "./DuplicateFileHandling";
|
|
@@ -50,14 +88,18 @@ export * from "./E2BSandboxConfig";
|
|
|
50
88
|
export * from "./EmbeddingConfigEmbeddingEndpointType";
|
|
51
89
|
export * from "./EmbeddingConfig";
|
|
52
90
|
export * from "./FeedbackType";
|
|
91
|
+
export * from "./File_";
|
|
53
92
|
export * from "./FileAgentSchema";
|
|
54
93
|
export * from "./FileBlock";
|
|
94
|
+
export * from "./FileFile";
|
|
55
95
|
export * from "./FileMetadata";
|
|
56
96
|
export * from "./FileProcessingStatus";
|
|
57
97
|
export * from "./FileSchema";
|
|
58
98
|
export * from "./FileStats";
|
|
59
99
|
export * from "./Folder";
|
|
60
|
-
export * from "./
|
|
100
|
+
export * from "./FunctionOutput";
|
|
101
|
+
export * from "./FunctionCallInput";
|
|
102
|
+
export * from "./FunctionCallOutput";
|
|
61
103
|
export * from "./FunctionDefinition";
|
|
62
104
|
export * from "./FunctionTool";
|
|
63
105
|
export * from "./GenerateToolInput";
|
|
@@ -76,8 +118,12 @@ export * from "./IdentityPropertyType";
|
|
|
76
118
|
export * from "./IdentityType";
|
|
77
119
|
export * from "./ImageContentSource";
|
|
78
120
|
export * from "./ImageContent";
|
|
121
|
+
export * from "./ImageUrlDetail";
|
|
122
|
+
export * from "./ImageUrl";
|
|
79
123
|
export * from "./ImportedAgentsResponse";
|
|
80
124
|
export * from "./InitToolRule";
|
|
125
|
+
export * from "./InputAudioFormat";
|
|
126
|
+
export * from "./InputAudio";
|
|
81
127
|
export * from "./InternalTemplateAgentCreateToolRulesItem";
|
|
82
128
|
export * from "./InternalTemplateAgentCreateResponseFormat";
|
|
83
129
|
export * from "./InternalTemplateAgentCreate";
|
|
@@ -141,6 +187,7 @@ export * from "./ParametersSchema";
|
|
|
141
187
|
export * from "./ParentToolRule";
|
|
142
188
|
export * from "./Passage";
|
|
143
189
|
export * from "./PipRequirement";
|
|
190
|
+
export * from "./PromptTokensDetails";
|
|
144
191
|
export * from "./Provider";
|
|
145
192
|
export * from "./ProviderCategory";
|
|
146
193
|
export * from "./ProviderTrace";
|
|
@@ -205,6 +252,7 @@ export * from "./ToolReturnContent";
|
|
|
205
252
|
export * from "./ToolReturnMessageStatus";
|
|
206
253
|
export * from "./ToolReturnMessage";
|
|
207
254
|
export * from "./ToolType";
|
|
255
|
+
export * from "./TopLogprob";
|
|
208
256
|
export * from "./UpdateAssistantMessageContent";
|
|
209
257
|
export * from "./UpdateAssistantMessage";
|
|
210
258
|
export * from "./UpdateReasoningMessage";
|
|
@@ -232,6 +280,7 @@ export * from "./LettaSchemasAgentFileAgentSchemaToolRulesItem";
|
|
|
232
280
|
export * from "./LettaSchemasAgentFileAgentSchemaResponseFormat";
|
|
233
281
|
export * from "./LettaSchemasAgentFileAgentSchema";
|
|
234
282
|
export * from "./LettaSchemasAgentFileMessageSchemaContent";
|
|
283
|
+
export * from "./LettaSchemasAgentFileMessageSchemaApprovalsItem";
|
|
235
284
|
export * from "./LettaSchemasAgentFileMessageSchema";
|
|
236
285
|
export * from "./LettaSchemasAgentFileToolSchema";
|
|
237
286
|
export * from "./LettaSchemasLettaMessageToolReturnStatus";
|
|
@@ -242,6 +291,8 @@ export * from "./LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesIte
|
|
|
242
291
|
export * from "./LettaSerializeSchemasPydanticAgentSchemaAgentSchema";
|
|
243
292
|
export * from "./LettaSerializeSchemasPydanticAgentSchemaMessageSchema";
|
|
244
293
|
export * from "./LettaSerializeSchemasPydanticAgentSchemaToolSchema";
|
|
294
|
+
export * from "./OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction";
|
|
295
|
+
export * from "./OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction";
|
|
245
296
|
export * from "./LettaMessageUnion";
|
|
246
297
|
export * from "./LettaMessageContentUnion";
|
|
247
298
|
export * from "./ComponentsSchemasTextContent";
|
package/api/types/index.js
CHANGED
|
@@ -26,6 +26,8 @@ __exportStar(require("./AgentStateToolRulesItem"), exports);
|
|
|
26
26
|
__exportStar(require("./AgentStateResponseFormat"), exports);
|
|
27
27
|
__exportStar(require("./AgentState"), exports);
|
|
28
28
|
__exportStar(require("./AgentType"), exports);
|
|
29
|
+
__exportStar(require("./Annotation"), exports);
|
|
30
|
+
__exportStar(require("./AnnotationUrlCitation"), exports);
|
|
29
31
|
__exportStar(require("./ApprovalCreateApprovalsItem"), exports);
|
|
30
32
|
__exportStar(require("./ApprovalCreate"), exports);
|
|
31
33
|
__exportStar(require("./ApprovalRequestMessageToolCall"), exports);
|
|
@@ -38,6 +40,7 @@ __exportStar(require("./ArchivalMemorySearchResult"), exports);
|
|
|
38
40
|
__exportStar(require("./Archive"), exports);
|
|
39
41
|
__exportStar(require("./AssistantMessageContent"), exports);
|
|
40
42
|
__exportStar(require("./AssistantMessage"), exports);
|
|
43
|
+
__exportStar(require("./Audio"), exports);
|
|
41
44
|
__exportStar(require("./AuthRequest"), exports);
|
|
42
45
|
__exportStar(require("./AuthResponse"), exports);
|
|
43
46
|
__exportStar(require("./Base64Image"), exports);
|
|
@@ -47,16 +50,51 @@ __exportStar(require("./Block"), exports);
|
|
|
47
50
|
__exportStar(require("./BlockSchema"), exports);
|
|
48
51
|
__exportStar(require("./BlockUpdate"), exports);
|
|
49
52
|
__exportStar(require("./BodyExportAgent"), exports);
|
|
50
|
-
__exportStar(require("./
|
|
53
|
+
__exportStar(require("./ChatCompletionServiceTier"), exports);
|
|
54
|
+
__exportStar(require("./ChatCompletion"), exports);
|
|
55
|
+
__exportStar(require("./ChatCompletionAssistantMessageParamContentItem"), exports);
|
|
56
|
+
__exportStar(require("./ChatCompletionAssistantMessageParamContent"), exports);
|
|
57
|
+
__exportStar(require("./ChatCompletionAssistantMessageParamToolCallsItem"), exports);
|
|
58
|
+
__exportStar(require("./ChatCompletionAssistantMessageParam"), exports);
|
|
59
|
+
__exportStar(require("./ChatCompletionAudio"), exports);
|
|
60
|
+
__exportStar(require("./ChatCompletionContentPartImageParam"), exports);
|
|
61
|
+
__exportStar(require("./ChatCompletionContentPartInputAudioParam"), exports);
|
|
62
|
+
__exportStar(require("./ChatCompletionContentPartRefusalParam"), exports);
|
|
63
|
+
__exportStar(require("./ChatCompletionContentPartTextParam"), exports);
|
|
64
|
+
__exportStar(require("./ChatCompletionDeveloperMessageParamContent"), exports);
|
|
65
|
+
__exportStar(require("./ChatCompletionDeveloperMessageParam"), exports);
|
|
66
|
+
__exportStar(require("./ChatCompletionFunctionMessageParam"), exports);
|
|
67
|
+
__exportStar(require("./ChatCompletionMessageToolCallsItem"), exports);
|
|
68
|
+
__exportStar(require("./ChatCompletionMessage"), exports);
|
|
69
|
+
__exportStar(require("./ChatCompletionMessageCustomToolCall"), exports);
|
|
70
|
+
__exportStar(require("./ChatCompletionMessageCustomToolCallParam"), exports);
|
|
71
|
+
__exportStar(require("./ChatCompletionMessageFunctionToolCallInput"), exports);
|
|
72
|
+
__exportStar(require("./ChatCompletionMessageFunctionToolCallOutput"), exports);
|
|
73
|
+
__exportStar(require("./ChatCompletionMessageFunctionToolCallParam"), exports);
|
|
74
|
+
__exportStar(require("./ChatCompletionSystemMessageParamContent"), exports);
|
|
75
|
+
__exportStar(require("./ChatCompletionSystemMessageParam"), exports);
|
|
76
|
+
__exportStar(require("./ChatCompletionTokenLogprob"), exports);
|
|
77
|
+
__exportStar(require("./ChatCompletionToolMessageParamContent"), exports);
|
|
78
|
+
__exportStar(require("./ChatCompletionToolMessageParam"), exports);
|
|
79
|
+
__exportStar(require("./ChatCompletionUserMessageParamContentItem"), exports);
|
|
80
|
+
__exportStar(require("./ChatCompletionUserMessageParamContent"), exports);
|
|
81
|
+
__exportStar(require("./ChatCompletionUserMessageParam"), exports);
|
|
51
82
|
__exportStar(require("./ChildToolRule"), exports);
|
|
52
83
|
__exportStar(require("./ChildToolRuleSchema"), exports);
|
|
84
|
+
__exportStar(require("./ChoiceFinishReason"), exports);
|
|
85
|
+
__exportStar(require("./Choice"), exports);
|
|
86
|
+
__exportStar(require("./ChoiceLogprobs"), exports);
|
|
53
87
|
__exportStar(require("./CodeInput"), exports);
|
|
88
|
+
__exportStar(require("./CompletionTokensDetails"), exports);
|
|
89
|
+
__exportStar(require("./CompletionUsage"), exports);
|
|
54
90
|
__exportStar(require("./ConditionalToolRule"), exports);
|
|
55
91
|
__exportStar(require("./ConditionalToolRuleSchema"), exports);
|
|
56
92
|
__exportStar(require("./ContextWindowOverview"), exports);
|
|
57
93
|
__exportStar(require("./ContinueToolRule"), exports);
|
|
58
94
|
__exportStar(require("./CoreMemoryBlockSchema"), exports);
|
|
59
95
|
__exportStar(require("./CreateBlock"), exports);
|
|
96
|
+
__exportStar(require("./CustomInput"), exports);
|
|
97
|
+
__exportStar(require("./CustomOutput"), exports);
|
|
60
98
|
__exportStar(require("./DeleteDeploymentResponse"), exports);
|
|
61
99
|
__exportStar(require("./DeploymentEntity"), exports);
|
|
62
100
|
__exportStar(require("./DuplicateFileHandling"), exports);
|
|
@@ -66,14 +104,18 @@ __exportStar(require("./E2BSandboxConfig"), exports);
|
|
|
66
104
|
__exportStar(require("./EmbeddingConfigEmbeddingEndpointType"), exports);
|
|
67
105
|
__exportStar(require("./EmbeddingConfig"), exports);
|
|
68
106
|
__exportStar(require("./FeedbackType"), exports);
|
|
107
|
+
__exportStar(require("./File_"), exports);
|
|
69
108
|
__exportStar(require("./FileAgentSchema"), exports);
|
|
70
109
|
__exportStar(require("./FileBlock"), exports);
|
|
110
|
+
__exportStar(require("./FileFile"), exports);
|
|
71
111
|
__exportStar(require("./FileMetadata"), exports);
|
|
72
112
|
__exportStar(require("./FileProcessingStatus"), exports);
|
|
73
113
|
__exportStar(require("./FileSchema"), exports);
|
|
74
114
|
__exportStar(require("./FileStats"), exports);
|
|
75
115
|
__exportStar(require("./Folder"), exports);
|
|
76
|
-
__exportStar(require("./
|
|
116
|
+
__exportStar(require("./FunctionOutput"), exports);
|
|
117
|
+
__exportStar(require("./FunctionCallInput"), exports);
|
|
118
|
+
__exportStar(require("./FunctionCallOutput"), exports);
|
|
77
119
|
__exportStar(require("./FunctionDefinition"), exports);
|
|
78
120
|
__exportStar(require("./FunctionTool"), exports);
|
|
79
121
|
__exportStar(require("./GenerateToolInput"), exports);
|
|
@@ -92,8 +134,12 @@ __exportStar(require("./IdentityPropertyType"), exports);
|
|
|
92
134
|
__exportStar(require("./IdentityType"), exports);
|
|
93
135
|
__exportStar(require("./ImageContentSource"), exports);
|
|
94
136
|
__exportStar(require("./ImageContent"), exports);
|
|
137
|
+
__exportStar(require("./ImageUrlDetail"), exports);
|
|
138
|
+
__exportStar(require("./ImageUrl"), exports);
|
|
95
139
|
__exportStar(require("./ImportedAgentsResponse"), exports);
|
|
96
140
|
__exportStar(require("./InitToolRule"), exports);
|
|
141
|
+
__exportStar(require("./InputAudioFormat"), exports);
|
|
142
|
+
__exportStar(require("./InputAudio"), exports);
|
|
97
143
|
__exportStar(require("./InternalTemplateAgentCreateToolRulesItem"), exports);
|
|
98
144
|
__exportStar(require("./InternalTemplateAgentCreateResponseFormat"), exports);
|
|
99
145
|
__exportStar(require("./InternalTemplateAgentCreate"), exports);
|
|
@@ -157,6 +203,7 @@ __exportStar(require("./ParametersSchema"), exports);
|
|
|
157
203
|
__exportStar(require("./ParentToolRule"), exports);
|
|
158
204
|
__exportStar(require("./Passage"), exports);
|
|
159
205
|
__exportStar(require("./PipRequirement"), exports);
|
|
206
|
+
__exportStar(require("./PromptTokensDetails"), exports);
|
|
160
207
|
__exportStar(require("./Provider"), exports);
|
|
161
208
|
__exportStar(require("./ProviderCategory"), exports);
|
|
162
209
|
__exportStar(require("./ProviderTrace"), exports);
|
|
@@ -221,6 +268,7 @@ __exportStar(require("./ToolReturnContent"), exports);
|
|
|
221
268
|
__exportStar(require("./ToolReturnMessageStatus"), exports);
|
|
222
269
|
__exportStar(require("./ToolReturnMessage"), exports);
|
|
223
270
|
__exportStar(require("./ToolType"), exports);
|
|
271
|
+
__exportStar(require("./TopLogprob"), exports);
|
|
224
272
|
__exportStar(require("./UpdateAssistantMessageContent"), exports);
|
|
225
273
|
__exportStar(require("./UpdateAssistantMessage"), exports);
|
|
226
274
|
__exportStar(require("./UpdateReasoningMessage"), exports);
|
|
@@ -248,6 +296,7 @@ __exportStar(require("./LettaSchemasAgentFileAgentSchemaToolRulesItem"), exports
|
|
|
248
296
|
__exportStar(require("./LettaSchemasAgentFileAgentSchemaResponseFormat"), exports);
|
|
249
297
|
__exportStar(require("./LettaSchemasAgentFileAgentSchema"), exports);
|
|
250
298
|
__exportStar(require("./LettaSchemasAgentFileMessageSchemaContent"), exports);
|
|
299
|
+
__exportStar(require("./LettaSchemasAgentFileMessageSchemaApprovalsItem"), exports);
|
|
251
300
|
__exportStar(require("./LettaSchemasAgentFileMessageSchema"), exports);
|
|
252
301
|
__exportStar(require("./LettaSchemasAgentFileToolSchema"), exports);
|
|
253
302
|
__exportStar(require("./LettaSchemasLettaMessageToolReturnStatus"), exports);
|
|
@@ -258,6 +307,8 @@ __exportStar(require("./LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolR
|
|
|
258
307
|
__exportStar(require("./LettaSerializeSchemasPydanticAgentSchemaAgentSchema"), exports);
|
|
259
308
|
__exportStar(require("./LettaSerializeSchemasPydanticAgentSchemaMessageSchema"), exports);
|
|
260
309
|
__exportStar(require("./LettaSerializeSchemasPydanticAgentSchemaToolSchema"), exports);
|
|
310
|
+
__exportStar(require("./OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction"), exports);
|
|
311
|
+
__exportStar(require("./OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction"), exports);
|
|
261
312
|
__exportStar(require("./LettaMessageUnion"), exports);
|
|
262
313
|
__exportStar(require("./LettaMessageContentUnion"), exports);
|
|
263
314
|
__exportStar(require("./ComponentsSchemasTextContent"), exports);
|
package/dist/Client.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { Tools } from "./api/resources/tools/client/Client";
|
|
|
8
8
|
import { Sources } from "./api/resources/sources/client/Client";
|
|
9
9
|
import { Folders } from "./api/resources/folders/client/Client";
|
|
10
10
|
import { Agents } from "./api/resources/agents/client/Client";
|
|
11
|
+
import { Chat } from "./api/resources/chat/client/Client";
|
|
11
12
|
import { Groups } from "./api/resources/groups/client/Client";
|
|
12
13
|
import { Identities } from "./api/resources/identities/client/Client";
|
|
13
14
|
import { Models } from "./api/resources/models/client/Client";
|
|
@@ -54,6 +55,7 @@ export declare class LettaClient {
|
|
|
54
55
|
protected _sources: Sources | undefined;
|
|
55
56
|
protected _folders: Folders | undefined;
|
|
56
57
|
protected _agents: Agents | undefined;
|
|
58
|
+
protected _chat: Chat | undefined;
|
|
57
59
|
protected _groups: Groups | undefined;
|
|
58
60
|
protected _identities: Identities | undefined;
|
|
59
61
|
protected _models: Models | undefined;
|
|
@@ -76,6 +78,7 @@ export declare class LettaClient {
|
|
|
76
78
|
get sources(): Sources;
|
|
77
79
|
get folders(): Folders;
|
|
78
80
|
get agents(): Agents;
|
|
81
|
+
get chat(): Chat;
|
|
79
82
|
get groups(): Groups;
|
|
80
83
|
get identities(): Identities;
|
|
81
84
|
get models(): Models;
|
package/dist/Client.js
CHANGED
|
@@ -9,22 +9,23 @@ const Client_2 = require("./api/resources/tools/client/Client");
|
|
|
9
9
|
const Client_3 = require("./api/resources/sources/client/Client");
|
|
10
10
|
const Client_4 = require("./api/resources/folders/client/Client");
|
|
11
11
|
const Client_5 = require("./api/resources/agents/client/Client");
|
|
12
|
-
const Client_6 = require("./api/resources/
|
|
13
|
-
const Client_7 = require("./api/resources/
|
|
14
|
-
const Client_8 = require("./api/resources/
|
|
15
|
-
const Client_9 = require("./api/resources/
|
|
16
|
-
const Client_10 = require("./api/resources/
|
|
17
|
-
const Client_11 = require("./api/resources/
|
|
18
|
-
const Client_12 = require("./api/resources/
|
|
19
|
-
const Client_13 = require("./api/resources/
|
|
20
|
-
const Client_14 = require("./api/resources/
|
|
21
|
-
const Client_15 = require("./api/resources/
|
|
22
|
-
const Client_16 = require("./api/resources/
|
|
23
|
-
const Client_17 = require("./api/resources/
|
|
24
|
-
const Client_18 = require("./api/resources/
|
|
25
|
-
const Client_19 = require("./api/resources/
|
|
26
|
-
const Client_20 = require("./api/resources/
|
|
27
|
-
const Client_21 = require("./api/resources/
|
|
12
|
+
const Client_6 = require("./api/resources/chat/client/Client");
|
|
13
|
+
const Client_7 = require("./api/resources/groups/client/Client");
|
|
14
|
+
const Client_8 = require("./api/resources/identities/client/Client");
|
|
15
|
+
const Client_9 = require("./api/resources/models/client/Client");
|
|
16
|
+
const Client_10 = require("./api/resources/blocks/client/Client");
|
|
17
|
+
const Client_11 = require("./api/resources/jobs/client/Client");
|
|
18
|
+
const Client_12 = require("./api/resources/health/client/Client");
|
|
19
|
+
const Client_13 = require("./api/resources/providers/client/Client");
|
|
20
|
+
const Client_14 = require("./api/resources/runs/client/Client");
|
|
21
|
+
const Client_15 = require("./api/resources/steps/client/Client");
|
|
22
|
+
const Client_16 = require("./api/resources/tags/client/Client");
|
|
23
|
+
const Client_17 = require("./api/resources/telemetry/client/Client");
|
|
24
|
+
const Client_18 = require("./api/resources/batches/client/Client");
|
|
25
|
+
const Client_19 = require("./api/resources/voice/client/Client");
|
|
26
|
+
const Client_20 = require("./api/resources/templates/client/Client");
|
|
27
|
+
const Client_21 = require("./api/resources/clientSideAccessTokens/client/Client");
|
|
28
|
+
const Client_22 = require("./api/resources/projects/client/Client");
|
|
28
29
|
class LettaClient {
|
|
29
30
|
constructor(_options = {}) {
|
|
30
31
|
this._options = _options;
|
|
@@ -49,69 +50,73 @@ class LettaClient {
|
|
|
49
50
|
var _a;
|
|
50
51
|
return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Client_5.Agents(this._options)));
|
|
51
52
|
}
|
|
53
|
+
get chat() {
|
|
54
|
+
var _a;
|
|
55
|
+
return ((_a = this._chat) !== null && _a !== void 0 ? _a : (this._chat = new Client_6.Chat(this._options)));
|
|
56
|
+
}
|
|
52
57
|
get groups() {
|
|
53
58
|
var _a;
|
|
54
|
-
return ((_a = this._groups) !== null && _a !== void 0 ? _a : (this._groups = new
|
|
59
|
+
return ((_a = this._groups) !== null && _a !== void 0 ? _a : (this._groups = new Client_7.Groups(this._options)));
|
|
55
60
|
}
|
|
56
61
|
get identities() {
|
|
57
62
|
var _a;
|
|
58
|
-
return ((_a = this._identities) !== null && _a !== void 0 ? _a : (this._identities = new
|
|
63
|
+
return ((_a = this._identities) !== null && _a !== void 0 ? _a : (this._identities = new Client_8.Identities(this._options)));
|
|
59
64
|
}
|
|
60
65
|
get models() {
|
|
61
66
|
var _a;
|
|
62
|
-
return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new
|
|
67
|
+
return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new Client_9.Models(this._options)));
|
|
63
68
|
}
|
|
64
69
|
get blocks() {
|
|
65
70
|
var _a;
|
|
66
|
-
return ((_a = this._blocks) !== null && _a !== void 0 ? _a : (this._blocks = new
|
|
71
|
+
return ((_a = this._blocks) !== null && _a !== void 0 ? _a : (this._blocks = new Client_10.Blocks(this._options)));
|
|
67
72
|
}
|
|
68
73
|
get jobs() {
|
|
69
74
|
var _a;
|
|
70
|
-
return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new
|
|
75
|
+
return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_11.Jobs(this._options)));
|
|
71
76
|
}
|
|
72
77
|
get health() {
|
|
73
78
|
var _a;
|
|
74
|
-
return ((_a = this._health) !== null && _a !== void 0 ? _a : (this._health = new
|
|
79
|
+
return ((_a = this._health) !== null && _a !== void 0 ? _a : (this._health = new Client_12.Health(this._options)));
|
|
75
80
|
}
|
|
76
81
|
get providers() {
|
|
77
82
|
var _a;
|
|
78
|
-
return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new
|
|
83
|
+
return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new Client_13.Providers(this._options)));
|
|
79
84
|
}
|
|
80
85
|
get runs() {
|
|
81
86
|
var _a;
|
|
82
|
-
return ((_a = this._runs) !== null && _a !== void 0 ? _a : (this._runs = new
|
|
87
|
+
return ((_a = this._runs) !== null && _a !== void 0 ? _a : (this._runs = new Client_14.Runs(this._options)));
|
|
83
88
|
}
|
|
84
89
|
get steps() {
|
|
85
90
|
var _a;
|
|
86
|
-
return ((_a = this._steps) !== null && _a !== void 0 ? _a : (this._steps = new
|
|
91
|
+
return ((_a = this._steps) !== null && _a !== void 0 ? _a : (this._steps = new Client_15.Steps(this._options)));
|
|
87
92
|
}
|
|
88
93
|
get tags() {
|
|
89
94
|
var _a;
|
|
90
|
-
return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new
|
|
95
|
+
return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new Client_16.Tags(this._options)));
|
|
91
96
|
}
|
|
92
97
|
get telemetry() {
|
|
93
98
|
var _a;
|
|
94
|
-
return ((_a = this._telemetry) !== null && _a !== void 0 ? _a : (this._telemetry = new
|
|
99
|
+
return ((_a = this._telemetry) !== null && _a !== void 0 ? _a : (this._telemetry = new Client_17.Telemetry(this._options)));
|
|
95
100
|
}
|
|
96
101
|
get batches() {
|
|
97
102
|
var _a;
|
|
98
|
-
return ((_a = this._batches) !== null && _a !== void 0 ? _a : (this._batches = new
|
|
103
|
+
return ((_a = this._batches) !== null && _a !== void 0 ? _a : (this._batches = new Client_18.Batches(this._options)));
|
|
99
104
|
}
|
|
100
105
|
get voice() {
|
|
101
106
|
var _a;
|
|
102
|
-
return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new
|
|
107
|
+
return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new Client_19.Voice(this._options)));
|
|
103
108
|
}
|
|
104
109
|
get templates() {
|
|
105
110
|
var _a;
|
|
106
|
-
return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new
|
|
111
|
+
return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_20.Templates(this._options)));
|
|
107
112
|
}
|
|
108
113
|
get clientSideAccessTokens() {
|
|
109
114
|
var _a;
|
|
110
|
-
return ((_a = this._clientSideAccessTokens) !== null && _a !== void 0 ? _a : (this._clientSideAccessTokens = new
|
|
115
|
+
return ((_a = this._clientSideAccessTokens) !== null && _a !== void 0 ? _a : (this._clientSideAccessTokens = new Client_21.ClientSideAccessTokens(this._options)));
|
|
111
116
|
}
|
|
112
117
|
get projects() {
|
|
113
118
|
var _a;
|
|
114
|
-
return ((_a = this._projects) !== null && _a !== void 0 ? _a : (this._projects = new
|
|
119
|
+
return ((_a = this._projects) !== null && _a !== void 0 ? _a : (this._projects = new Client_22.Projects(this._options)));
|
|
115
120
|
}
|
|
116
121
|
}
|
|
117
122
|
exports.LettaClient = LettaClient;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors/index";
|
|
5
|
+
import * as core from "../../core";
|
|
6
|
+
export declare class GoneError extends errors.LettaError {
|
|
7
|
+
constructor(body?: unknown, rawResponse?: core.RawResponse);
|
|
8
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.GoneError = void 0;
|
|
40
|
+
const errors = __importStar(require("../../errors/index"));
|
|
41
|
+
class GoneError extends errors.LettaError {
|
|
42
|
+
constructor(body, rawResponse) {
|
|
43
|
+
super({
|
|
44
|
+
message: "GoneError",
|
|
45
|
+
statusCode: 410,
|
|
46
|
+
body: body,
|
|
47
|
+
rawResponse: rawResponse,
|
|
48
|
+
});
|
|
49
|
+
Object.setPrototypeOf(this, GoneError.prototype);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.GoneError = GoneError;
|
package/dist/api/errors/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./UnprocessableEntityError"), exports);
|
|
18
|
+
__exportStar(require("./GoneError"), exports);
|
|
18
19
|
__exportStar(require("./NotFoundError"), exports);
|
|
19
20
|
__exportStar(require("./PaymentRequiredError"), exports);
|
|
20
21
|
__exportStar(require("./BadRequestError"), exports);
|
|
@@ -16,7 +16,6 @@ import { Blocks } from "../resources/blocks/client/Client";
|
|
|
16
16
|
import { Passages } from "../resources/passages/client/Client";
|
|
17
17
|
import { Messages } from "../resources/messages/client/Client";
|
|
18
18
|
import { Groups } from "../resources/groups/client/Client";
|
|
19
|
-
import { Templates } from "../resources/templates/client/Client";
|
|
20
19
|
import { MemoryVariables } from "../resources/memoryVariables/client/Client";
|
|
21
20
|
export declare namespace Agents {
|
|
22
21
|
interface Options {
|
|
@@ -53,7 +52,6 @@ export declare class Agents {
|
|
|
53
52
|
protected _passages: Passages | undefined;
|
|
54
53
|
protected _messages: Messages | undefined;
|
|
55
54
|
protected _groups: Groups | undefined;
|
|
56
|
-
protected _templates: Templates | undefined;
|
|
57
55
|
protected _memoryVariables: MemoryVariables | undefined;
|
|
58
56
|
constructor(_options?: Agents.Options);
|
|
59
57
|
get context(): Context;
|
|
@@ -66,7 +64,6 @@ export declare class Agents {
|
|
|
66
64
|
get passages(): Passages;
|
|
67
65
|
get messages(): Messages;
|
|
68
66
|
get groups(): Groups;
|
|
69
|
-
get templates(): Templates;
|
|
70
67
|
get memoryVariables(): MemoryVariables;
|
|
71
68
|
/**
|
|
72
69
|
* Get a list of all agents.
|