@letta-ai/letta-client 1.0.0-alpha.1 → 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 +23 -6
- package/api/resources/agents/client/Client.js +34 -19
- package/api/resources/agents/client/requests/AgentsExportFileRequest.d.ts +4 -1
- package/api/resources/agents/client/requests/AgentsListRequest.d.ts +16 -1
- package/api/resources/agents/client/requests/BodyImportAgent.d.ts +3 -1
- package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
- package/api/resources/agents/resources/blocks/client/Client.d.ts +9 -2
- package/api/resources/agents/resources/blocks/client/Client.js +37 -10
- package/api/resources/agents/resources/blocks/client/index.d.ts +1 -1
- package/api/resources/agents/resources/blocks/client/index.js +15 -0
- package/api/resources/agents/resources/blocks/client/requests/BlocksListRequest.d.ts +36 -0
- package/api/resources/agents/resources/blocks/client/requests/index.d.ts +1 -0
- package/api/resources/agents/resources/blocks/index.d.ts +1 -0
- package/api/resources/agents/resources/blocks/index.js +1 -0
- package/api/resources/agents/resources/blocks/types/BlocksListRequestOrder.d.ts +11 -0
- package/api/resources/agents/resources/blocks/types/BlocksListRequestOrder.js +10 -0
- package/api/resources/agents/resources/blocks/types/index.d.ts +1 -0
- package/api/resources/agents/resources/blocks/types/index.js +17 -0
- 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.d.ts +9 -1
- package/api/resources/agents/resources/files/client/Client.js +30 -8
- package/api/resources/agents/resources/files/client/requests/FilesListRequest.d.ts +29 -4
- package/api/resources/agents/resources/files/index.d.ts +1 -0
- package/api/resources/agents/resources/files/index.js +1 -0
- package/api/resources/agents/resources/files/types/FilesListRequestOrder.d.ts +11 -0
- package/api/resources/agents/resources/files/types/FilesListRequestOrder.js +10 -0
- package/api/resources/agents/resources/files/types/index.d.ts +1 -0
- package/api/resources/agents/resources/files/types/index.js +17 -0
- package/api/resources/agents/resources/folders/client/Client.d.ts +9 -2
- package/api/resources/agents/resources/folders/client/Client.js +35 -8
- package/api/resources/agents/resources/folders/client/index.d.ts +1 -1
- package/api/resources/agents/resources/folders/client/index.js +15 -0
- package/api/resources/agents/resources/folders/client/requests/FoldersListRequest.d.ts +36 -0
- package/api/resources/agents/resources/folders/client/requests/index.d.ts +1 -0
- package/api/resources/agents/resources/folders/index.d.ts +1 -0
- package/api/resources/agents/resources/folders/index.js +1 -0
- package/api/resources/agents/resources/folders/types/FoldersListRequestOrder.d.ts +11 -0
- package/api/resources/agents/resources/folders/types/FoldersListRequestOrder.js +10 -0
- package/api/resources/agents/resources/folders/types/index.d.ts +1 -0
- package/api/resources/agents/resources/folders/types/index.js +17 -0
- package/api/resources/agents/resources/groups/client/Client.d.ts +8 -1
- package/api/resources/agents/resources/groups/client/Client.js +28 -4
- package/api/resources/agents/resources/groups/client/requests/GroupsListRequest.d.ts +29 -1
- package/api/resources/agents/resources/groups/index.d.ts +1 -0
- package/api/resources/agents/resources/groups/index.js +1 -0
- package/api/resources/agents/resources/groups/types/GroupsListRequestOrder.d.ts +11 -0
- package/api/resources/agents/resources/groups/types/GroupsListRequestOrder.js +10 -0
- package/api/resources/agents/resources/groups/types/index.d.ts +1 -0
- package/api/resources/agents/resources/groups/types/index.js +17 -0
- package/api/resources/agents/resources/index.d.ts +15 -9
- package/api/resources/agents/resources/index.js +16 -10
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.d.ts +15 -2
- package/api/resources/agents/resources/messages/client/Client.js +38 -17
- package/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +26 -6
- package/api/resources/agents/resources/messages/client/requests/MessagesResetRequest.d.ts +3 -1
- package/api/resources/agents/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
- package/api/resources/agents/resources/messages/types/MessagesListRequestOrder.js +10 -0
- package/api/resources/agents/resources/messages/types/index.d.ts +1 -0
- package/api/resources/agents/resources/messages/types/index.js +1 -0
- package/api/resources/agents/resources/passages/client/Client.d.ts +12 -2
- package/api/resources/agents/resources/passages/client/Client.js +17 -7
- package/api/resources/agents/resources/passages/client/requests/PassagesListRequest.d.ts +7 -1
- package/api/resources/agents/resources/passages/client/requests/PassagesSearchRequest.d.ts +5 -1
- package/api/resources/agents/resources/sources/client/Client.d.ts +9 -2
- package/api/resources/agents/resources/sources/client/Client.js +35 -8
- package/api/resources/agents/resources/sources/client/index.d.ts +1 -1
- package/api/resources/agents/resources/sources/client/index.js +15 -0
- package/api/resources/agents/resources/sources/client/requests/SourcesListRequest.d.ts +36 -0
- package/api/resources/agents/resources/sources/client/requests/index.d.ts +1 -0
- package/api/resources/agents/resources/sources/client/requests/index.js +2 -0
- package/api/resources/agents/resources/sources/index.d.ts +1 -0
- package/api/resources/agents/resources/sources/index.js +1 -0
- package/api/resources/agents/resources/sources/types/SourcesListRequestOrder.d.ts +11 -0
- package/api/resources/agents/resources/sources/types/SourcesListRequestOrder.js +10 -0
- package/api/resources/agents/resources/sources/types/index.d.ts +1 -0
- package/api/resources/agents/resources/sources/types/index.js +17 -0
- package/api/resources/agents/resources/tools/client/Client.d.ts +9 -2
- package/api/resources/agents/resources/tools/client/Client.js +37 -10
- package/api/resources/agents/resources/tools/client/requests/ToolsListRequest.d.ts +36 -0
- package/api/resources/agents/resources/tools/client/requests/index.d.ts +1 -0
- package/api/resources/agents/resources/tools/index.d.ts +1 -0
- package/api/resources/agents/resources/tools/index.js +1 -0
- package/api/resources/agents/resources/tools/types/ToolsListRequestOrder.d.ts +11 -0
- package/api/resources/agents/resources/tools/types/ToolsListRequestOrder.js +10 -0
- package/api/resources/agents/resources/tools/types/index.d.ts +1 -0
- package/api/resources/agents/resources/tools/types/index.js +17 -0
- package/api/resources/archives/client/Client.d.ts +8 -1
- package/api/resources/archives/client/Client.js +11 -4
- package/api/resources/archives/client/requests/ListArchivesRequest.d.ts +8 -1
- package/api/resources/batches/client/Client.d.ts +7 -1
- package/api/resources/batches/client/Client.js +11 -5
- package/api/resources/batches/client/requests/BatchesListRequest.d.ts +7 -1
- package/api/resources/batches/resources/messages/client/Client.d.ts +8 -1
- package/api/resources/batches/resources/messages/client/Client.js +9 -2
- package/api/resources/batches/resources/messages/client/requests/MessagesListRequest.d.ts +8 -1
- package/api/resources/blocks/client/Client.d.ts +17 -1
- package/api/resources/blocks/client/Client.js +23 -7
- package/api/resources/blocks/client/requests/BlocksListRequest.d.ts +17 -1
- package/api/resources/blocks/resources/agents/client/Client.d.ts +7 -1
- package/api/resources/blocks/resources/agents/client/Client.js +8 -2
- package/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.d.ts +7 -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/client/requests/index.js +2 -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.d.ts +5 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +8 -4
- package/api/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensListClientSideAccessTokensRequest.d.ts +5 -1
- package/api/resources/folders/client/Client.d.ts +11 -2
- package/api/resources/folders/client/Client.js +19 -10
- package/api/resources/folders/client/requests/FoldersListRequest.d.ts +8 -1
- package/api/resources/folders/client/requests/RetrieveMetadataRequest.d.ts +3 -1
- package/api/resources/folders/resources/agents/client/Client.d.ts +7 -1
- package/api/resources/folders/resources/agents/client/Client.js +8 -2
- package/api/resources/folders/resources/agents/client/requests/AgentsListRequest.d.ts +7 -1
- package/api/resources/folders/resources/files/client/Client.d.ts +12 -2
- package/api/resources/folders/resources/files/client/Client.js +15 -5
- package/api/resources/folders/resources/files/client/requests/BodyUploadFileToFolder.d.ts +4 -1
- package/api/resources/folders/resources/files/client/requests/FilesListRequest.d.ts +8 -1
- package/api/resources/folders/resources/passages/client/Client.d.ts +7 -1
- package/api/resources/folders/resources/passages/client/Client.js +8 -2
- package/api/resources/folders/resources/passages/client/requests/PassagesListRequest.d.ts +7 -1
- package/api/resources/groups/client/Client.d.ts +9 -1
- package/api/resources/groups/client/Client.js +15 -7
- package/api/resources/groups/client/requests/GroupsListRequest.d.ts +9 -1
- package/api/resources/groups/resources/messages/client/Client.d.ts +10 -1
- package/api/resources/groups/resources/messages/client/Client.js +15 -6
- package/api/resources/groups/resources/messages/client/requests/MessagesListRequest.d.ts +10 -1
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.d.ts +11 -1
- package/api/resources/identities/client/Client.js +18 -8
- package/api/resources/identities/client/requests/IdentitiesListRequest.d.ts +11 -1
- package/api/resources/identities/resources/agents/client/Client.d.ts +7 -1
- package/api/resources/identities/resources/agents/client/Client.js +8 -2
- package/api/resources/identities/resources/agents/client/requests/AgentsListRequest.d.ts +7 -1
- package/api/resources/identities/resources/blocks/client/Client.d.ts +7 -1
- package/api/resources/identities/resources/blocks/client/Client.js +8 -2
- package/api/resources/identities/resources/blocks/client/requests/BlocksListRequest.d.ts +7 -1
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/index.d.ts +5 -1
- package/api/resources/index.js +6 -2
- package/api/resources/jobs/client/Client.d.ts +17 -2
- package/api/resources/jobs/client/Client.js +32 -9
- package/api/resources/jobs/client/requests/JobsListActiveRequest.d.ts +7 -1
- package/api/resources/jobs/client/requests/JobsListRequest.d.ts +23 -5
- package/api/resources/jobs/index.d.ts +1 -0
- package/api/resources/jobs/index.js +1 -0
- package/api/resources/jobs/types/JobsListRequestOrder.d.ts +11 -0
- package/api/resources/jobs/types/JobsListRequestOrder.js +10 -0
- package/api/resources/jobs/types/index.d.ts +1 -0
- package/api/resources/jobs/types/index.js +17 -0
- package/api/resources/models/client/Client.d.ts +4 -1
- package/api/resources/models/client/Client.js +6 -3
- package/api/resources/models/client/requests/ModelsListRequest.d.ts +4 -1
- package/api/resources/models/resources/embeddings/client/Client.js +1 -1
- package/api/resources/projects/client/Client.d.ts +5 -1
- package/api/resources/projects/client/Client.js +6 -2
- package/api/resources/projects/client/requests/ProjectsListRequest.d.ts +5 -1
- package/api/resources/providers/client/Client.d.ts +22 -1
- package/api/resources/providers/client/Client.js +82 -7
- package/api/resources/providers/client/requests/ProvidersListRequest.d.ts +9 -1
- package/api/resources/runs/client/Client.d.ts +29 -2
- package/api/resources/runs/client/Client.js +117 -11
- package/api/resources/runs/client/requests/RunsListActiveRequest.d.ts +4 -1
- package/api/resources/runs/client/requests/RunsListRequest.d.ts +29 -6
- package/api/resources/runs/resources/index.d.ts +2 -1
- package/api/resources/runs/resources/index.js +3 -2
- package/api/resources/runs/resources/messages/client/Client.d.ts +7 -1
- package/api/resources/runs/resources/messages/client/Client.js +12 -3
- package/api/resources/runs/resources/messages/client/requests/MessagesListRequest.d.ts +11 -1
- package/api/resources/runs/resources/steps/client/Client.d.ts +8 -12
- package/api/resources/runs/resources/steps/client/Client.js +17 -16
- package/api/resources/runs/resources/steps/client/requests/StepsListRequest.d.ts +14 -3
- package/api/resources/runs/resources/steps/index.d.ts +1 -0
- package/api/resources/runs/resources/steps/index.js +1 -0
- package/api/resources/runs/resources/steps/types/StepsListRequestOrder.d.ts +11 -0
- package/api/resources/runs/resources/steps/types/StepsListRequestOrder.js +10 -0
- package/api/resources/runs/resources/steps/types/index.d.ts +1 -0
- package/api/resources/runs/resources/steps/types/index.js +17 -0
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/runs/types/RunsListRequestOrder.d.ts +11 -0
- package/api/resources/runs/types/RunsListRequestOrder.js +10 -0
- package/api/resources/runs/types/index.d.ts +1 -0
- package/api/resources/runs/types/index.js +1 -0
- package/api/resources/sources/client/Client.d.ts +6 -2
- package/api/resources/sources/client/Client.js +16 -12
- package/api/resources/sources/client/requests/GetFileMetadataRequest.d.ts +3 -1
- package/api/resources/sources/client/requests/GetSourcesMetadataRequest.d.ts +3 -1
- package/api/resources/sources/resources/files/client/Client.d.ts +10 -2
- package/api/resources/sources/resources/files/client/Client.js +13 -5
- package/api/resources/sources/resources/files/client/requests/BodyUploadFileToSource.d.ts +4 -1
- package/api/resources/sources/resources/files/client/requests/FilesListRequest.d.ts +6 -1
- package/api/resources/sources/resources/passages/client/Client.d.ts +5 -1
- package/api/resources/sources/resources/passages/client/Client.js +6 -2
- package/api/resources/sources/resources/passages/client/requests/PassagesListRequest.d.ts +5 -1
- package/api/resources/steps/client/Client.d.ts +14 -1
- package/api/resources/steps/client/Client.js +16 -3
- package/api/resources/steps/client/requests/StepsListRequest.d.ts +14 -1
- package/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/api/resources/steps/resources/messages/client/Client.d.ts +7 -1
- package/api/resources/steps/resources/messages/client/Client.js +8 -2
- package/api/resources/steps/resources/messages/client/requests/MessagesListRequest.d.ts +7 -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.d.ts +9 -1
- package/api/resources/tags/client/Client.js +10 -2
- package/api/resources/tags/client/requests/TagsListRequest.d.ts +9 -1
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.d.ts +17 -3
- package/api/resources/templates/client/Client.js +30 -16
- package/api/resources/templates/client/requests/TemplatesListRequest.d.ts +12 -1
- package/api/resources/templates/client/requests/TemplatesListTemplateVersionsRequest.d.ts +4 -1
- 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/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem.d.ts +1 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.d.ts +5 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.d.ts +4 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem.d.ts +1 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.d.ts +5 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.d.ts +4 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.d.ts +2 -2
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.js +1 -1
- 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 +16 -40
- package/api/resources/tools/client/Client.js +33 -246
- package/api/resources/tools/client/requests/ToolsCountRequest.d.ts +6 -1
- package/api/resources/tools/client/requests/ToolsListRequest.d.ts +10 -1
- package/api/resources/voice/client/Client.d.ts +8 -0
- package/api/resources/voice/client/Client.js +11 -1
- package/api/types/AgentEnvironmentVariable.d.ts +2 -0
- package/api/types/Annotation.d.ts +10 -0
- package/api/types/AnnotationUrlCitation.d.ts +11 -0
- package/api/types/ApprovalCreate.d.ts +5 -2
- package/api/types/ApprovalCreateApprovalsItem.d.ts +5 -0
- package/api/types/ApprovalResponseMessage.d.ts +5 -2
- package/api/types/ApprovalResponseMessageApprovalsItem.d.ts +5 -0
- package/api/types/ApprovalReturn.d.ts +12 -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/ChatCompletionAssistantMessageParam.d.ts +13 -0
- package/api/types/ChatCompletionAssistantMessageParamContent.d.ts +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/api/types/{ChatCompletionMessageFunctionToolCall.d.ts → 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 -2
- package/api/types/LettaSchemasAgentFileAgentSchema.d.ts +2 -2
- package/api/types/LettaSchemasAgentFileMessageSchema.d.ts +10 -2
- package/api/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.d.ts +5 -0
- package/api/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.js +5 -0
- package/api/types/LettaSchemasLettaMessageToolReturn.d.ts +12 -0
- package/api/types/LettaSchemasLettaMessageToolReturn.js +5 -0
- package/api/types/LettaSchemasLettaMessageToolReturnStatus.d.ts +8 -0
- package/api/types/LettaSchemasLettaMessageToolReturnStatus.js +10 -0
- package/{dist/api/types/ToolReturn.d.ts → api/types/LettaSchemasMessageToolReturn.d.ts} +5 -2
- package/api/types/LettaSchemasMessageToolReturn.js +5 -0
- package/api/types/{ToolReturnStatus.d.ts → LettaSchemasMessageToolReturnStatus.d.ts} +2 -2
- package/api/types/{ToolReturnStatus.js → LettaSchemasMessageToolReturnStatus.js} +2 -2
- package/api/types/LlmConfig.d.ts +2 -0
- package/api/types/Message.d.ts +4 -2
- package/api/types/MessageApprovalsItem.d.ts +5 -0
- package/api/types/MessageApprovalsItem.js +5 -0
- package/api/types/OmittedReasoningContent.d.ts +2 -0
- 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/Provider.d.ts +4 -0
- package/api/types/RunMetrics.d.ts +21 -0
- package/api/types/RunMetrics.js +5 -0
- package/api/types/SandboxEnvironmentVariable.d.ts +2 -0
- package/api/types/TextContent.d.ts +2 -0
- package/api/types/ToolCallContent.d.ts +2 -0
- package/api/types/ToolCallMessage.d.ts +1 -0
- package/api/types/ToolCallMessageToolCalls.d.ts +5 -0
- package/api/types/ToolCallMessageToolCalls.js +5 -0
- package/api/types/ToolReturnMessage.d.ts +7 -5
- package/api/types/ToolType.d.ts +2 -2
- package/api/types/ToolType.js +1 -1
- package/api/types/TopLogprob.d.ts +10 -0
- package/api/types/TopLogprob.js +5 -0
- package/api/types/index.d.ts +63 -11
- package/api/types/index.js +63 -11
- 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 +23 -6
- package/dist/api/resources/agents/client/Client.js +34 -19
- package/dist/api/resources/agents/client/requests/AgentsExportFileRequest.d.ts +4 -1
- package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +16 -1
- package/dist/api/resources/agents/client/requests/BodyImportAgent.d.ts +3 -1
- package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
- package/dist/api/resources/agents/resources/blocks/client/Client.d.ts +9 -2
- package/dist/api/resources/agents/resources/blocks/client/Client.js +37 -10
- package/dist/api/resources/agents/resources/blocks/client/index.d.ts +1 -1
- package/dist/api/resources/agents/resources/blocks/client/index.js +15 -0
- package/dist/api/resources/agents/resources/blocks/client/requests/BlocksListRequest.d.ts +36 -0
- package/dist/api/resources/agents/resources/blocks/client/requests/BlocksListRequest.js +5 -0
- package/dist/api/resources/agents/resources/blocks/client/requests/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/blocks/client/requests/index.js +2 -0
- package/dist/api/resources/agents/resources/blocks/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/blocks/index.js +1 -0
- package/dist/api/resources/agents/resources/blocks/types/BlocksListRequestOrder.d.ts +11 -0
- package/dist/api/resources/agents/resources/blocks/types/BlocksListRequestOrder.js +10 -0
- package/dist/api/resources/agents/resources/blocks/types/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/blocks/types/index.js +17 -0
- 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.d.ts +9 -1
- package/dist/api/resources/agents/resources/files/client/Client.js +30 -8
- package/dist/api/resources/agents/resources/files/client/requests/FilesListRequest.d.ts +29 -4
- package/dist/api/resources/agents/resources/files/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/files/index.js +1 -0
- package/dist/api/resources/agents/resources/files/types/FilesListRequestOrder.d.ts +11 -0
- package/dist/api/resources/agents/resources/files/types/FilesListRequestOrder.js +10 -0
- package/dist/api/resources/agents/resources/files/types/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/files/types/index.js +17 -0
- package/dist/api/resources/agents/resources/folders/client/Client.d.ts +9 -2
- package/dist/api/resources/agents/resources/folders/client/Client.js +35 -8
- package/dist/api/resources/agents/resources/folders/client/index.d.ts +1 -1
- package/dist/api/resources/agents/resources/folders/client/index.js +15 -0
- package/dist/api/resources/agents/resources/folders/client/requests/FoldersListRequest.d.ts +36 -0
- package/dist/api/resources/agents/resources/folders/client/requests/FoldersListRequest.js +5 -0
- package/dist/api/resources/agents/resources/folders/client/requests/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/folders/client/requests/index.js +2 -0
- package/dist/api/resources/agents/resources/folders/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/folders/index.js +1 -0
- package/dist/api/resources/agents/resources/folders/types/FoldersListRequestOrder.d.ts +11 -0
- package/dist/api/resources/agents/resources/folders/types/FoldersListRequestOrder.js +10 -0
- package/dist/api/resources/agents/resources/folders/types/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/folders/types/index.js +17 -0
- package/dist/api/resources/agents/resources/groups/client/Client.d.ts +8 -1
- package/dist/api/resources/agents/resources/groups/client/Client.js +28 -4
- package/dist/api/resources/agents/resources/groups/client/requests/GroupsListRequest.d.ts +29 -1
- package/dist/api/resources/agents/resources/groups/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/groups/index.js +1 -0
- package/dist/api/resources/agents/resources/groups/types/GroupsListRequestOrder.d.ts +11 -0
- package/dist/api/resources/agents/resources/groups/types/GroupsListRequestOrder.js +10 -0
- package/dist/api/resources/agents/resources/groups/types/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/groups/types/index.js +17 -0
- package/dist/api/resources/agents/resources/index.d.ts +15 -9
- package/dist/api/resources/agents/resources/index.js +16 -10
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.d.ts +15 -2
- package/dist/api/resources/agents/resources/messages/client/Client.js +38 -17
- package/dist/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +26 -6
- package/dist/api/resources/agents/resources/messages/client/requests/MessagesResetRequest.d.ts +3 -1
- package/dist/api/resources/agents/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
- package/dist/api/resources/agents/resources/messages/types/MessagesListRequestOrder.js +10 -0
- package/dist/api/resources/agents/resources/messages/types/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/messages/types/index.js +1 -0
- package/dist/api/resources/agents/resources/passages/client/Client.d.ts +12 -2
- package/dist/api/resources/agents/resources/passages/client/Client.js +17 -7
- package/dist/api/resources/agents/resources/passages/client/requests/PassagesListRequest.d.ts +7 -1
- package/dist/api/resources/agents/resources/passages/client/requests/PassagesSearchRequest.d.ts +5 -1
- package/dist/api/resources/agents/resources/sources/client/Client.d.ts +9 -2
- package/dist/api/resources/agents/resources/sources/client/Client.js +35 -8
- package/dist/api/resources/agents/resources/sources/client/index.d.ts +1 -1
- package/dist/api/resources/agents/resources/sources/client/index.js +15 -0
- package/dist/api/resources/agents/resources/sources/client/requests/SourcesListRequest.d.ts +36 -0
- package/dist/api/resources/agents/resources/sources/client/requests/SourcesListRequest.js +5 -0
- package/dist/api/resources/agents/resources/sources/client/requests/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/sources/client/requests/index.js +2 -0
- package/dist/api/resources/agents/resources/sources/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/sources/index.js +1 -0
- package/dist/api/resources/agents/resources/sources/types/SourcesListRequestOrder.d.ts +11 -0
- package/dist/api/resources/agents/resources/sources/types/SourcesListRequestOrder.js +10 -0
- package/dist/api/resources/agents/resources/sources/types/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/sources/types/index.js +17 -0
- package/dist/api/resources/agents/resources/tools/client/Client.d.ts +9 -2
- package/dist/api/resources/agents/resources/tools/client/Client.js +37 -10
- package/dist/api/resources/agents/resources/tools/client/requests/ToolsListRequest.d.ts +36 -0
- package/dist/api/resources/agents/resources/tools/client/requests/ToolsListRequest.js +5 -0
- package/dist/api/resources/agents/resources/tools/client/requests/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/tools/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/tools/index.js +1 -0
- package/dist/api/resources/agents/resources/tools/types/ToolsListRequestOrder.d.ts +11 -0
- package/dist/api/resources/agents/resources/tools/types/ToolsListRequestOrder.js +10 -0
- package/dist/api/resources/agents/resources/tools/types/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/tools/types/index.js +17 -0
- package/dist/api/resources/archives/client/Client.d.ts +8 -1
- package/dist/api/resources/archives/client/Client.js +11 -4
- package/dist/api/resources/archives/client/requests/ListArchivesRequest.d.ts +8 -1
- package/dist/api/resources/batches/client/Client.d.ts +7 -1
- package/dist/api/resources/batches/client/Client.js +11 -5
- package/dist/api/resources/batches/client/requests/BatchesListRequest.d.ts +7 -1
- package/dist/api/resources/batches/resources/messages/client/Client.d.ts +8 -1
- package/dist/api/resources/batches/resources/messages/client/Client.js +9 -2
- package/dist/api/resources/batches/resources/messages/client/requests/MessagesListRequest.d.ts +8 -1
- package/dist/api/resources/blocks/client/Client.d.ts +17 -1
- package/dist/api/resources/blocks/client/Client.js +23 -7
- package/dist/api/resources/blocks/client/requests/BlocksListRequest.d.ts +17 -1
- package/dist/api/resources/blocks/resources/agents/client/Client.d.ts +7 -1
- package/dist/api/resources/blocks/resources/agents/client/Client.js +8 -2
- package/dist/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.d.ts +7 -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/client/requests/index.js +2 -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.d.ts +5 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +8 -4
- package/dist/api/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensListClientSideAccessTokensRequest.d.ts +5 -1
- package/dist/api/resources/folders/client/Client.d.ts +11 -2
- package/dist/api/resources/folders/client/Client.js +19 -10
- package/dist/api/resources/folders/client/requests/FoldersListRequest.d.ts +8 -1
- package/dist/api/resources/folders/client/requests/RetrieveMetadataRequest.d.ts +3 -1
- package/dist/api/resources/folders/resources/agents/client/Client.d.ts +7 -1
- package/dist/api/resources/folders/resources/agents/client/Client.js +8 -2
- package/dist/api/resources/folders/resources/agents/client/requests/AgentsListRequest.d.ts +7 -1
- package/dist/api/resources/folders/resources/files/client/Client.d.ts +12 -2
- package/dist/api/resources/folders/resources/files/client/Client.js +15 -5
- package/dist/api/resources/folders/resources/files/client/requests/BodyUploadFileToFolder.d.ts +4 -1
- package/dist/api/resources/folders/resources/files/client/requests/FilesListRequest.d.ts +8 -1
- package/dist/api/resources/folders/resources/passages/client/Client.d.ts +7 -1
- package/dist/api/resources/folders/resources/passages/client/Client.js +8 -2
- package/dist/api/resources/folders/resources/passages/client/requests/PassagesListRequest.d.ts +7 -1
- package/dist/api/resources/groups/client/Client.d.ts +9 -1
- package/dist/api/resources/groups/client/Client.js +15 -7
- package/dist/api/resources/groups/client/requests/GroupsListRequest.d.ts +9 -1
- package/dist/api/resources/groups/resources/messages/client/Client.d.ts +10 -1
- package/dist/api/resources/groups/resources/messages/client/Client.js +15 -6
- package/dist/api/resources/groups/resources/messages/client/requests/MessagesListRequest.d.ts +10 -1
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.d.ts +11 -1
- package/dist/api/resources/identities/client/Client.js +18 -8
- package/dist/api/resources/identities/client/requests/IdentitiesListRequest.d.ts +11 -1
- package/dist/api/resources/identities/resources/agents/client/Client.d.ts +7 -1
- package/dist/api/resources/identities/resources/agents/client/Client.js +8 -2
- package/dist/api/resources/identities/resources/agents/client/requests/AgentsListRequest.d.ts +7 -1
- package/dist/api/resources/identities/resources/blocks/client/Client.d.ts +7 -1
- package/dist/api/resources/identities/resources/blocks/client/Client.js +8 -2
- package/dist/api/resources/identities/resources/blocks/client/requests/BlocksListRequest.d.ts +7 -1
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +5 -1
- package/dist/api/resources/index.js +6 -2
- package/dist/api/resources/jobs/client/Client.d.ts +17 -2
- package/dist/api/resources/jobs/client/Client.js +32 -9
- package/dist/api/resources/jobs/client/requests/JobsListActiveRequest.d.ts +7 -1
- package/dist/api/resources/jobs/client/requests/JobsListRequest.d.ts +23 -5
- package/dist/api/resources/jobs/index.d.ts +1 -0
- package/dist/api/resources/jobs/index.js +1 -0
- package/dist/api/resources/jobs/types/JobsListRequestOrder.d.ts +11 -0
- package/dist/api/resources/jobs/types/JobsListRequestOrder.js +10 -0
- package/dist/api/resources/jobs/types/index.d.ts +1 -0
- package/dist/api/resources/jobs/types/index.js +17 -0
- package/dist/api/resources/models/client/Client.d.ts +4 -1
- package/dist/api/resources/models/client/Client.js +6 -3
- package/dist/api/resources/models/client/requests/ModelsListRequest.d.ts +4 -1
- package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.d.ts +5 -1
- package/dist/api/resources/projects/client/Client.js +6 -2
- package/dist/api/resources/projects/client/requests/ProjectsListRequest.d.ts +5 -1
- package/dist/api/resources/providers/client/Client.d.ts +22 -1
- package/dist/api/resources/providers/client/Client.js +82 -7
- package/dist/api/resources/providers/client/requests/ProvidersListRequest.d.ts +9 -1
- package/dist/api/resources/runs/client/Client.d.ts +29 -2
- package/dist/api/resources/runs/client/Client.js +117 -11
- package/dist/api/resources/runs/client/requests/RunsListActiveRequest.d.ts +4 -1
- package/dist/api/resources/runs/client/requests/RunsListRequest.d.ts +29 -6
- package/dist/api/resources/runs/resources/index.d.ts +2 -1
- package/dist/api/resources/runs/resources/index.js +3 -2
- package/dist/api/resources/runs/resources/messages/client/Client.d.ts +7 -1
- package/dist/api/resources/runs/resources/messages/client/Client.js +12 -3
- package/dist/api/resources/runs/resources/messages/client/requests/MessagesListRequest.d.ts +11 -1
- package/dist/api/resources/runs/resources/steps/client/Client.d.ts +8 -12
- package/dist/api/resources/runs/resources/steps/client/Client.js +17 -16
- package/dist/api/resources/runs/resources/steps/client/requests/StepsListRequest.d.ts +14 -3
- package/dist/api/resources/runs/resources/steps/index.d.ts +1 -0
- package/dist/api/resources/runs/resources/steps/index.js +1 -0
- package/dist/api/resources/runs/resources/steps/types/StepsListRequestOrder.d.ts +11 -0
- package/dist/api/resources/runs/resources/steps/types/StepsListRequestOrder.js +10 -0
- package/dist/api/resources/runs/resources/steps/types/index.d.ts +1 -0
- package/dist/api/resources/runs/resources/steps/types/index.js +17 -0
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/runs/types/RunsListRequestOrder.d.ts +11 -0
- package/dist/api/resources/runs/types/RunsListRequestOrder.js +10 -0
- package/dist/api/resources/runs/types/index.d.ts +1 -0
- package/dist/api/resources/runs/types/index.js +1 -0
- package/dist/api/resources/sources/client/Client.d.ts +6 -2
- package/dist/api/resources/sources/client/Client.js +16 -12
- package/dist/api/resources/sources/client/requests/GetFileMetadataRequest.d.ts +3 -1
- package/dist/api/resources/sources/client/requests/GetSourcesMetadataRequest.d.ts +3 -1
- package/dist/api/resources/sources/resources/files/client/Client.d.ts +10 -2
- package/dist/api/resources/sources/resources/files/client/Client.js +13 -5
- package/dist/api/resources/sources/resources/files/client/requests/BodyUploadFileToSource.d.ts +4 -1
- package/dist/api/resources/sources/resources/files/client/requests/FilesListRequest.d.ts +6 -1
- package/dist/api/resources/sources/resources/passages/client/Client.d.ts +5 -1
- package/dist/api/resources/sources/resources/passages/client/Client.js +6 -2
- package/dist/api/resources/sources/resources/passages/client/requests/PassagesListRequest.d.ts +5 -1
- package/dist/api/resources/steps/client/Client.d.ts +14 -1
- package/dist/api/resources/steps/client/Client.js +16 -3
- package/dist/api/resources/steps/client/requests/StepsListRequest.d.ts +14 -1
- package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/dist/api/resources/steps/resources/messages/client/Client.d.ts +7 -1
- package/dist/api/resources/steps/resources/messages/client/Client.js +8 -2
- package/dist/api/resources/steps/resources/messages/client/requests/MessagesListRequest.d.ts +7 -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.d.ts +9 -1
- package/dist/api/resources/tags/client/Client.js +10 -2
- package/dist/api/resources/tags/client/requests/TagsListRequest.d.ts +9 -1
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.d.ts +17 -3
- package/dist/api/resources/templates/client/Client.js +30 -16
- package/dist/api/resources/templates/client/requests/TemplatesListRequest.d.ts +12 -1
- package/dist/api/resources/templates/client/requests/TemplatesListTemplateVersionsRequest.d.ts +4 -1
- 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/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem.d.ts +1 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.d.ts +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.js +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.d.ts +4 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.js +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem.d.ts +1 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.d.ts +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.js +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.d.ts +4 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.js +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.d.ts +2 -2
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.js +1 -1
- 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 +16 -40
- package/dist/api/resources/tools/client/Client.js +33 -246
- package/dist/api/resources/tools/client/requests/ToolsCountRequest.d.ts +6 -1
- package/dist/api/resources/tools/client/requests/ToolsListRequest.d.ts +10 -1
- 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/AgentEnvironmentVariable.d.ts +2 -0
- 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/ApprovalCreate.d.ts +5 -2
- package/dist/api/types/ApprovalCreateApprovalsItem.d.ts +5 -0
- package/dist/api/types/ApprovalCreateApprovalsItem.js +5 -0
- package/dist/api/types/ApprovalResponseMessage.d.ts +5 -2
- package/dist/api/types/ApprovalResponseMessageApprovalsItem.d.ts +5 -0
- package/dist/api/types/ApprovalResponseMessageApprovalsItem.js +5 -0
- package/dist/api/types/ApprovalReturn.d.ts +12 -0
- package/dist/api/types/ApprovalReturn.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/dist/api/types/{ChatCompletionMessageFunctionToolCall.d.ts → 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 -2
- package/dist/api/types/LettaSchemasAgentFileAgentSchema.d.ts +2 -2
- package/dist/api/types/LettaSchemasAgentFileMessageSchema.d.ts +10 -2
- package/dist/api/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.d.ts +5 -0
- package/dist/api/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.js +5 -0
- package/dist/api/types/LettaSchemasLettaMessageToolReturn.d.ts +12 -0
- package/dist/api/types/LettaSchemasLettaMessageToolReturn.js +5 -0
- package/dist/api/types/LettaSchemasLettaMessageToolReturnStatus.d.ts +8 -0
- package/dist/api/types/LettaSchemasLettaMessageToolReturnStatus.js +10 -0
- package/{api/types/ToolReturn.d.ts → dist/api/types/LettaSchemasMessageToolReturn.d.ts} +5 -2
- package/dist/api/types/LettaSchemasMessageToolReturn.js +5 -0
- package/dist/api/types/{ToolReturnStatus.d.ts → LettaSchemasMessageToolReturnStatus.d.ts} +2 -2
- package/dist/api/types/{ToolReturnStatus.js → LettaSchemasMessageToolReturnStatus.js} +2 -2
- package/dist/api/types/LlmConfig.d.ts +2 -0
- package/dist/api/types/Message.d.ts +4 -2
- package/dist/api/types/MessageApprovalsItem.d.ts +5 -0
- package/dist/api/types/MessageApprovalsItem.js +5 -0
- package/dist/api/types/OmittedReasoningContent.d.ts +2 -0
- 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/Provider.d.ts +4 -0
- package/dist/api/types/RunMetrics.d.ts +21 -0
- package/dist/api/types/RunMetrics.js +5 -0
- package/dist/api/types/SandboxEnvironmentVariable.d.ts +2 -0
- package/dist/api/types/TextContent.d.ts +2 -0
- package/dist/api/types/ToolCallContent.d.ts +2 -0
- package/dist/api/types/ToolCallMessage.d.ts +1 -0
- package/dist/api/types/ToolCallMessageToolCalls.d.ts +5 -0
- package/dist/api/types/ToolCallMessageToolCalls.js +5 -0
- package/dist/api/types/ToolReturnMessage.d.ts +7 -5
- package/dist/api/types/ToolType.d.ts +2 -2
- package/dist/api/types/ToolType.js +1 -1
- package/dist/api/types/TopLogprob.d.ts +10 -0
- package/dist/api/types/TopLogprob.js +5 -0
- package/dist/api/types/index.d.ts +63 -11
- package/dist/api/types/index.js +63 -11
- package/dist/serialization/resources/agents/resources/blocks/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/blocks/index.js +1 -0
- package/dist/serialization/resources/agents/resources/blocks/types/BlocksListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/agents/resources/{templates/types/TemplatesMigrateResponse.js → blocks/types/BlocksListRequestOrder.js} +2 -4
- package/dist/serialization/resources/agents/resources/blocks/types/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/blocks/types/index.js +17 -0
- package/dist/serialization/resources/agents/resources/files/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/files/index.js +1 -0
- package/dist/serialization/resources/agents/resources/files/types/FilesListRequestOrder.d.ts +10 -0
- package/{serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.js → dist/serialization/resources/agents/resources/files/types/FilesListRequestOrder.js} +2 -4
- package/dist/serialization/resources/agents/resources/files/types/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/files/types/index.js +17 -0
- package/dist/serialization/resources/agents/resources/folders/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/folders/index.js +1 -0
- package/dist/serialization/resources/agents/resources/folders/types/FoldersListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/agents/resources/folders/types/FoldersListRequestOrder.js +41 -0
- package/dist/serialization/resources/agents/resources/folders/types/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/folders/types/index.js +17 -0
- package/dist/serialization/resources/agents/resources/groups/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/groups/index.js +1 -0
- package/dist/serialization/resources/agents/resources/groups/types/GroupsListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/agents/resources/groups/types/GroupsListRequestOrder.js +41 -0
- package/dist/serialization/resources/agents/resources/groups/types/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/groups/types/index.js +17 -0
- package/dist/serialization/resources/agents/resources/index.d.ts +12 -9
- package/dist/serialization/resources/agents/resources/index.js +13 -10
- package/dist/serialization/resources/agents/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/agents/resources/messages/types/MessagesListRequestOrder.js +41 -0
- package/dist/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/messages/types/index.js +1 -0
- package/dist/serialization/resources/agents/resources/sources/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/sources/index.js +1 -0
- package/dist/serialization/resources/agents/resources/sources/types/SourcesListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/agents/resources/sources/types/SourcesListRequestOrder.js +41 -0
- package/dist/serialization/resources/agents/resources/sources/types/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/sources/types/index.js +17 -0
- package/dist/serialization/resources/agents/resources/tools/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/tools/index.js +1 -0
- package/dist/serialization/resources/agents/resources/tools/types/ToolsListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/agents/resources/tools/types/ToolsListRequestOrder.js +41 -0
- package/dist/serialization/resources/agents/resources/tools/types/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/tools/types/index.js +17 -0
- package/dist/serialization/resources/chat/client/requests/ChatCompletionRequest.d.ts +24 -0
- package/dist/serialization/resources/{agents/resources/templates/client/requests/TemplatesMigrateRequest.js → 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 +5 -1
- package/dist/serialization/resources/index.js +6 -2
- package/dist/serialization/resources/jobs/index.d.ts +1 -0
- package/dist/serialization/resources/jobs/index.js +1 -0
- package/dist/serialization/resources/jobs/types/JobsListRequestOrder.d.ts +10 -0
- package/{serialization/resources/tools/client/listComposioApps.js → dist/serialization/resources/jobs/types/JobsListRequestOrder.js} +2 -3
- package/dist/serialization/resources/jobs/types/index.d.ts +1 -0
- package/dist/serialization/resources/jobs/types/index.js +17 -0
- package/dist/serialization/resources/runs/resources/index.d.ts +1 -0
- package/dist/serialization/resources/runs/resources/index.js +1 -0
- package/dist/serialization/resources/runs/resources/steps/index.d.ts +1 -0
- package/dist/serialization/resources/runs/resources/steps/index.js +1 -0
- package/dist/serialization/resources/runs/resources/steps/types/StepsListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/runs/resources/steps/types/StepsListRequestOrder.js +41 -0
- package/dist/serialization/resources/runs/resources/steps/types/index.d.ts +1 -0
- package/dist/serialization/resources/runs/resources/steps/types/index.js +17 -0
- package/dist/serialization/resources/runs/types/RunsListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/{tools/client/listComposioApps.js → runs/types/RunsListRequestOrder.js} +2 -3
- package/dist/serialization/resources/runs/types/index.d.ts +1 -0
- package/dist/serialization/resources/runs/types/index.js +1 -0
- 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/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.js +47 -0
- 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/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem.d.ts +2 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem.js +2 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.d.ts +11 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.js +47 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.d.ts +10 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.js +41 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem.d.ts +2 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem.js +2 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.d.ts +11 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.js +47 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.d.ts +10 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.js +41 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.d.ts +1 -1
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.js +1 -1
- 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/index.d.ts +0 -2
- package/dist/serialization/resources/tools/client/index.js +1 -3
- package/dist/serialization/types/AgentEnvironmentVariable.d.ts +1 -0
- package/dist/serialization/types/AgentEnvironmentVariable.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/ApprovalCreate.d.ts +4 -2
- package/dist/serialization/types/ApprovalCreate.js +4 -2
- package/dist/serialization/types/ApprovalCreateApprovalsItem.d.ts +12 -0
- package/dist/serialization/types/ApprovalCreateApprovalsItem.js +43 -0
- package/dist/serialization/types/ApprovalResponseMessage.d.ts +4 -2
- package/dist/serialization/types/ApprovalResponseMessage.js +4 -2
- package/dist/serialization/types/ApprovalResponseMessageApprovalsItem.d.ts +12 -0
- package/dist/serialization/types/ApprovalResponseMessageApprovalsItem.js +43 -0
- package/dist/serialization/types/ApprovalReturn.d.ts +15 -0
- package/dist/serialization/types/ApprovalReturn.js +46 -0
- package/dist/serialization/types/Audio.d.ts +12 -0
- package/dist/serialization/types/{ToolReturnStatus.js → Audio.js} +4 -2
- 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/{ActionModel.js → ChatCompletionAssistantMessageParam.js} +13 -16
- 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/{ActionParametersModel.js → ChatCompletionDeveloperMessageParam.js} +6 -7
- 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/{serialization/types/ActionParametersModel.js → dist/serialization/types/ChatCompletionToolMessageParam.js} +6 -7
- 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/{serialization/types/ToolReturn.js → dist/serialization/types/ChatCompletionUserMessageParam.js} +6 -6
- 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/types/CustomInput.js +44 -0
- 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/{serialization/types/ToolReturnStatus.js → dist/serialization/types/ImageUrlDetail.js} +2 -2
- 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 +9 -4
- package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.js +9 -4
- package/dist/serialization/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.d.ts +12 -0
- package/dist/serialization/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.js +43 -0
- package/dist/serialization/types/LettaSchemasLettaMessageToolReturn.d.ts +18 -0
- package/dist/serialization/types/{AuthSchemeField.js → LettaSchemasLettaMessageToolReturn.js} +9 -10
- package/dist/serialization/types/LettaSchemasLettaMessageToolReturnStatus.d.ts +10 -0
- package/dist/serialization/types/LettaSchemasLettaMessageToolReturnStatus.js +41 -0
- package/dist/serialization/types/LettaSchemasMessageToolReturn.d.ts +17 -0
- package/dist/serialization/types/LettaSchemasMessageToolReturn.js +48 -0
- package/dist/serialization/types/LettaSchemasMessageToolReturnStatus.d.ts +10 -0
- package/dist/serialization/types/LettaSchemasMessageToolReturnStatus.js +41 -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 +6 -4
- package/dist/serialization/types/Message.js +6 -4
- package/dist/serialization/types/MessageApprovalsItem.d.ts +12 -0
- package/dist/serialization/types/{ToolReturn.js → MessageApprovalsItem.js} +4 -7
- package/dist/serialization/types/OmittedReasoningContent.d.ts +1 -0
- package/dist/serialization/types/OmittedReasoningContent.js +1 -0
- 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/Provider.d.ts +2 -0
- package/dist/serialization/types/Provider.js +2 -0
- package/dist/serialization/types/RunMetrics.d.ts +19 -0
- package/dist/serialization/types/RunMetrics.js +50 -0
- package/dist/serialization/types/SandboxEnvironmentVariable.d.ts +1 -0
- package/dist/serialization/types/SandboxEnvironmentVariable.js +1 -0
- package/dist/serialization/types/TextContent.d.ts +1 -0
- package/dist/serialization/types/TextContent.js +1 -0
- package/dist/serialization/types/ToolCallContent.d.ts +1 -0
- package/dist/serialization/types/ToolCallContent.js +1 -0
- package/dist/serialization/types/ToolCallMessage.d.ts +2 -0
- package/dist/serialization/types/ToolCallMessage.js +2 -0
- package/dist/serialization/types/ToolCallMessageToolCalls.d.ts +12 -0
- package/{serialization/types/AppAuthSchemeAuthMode.js → dist/serialization/types/ToolCallMessageToolCalls.js} +4 -13
- package/dist/serialization/types/ToolReturnMessage.d.ts +2 -0
- package/dist/serialization/types/ToolReturnMessage.js +2 -0
- package/dist/serialization/types/ToolType.d.ts +1 -1
- package/dist/serialization/types/ToolType.js +1 -1
- package/dist/serialization/types/TopLogprob.d.ts +15 -0
- package/dist/serialization/types/TopLogprob.js +47 -0
- package/dist/serialization/types/index.d.ts +63 -11
- package/dist/serialization/types/index.js +63 -11
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +639 -455
- package/serialization/resources/agents/resources/blocks/index.d.ts +1 -0
- package/serialization/resources/agents/resources/blocks/index.js +1 -0
- package/serialization/resources/agents/resources/blocks/types/BlocksListRequestOrder.d.ts +10 -0
- package/serialization/resources/agents/resources/blocks/types/BlocksListRequestOrder.js +41 -0
- package/serialization/resources/agents/resources/blocks/types/index.d.ts +1 -0
- package/serialization/resources/agents/resources/blocks/types/index.js +17 -0
- package/serialization/resources/agents/resources/files/index.d.ts +1 -0
- package/serialization/resources/agents/resources/files/index.js +1 -0
- package/serialization/resources/agents/resources/files/types/FilesListRequestOrder.d.ts +10 -0
- package/serialization/resources/agents/resources/files/types/FilesListRequestOrder.js +41 -0
- package/serialization/resources/agents/resources/files/types/index.d.ts +1 -0
- package/serialization/resources/agents/resources/files/types/index.js +17 -0
- package/serialization/resources/agents/resources/folders/index.d.ts +1 -0
- package/serialization/resources/agents/resources/folders/index.js +1 -0
- package/serialization/resources/agents/resources/folders/types/FoldersListRequestOrder.d.ts +10 -0
- package/serialization/resources/agents/resources/folders/types/FoldersListRequestOrder.js +41 -0
- package/serialization/resources/agents/resources/folders/types/index.d.ts +1 -0
- package/serialization/resources/agents/resources/folders/types/index.js +17 -0
- package/serialization/resources/agents/resources/groups/index.d.ts +1 -0
- package/serialization/resources/agents/resources/groups/index.js +1 -0
- package/serialization/resources/agents/resources/groups/types/GroupsListRequestOrder.d.ts +10 -0
- package/serialization/resources/agents/resources/groups/types/GroupsListRequestOrder.js +41 -0
- package/serialization/resources/agents/resources/groups/types/index.d.ts +1 -0
- package/serialization/resources/agents/resources/groups/types/index.js +17 -0
- package/serialization/resources/agents/resources/index.d.ts +12 -9
- package/serialization/resources/agents/resources/index.js +13 -10
- package/serialization/resources/agents/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
- package/serialization/resources/agents/resources/messages/types/MessagesListRequestOrder.js +41 -0
- package/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
- package/serialization/resources/agents/resources/messages/types/index.js +1 -0
- package/serialization/resources/agents/resources/sources/index.d.ts +1 -0
- package/serialization/resources/agents/resources/sources/index.js +1 -0
- package/serialization/resources/agents/resources/sources/types/SourcesListRequestOrder.d.ts +10 -0
- package/serialization/resources/agents/resources/sources/types/SourcesListRequestOrder.js +41 -0
- package/serialization/resources/agents/resources/sources/types/index.d.ts +1 -0
- package/serialization/resources/agents/resources/sources/types/index.js +17 -0
- package/serialization/resources/agents/resources/tools/index.d.ts +1 -0
- package/serialization/resources/agents/resources/tools/index.js +1 -0
- package/serialization/resources/agents/resources/tools/types/ToolsListRequestOrder.d.ts +10 -0
- package/serialization/resources/agents/resources/tools/types/ToolsListRequestOrder.js +41 -0
- package/serialization/resources/agents/resources/tools/types/index.d.ts +1 -0
- package/serialization/resources/agents/resources/tools/types/index.js +17 -0
- 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 +5 -1
- package/serialization/resources/index.js +6 -2
- package/serialization/resources/jobs/index.d.ts +1 -0
- package/serialization/resources/jobs/index.js +1 -0
- package/serialization/resources/jobs/types/JobsListRequestOrder.d.ts +10 -0
- package/serialization/resources/{tools/client/listComposioActionsByApp.js → jobs/types/JobsListRequestOrder.js} +2 -3
- package/serialization/resources/jobs/types/index.d.ts +1 -0
- package/serialization/resources/jobs/types/index.js +17 -0
- package/serialization/resources/runs/resources/index.d.ts +1 -0
- package/serialization/resources/runs/resources/index.js +1 -0
- package/serialization/resources/runs/resources/steps/index.d.ts +1 -0
- package/serialization/resources/runs/resources/steps/index.js +1 -0
- package/serialization/resources/runs/resources/steps/types/StepsListRequestOrder.d.ts +10 -0
- package/serialization/resources/runs/resources/steps/types/StepsListRequestOrder.js +41 -0
- package/serialization/resources/runs/resources/steps/types/index.d.ts +1 -0
- package/serialization/resources/runs/resources/steps/types/index.js +17 -0
- package/serialization/resources/runs/types/RunsListRequestOrder.d.ts +10 -0
- package/{dist/serialization/resources/tools/client/listComposioActionsByApp.js → serialization/resources/runs/types/RunsListRequestOrder.js} +2 -3
- package/serialization/resources/runs/types/index.d.ts +1 -0
- package/serialization/resources/runs/types/index.js +1 -0
- 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/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem.d.ts +2 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem.js +2 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.d.ts +11 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.js +47 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.d.ts +10 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.js +41 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem.d.ts +2 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem.js +2 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.d.ts +11 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.js +47 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.d.ts +10 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.js +41 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.d.ts +1 -1
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.js +1 -1
- package/serialization/resources/templates/types/index.d.ts +6 -0
- package/serialization/resources/templates/types/index.js +6 -0
- package/serialization/resources/tools/client/index.d.ts +0 -2
- package/serialization/resources/tools/client/index.js +1 -3
- package/serialization/types/AgentEnvironmentVariable.d.ts +1 -0
- package/serialization/types/AgentEnvironmentVariable.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/ApprovalCreate.d.ts +4 -2
- package/serialization/types/ApprovalCreate.js +4 -2
- package/serialization/types/ApprovalCreateApprovalsItem.d.ts +12 -0
- package/serialization/types/ApprovalCreateApprovalsItem.js +43 -0
- package/serialization/types/ApprovalResponseMessage.d.ts +4 -2
- package/serialization/types/ApprovalResponseMessage.js +4 -2
- package/serialization/types/ApprovalResponseMessageApprovalsItem.d.ts +12 -0
- package/serialization/types/ApprovalResponseMessageApprovalsItem.js +43 -0
- package/serialization/types/ApprovalReturn.d.ts +15 -0
- package/serialization/types/ApprovalReturn.js +46 -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/{dist/serialization/types/ActionResponseModel.js → serialization/types/ChatCompletionDeveloperMessageParam.js} +6 -7
- 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 +9 -4
- package/serialization/types/LettaSchemasAgentFileMessageSchema.js +9 -4
- package/serialization/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.d.ts +12 -0
- package/serialization/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.js +43 -0
- package/serialization/types/LettaSchemasLettaMessageToolReturn.d.ts +18 -0
- package/serialization/types/LettaSchemasLettaMessageToolReturn.js +49 -0
- package/serialization/types/LettaSchemasLettaMessageToolReturnStatus.d.ts +10 -0
- package/serialization/types/LettaSchemasLettaMessageToolReturnStatus.js +41 -0
- package/serialization/types/LettaSchemasMessageToolReturn.d.ts +17 -0
- package/serialization/types/LettaSchemasMessageToolReturn.js +48 -0
- package/serialization/types/LettaSchemasMessageToolReturnStatus.d.ts +10 -0
- package/serialization/types/LettaSchemasMessageToolReturnStatus.js +41 -0
- package/serialization/types/LlmConfig.d.ts +1 -0
- package/serialization/types/LlmConfig.js +1 -0
- package/serialization/types/Message.d.ts +6 -4
- package/serialization/types/Message.js +6 -4
- package/serialization/types/MessageApprovalsItem.d.ts +12 -0
- package/serialization/types/MessageApprovalsItem.js +43 -0
- package/serialization/types/OmittedReasoningContent.d.ts +1 -0
- package/serialization/types/OmittedReasoningContent.js +1 -0
- 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/Provider.d.ts +2 -0
- package/serialization/types/Provider.js +2 -0
- package/serialization/types/RunMetrics.d.ts +19 -0
- package/serialization/types/RunMetrics.js +50 -0
- package/serialization/types/SandboxEnvironmentVariable.d.ts +1 -0
- package/serialization/types/SandboxEnvironmentVariable.js +1 -0
- package/serialization/types/TextContent.d.ts +1 -0
- package/serialization/types/TextContent.js +1 -0
- package/serialization/types/ToolCallContent.d.ts +1 -0
- package/serialization/types/ToolCallContent.js +1 -0
- package/serialization/types/ToolCallMessage.d.ts +2 -0
- package/serialization/types/ToolCallMessage.js +2 -0
- package/serialization/types/ToolCallMessageToolCalls.d.ts +12 -0
- package/{dist/serialization/types/AppAuthSchemeAuthMode.js → serialization/types/ToolCallMessageToolCalls.js} +4 -13
- package/serialization/types/ToolReturnMessage.d.ts +2 -0
- package/serialization/types/ToolReturnMessage.js +2 -0
- package/serialization/types/ToolType.d.ts +1 -1
- package/serialization/types/ToolType.js +1 -1
- package/serialization/types/TopLogprob.d.ts +15 -0
- package/serialization/types/TopLogprob.js +47 -0
- package/serialization/types/index.d.ts +63 -11
- package/serialization/types/index.js +63 -11
- 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/api/types/ActionModel.d.ts +0 -21
- package/api/types/ActionParametersModel.d.ts +0 -13
- package/api/types/ActionResponseModel.d.ts +0 -13
- package/api/types/AppAuthScheme.d.ts +0 -19
- package/api/types/AppAuthSchemeAuthMode.d.ts +0 -16
- package/api/types/AppAuthSchemeAuthMode.js +0 -18
- package/api/types/AppModel.d.ts +0 -25
- package/api/types/AuthSchemeField.d.ts +0 -16
- 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/api/types/ActionModel.d.ts +0 -21
- package/dist/api/types/ActionParametersModel.d.ts +0 -13
- package/dist/api/types/ActionResponseModel.d.ts +0 -13
- package/dist/api/types/AppAuthScheme.d.ts +0 -19
- package/dist/api/types/AppAuthSchemeAuthMode.d.ts +0 -16
- package/dist/api/types/AppAuthSchemeAuthMode.js +0 -18
- package/dist/api/types/AppModel.d.ts +0 -25
- package/dist/api/types/AuthSchemeField.d.ts +0 -16
- 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/resources/tools/client/listComposioActionsByApp.d.ts +0 -11
- package/dist/serialization/resources/tools/client/listComposioApps.d.ts +0 -11
- package/dist/serialization/types/ActionModel.d.ts +0 -25
- package/dist/serialization/types/ActionParametersModel.d.ts +0 -16
- package/dist/serialization/types/ActionResponseModel.d.ts +0 -16
- package/dist/serialization/types/AppAuthScheme.d.ts +0 -23
- package/dist/serialization/types/AppAuthScheme.js +0 -54
- package/dist/serialization/types/AppAuthSchemeAuthMode.d.ts +0 -10
- package/dist/serialization/types/AppModel.d.ts +0 -28
- package/dist/serialization/types/AppModel.js +0 -61
- package/dist/serialization/types/AuthSchemeField.d.ts +0 -19
- package/dist/serialization/types/ChatCompletionMessageFunctionToolCall.d.ts +0 -16
- package/dist/serialization/types/ToolReturn.d.ts +0 -15
- package/dist/serialization/types/ToolReturnStatus.d.ts +0 -10
- package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -14
- package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js +0 -45
- 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/resources/tools/client/listComposioActionsByApp.d.ts +0 -11
- package/serialization/resources/tools/client/listComposioApps.d.ts +0 -11
- package/serialization/types/ActionModel.d.ts +0 -25
- package/serialization/types/ActionModel.js +0 -56
- package/serialization/types/ActionParametersModel.d.ts +0 -16
- package/serialization/types/ActionResponseModel.d.ts +0 -16
- package/serialization/types/ActionResponseModel.js +0 -47
- package/serialization/types/AppAuthScheme.d.ts +0 -23
- package/serialization/types/AppAuthScheme.js +0 -54
- package/serialization/types/AppAuthSchemeAuthMode.d.ts +0 -10
- package/serialization/types/AppModel.d.ts +0 -28
- package/serialization/types/AppModel.js +0 -61
- package/serialization/types/AuthSchemeField.d.ts +0 -19
- package/serialization/types/AuthSchemeField.js +0 -50
- package/serialization/types/ChatCompletionMessageFunctionToolCall.d.ts +0 -16
- package/serialization/types/ToolReturn.d.ts +0 -15
- package/serialization/types/ToolReturnStatus.d.ts +0 -10
- /package/api/resources/agents/resources/{templates/client/requests/TemplatesMigrateRequest.js → blocks/client/requests/BlocksListRequest.js} +0 -0
- /package/api/resources/agents/resources/{templates → blocks}/client/requests/index.js +0 -0
- /package/api/resources/agents/resources/{templates/types/TemplatesMigrateResponse.js → folders/client/requests/FoldersListRequest.js} +0 -0
- /package/{dist/api/resources/agents/resources/templates → api/resources/agents/resources/folders}/client/requests/index.js +0 -0
- /package/api/{types/ActionModel.js → resources/agents/resources/sources/client/requests/SourcesListRequest.js} +0 -0
- /package/api/{types/ActionParametersModel.js → resources/agents/resources/tools/client/requests/ToolsListRequest.js} +0 -0
- /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/{types/ActionResponseModel.js → resources/chat/client/requests/ChatCompletionRequest.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/{types/AppAuthScheme.js → resources/chat/types/ChatCompletionRequestMessagesItem.js} +0 -0
- /package/api/{types/AppModel.js → resources/chat/types/ChatCompletionRequestStop.js} +0 -0
- /package/api/{types/AuthSchemeField.js → resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.js} +0 -0
- /package/api/{types/ChatCompletionMessageFunctionToolCall.js → resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.js} +0 -0
- /package/api/{types/Function.js → resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.js} +0 -0
- /package/api/{types/ToolReturn.js → resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.js} +0 -0
- /package/{dist/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js → api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.js} +0 -0
- /package/{dist/api/resources/agents/resources/templates/types/TemplatesMigrateResponse.js → api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.js} +0 -0
- /package/{dist/api/types/ActionModel.js → api/types/Annotation.js} +0 -0
- /package/{dist/api/types/ActionParametersModel.js → api/types/AnnotationUrlCitation.js} +0 -0
- /package/{dist/api/types/ActionResponseModel.js → api/types/ApprovalCreateApprovalsItem.js} +0 -0
- /package/{dist/api/types/AppAuthScheme.js → api/types/ApprovalResponseMessageApprovalsItem.js} +0 -0
- /package/{dist/api/types/AppModel.js → api/types/ApprovalReturn.js} +0 -0
- /package/{dist/api/types/AuthSchemeField.js → api/types/Audio.js} +0 -0
- /package/{dist/api/types/ChatCompletionMessageFunctionToolCall.js → api/types/ChatCompletion.js} +0 -0
- /package/{dist/api/types/Function.js → api/types/ChatCompletionAssistantMessageParam.js} +0 -0
- /package/{dist/api/types/ToolReturn.js → api/types/ChatCompletionAssistantMessageParamContent.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}/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
|
@@ -69,7 +69,14 @@ class Messages {
|
|
|
69
69
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
|
-
* await client.batches.messages.list("batch_id"
|
|
72
|
+
* await client.batches.messages.list("batch_id", {
|
|
73
|
+
* before: "before",
|
|
74
|
+
* after: "after",
|
|
75
|
+
* limit: 1,
|
|
76
|
+
* order: "asc",
|
|
77
|
+
* orderBy: "created_at",
|
|
78
|
+
* agentId: "agent_id"
|
|
79
|
+
* })
|
|
73
80
|
*/
|
|
74
81
|
list(batchId, request = {}, requestOptions) {
|
|
75
82
|
return core.HttpResponsePromise.fromPromise(this.__list(batchId, request, requestOptions));
|
|
@@ -104,7 +111,7 @@ class Messages {
|
|
|
104
111
|
method: "GET",
|
|
105
112
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
106
113
|
? yield core.Supplier.get(this._options.project)
|
|
107
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
114
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "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),
|
|
108
115
|
contentType: "application/json",
|
|
109
116
|
queryParameters: _queryParams,
|
|
110
117
|
requestType: "json",
|
|
@@ -4,7 +4,14 @@
|
|
|
4
4
|
import * as Letta from "../../../../../../index";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
|
-
* {
|
|
7
|
+
* {
|
|
8
|
+
* before: "before",
|
|
9
|
+
* after: "after",
|
|
10
|
+
* limit: 1,
|
|
11
|
+
* order: "asc",
|
|
12
|
+
* orderBy: "created_at",
|
|
13
|
+
* agentId: "agent_id"
|
|
14
|
+
* }
|
|
8
15
|
*/
|
|
9
16
|
export interface MessagesListRequest {
|
|
10
17
|
/**
|
|
@@ -40,7 +40,23 @@ export declare class Blocks {
|
|
|
40
40
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.blocks.list(
|
|
43
|
+
* await client.blocks.list({
|
|
44
|
+
* label: "label",
|
|
45
|
+
* templatesOnly: true,
|
|
46
|
+
* name: "name",
|
|
47
|
+
* identityId: "identity_id",
|
|
48
|
+
* projectId: "project_id",
|
|
49
|
+
* limit: 1,
|
|
50
|
+
* before: "before",
|
|
51
|
+
* after: "after",
|
|
52
|
+
* order: "asc",
|
|
53
|
+
* orderBy: "created_at",
|
|
54
|
+
* labelSearch: "label_search",
|
|
55
|
+
* descriptionSearch: "description_search",
|
|
56
|
+
* valueSearch: "value_search",
|
|
57
|
+
* connectedToAgentsCountGt: 1,
|
|
58
|
+
* connectedToAgentsCountLt: 1
|
|
59
|
+
* })
|
|
44
60
|
*/
|
|
45
61
|
list(request?: Letta.BlocksListRequest, requestOptions?: Blocks.RequestOptions): core.HttpResponsePromise<Letta.Block[]>;
|
|
46
62
|
private __list;
|
|
@@ -71,7 +71,23 @@ class Blocks {
|
|
|
71
71
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
72
72
|
*
|
|
73
73
|
* @example
|
|
74
|
-
* await client.blocks.list(
|
|
74
|
+
* await client.blocks.list({
|
|
75
|
+
* label: "label",
|
|
76
|
+
* templatesOnly: true,
|
|
77
|
+
* name: "name",
|
|
78
|
+
* identityId: "identity_id",
|
|
79
|
+
* projectId: "project_id",
|
|
80
|
+
* limit: 1,
|
|
81
|
+
* before: "before",
|
|
82
|
+
* after: "after",
|
|
83
|
+
* order: "asc",
|
|
84
|
+
* orderBy: "created_at",
|
|
85
|
+
* labelSearch: "label_search",
|
|
86
|
+
* descriptionSearch: "description_search",
|
|
87
|
+
* valueSearch: "value_search",
|
|
88
|
+
* connectedToAgentsCountGt: 1,
|
|
89
|
+
* connectedToAgentsCountLt: 1
|
|
90
|
+
* })
|
|
75
91
|
*/
|
|
76
92
|
list(request = {}, requestOptions) {
|
|
77
93
|
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
@@ -149,7 +165,7 @@ class Blocks {
|
|
|
149
165
|
method: "GET",
|
|
150
166
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
151
167
|
? yield core.Supplier.get(this._options.project)
|
|
152
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
168
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "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),
|
|
153
169
|
contentType: "application/json",
|
|
154
170
|
queryParameters: _queryParams,
|
|
155
171
|
requestType: "json",
|
|
@@ -227,7 +243,7 @@ class Blocks {
|
|
|
227
243
|
method: "POST",
|
|
228
244
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
229
245
|
? yield core.Supplier.get(this._options.project)
|
|
230
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
246
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "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),
|
|
231
247
|
contentType: "application/json",
|
|
232
248
|
requestType: "json",
|
|
233
249
|
body: serializers.CreateBlock.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -303,7 +319,7 @@ class Blocks {
|
|
|
303
319
|
method: "GET",
|
|
304
320
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
305
321
|
? yield core.Supplier.get(this._options.project)
|
|
306
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
322
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "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),
|
|
307
323
|
contentType: "application/json",
|
|
308
324
|
requestType: "json",
|
|
309
325
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -377,7 +393,7 @@ class Blocks {
|
|
|
377
393
|
method: "GET",
|
|
378
394
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
379
395
|
? yield core.Supplier.get(this._options.project)
|
|
380
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
396
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "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),
|
|
381
397
|
contentType: "application/json",
|
|
382
398
|
requestType: "json",
|
|
383
399
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -451,7 +467,7 @@ class Blocks {
|
|
|
451
467
|
method: "DELETE",
|
|
452
468
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
453
469
|
? yield core.Supplier.get(this._options.project)
|
|
454
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
470
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "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),
|
|
455
471
|
contentType: "application/json",
|
|
456
472
|
requestType: "json",
|
|
457
473
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -517,7 +533,7 @@ class Blocks {
|
|
|
517
533
|
method: "PATCH",
|
|
518
534
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
519
535
|
? yield core.Supplier.get(this._options.project)
|
|
520
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
536
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "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),
|
|
521
537
|
contentType: "application/json",
|
|
522
538
|
requestType: "json",
|
|
523
539
|
body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -4,7 +4,23 @@
|
|
|
4
4
|
import * as Letta from "../../../../index";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
|
-
* {
|
|
7
|
+
* {
|
|
8
|
+
* label: "label",
|
|
9
|
+
* templatesOnly: true,
|
|
10
|
+
* name: "name",
|
|
11
|
+
* identityId: "identity_id",
|
|
12
|
+
* projectId: "project_id",
|
|
13
|
+
* limit: 1,
|
|
14
|
+
* before: "before",
|
|
15
|
+
* after: "after",
|
|
16
|
+
* order: "asc",
|
|
17
|
+
* orderBy: "created_at",
|
|
18
|
+
* labelSearch: "label_search",
|
|
19
|
+
* descriptionSearch: "description_search",
|
|
20
|
+
* valueSearch: "value_search",
|
|
21
|
+
* connectedToAgentsCountGt: 1,
|
|
22
|
+
* connectedToAgentsCountLt: 1
|
|
23
|
+
* }
|
|
8
24
|
*/
|
|
9
25
|
export interface BlocksListRequest {
|
|
10
26
|
/**
|
|
@@ -41,7 +41,13 @@ export declare class Agents {
|
|
|
41
41
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
44
|
-
* await client.blocks.agents.list("block_id"
|
|
44
|
+
* await client.blocks.agents.list("block_id", {
|
|
45
|
+
* before: "before",
|
|
46
|
+
* after: "after",
|
|
47
|
+
* limit: 1,
|
|
48
|
+
* order: "asc",
|
|
49
|
+
* orderBy: "created_at"
|
|
50
|
+
* })
|
|
45
51
|
*/
|
|
46
52
|
list(blockId: string, request?: Letta.blocks.AgentsListRequest, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Letta.AgentState[]>;
|
|
47
53
|
private __list;
|
|
@@ -70,7 +70,13 @@ class Agents {
|
|
|
70
70
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
71
71
|
*
|
|
72
72
|
* @example
|
|
73
|
-
* await client.blocks.agents.list("block_id"
|
|
73
|
+
* await client.blocks.agents.list("block_id", {
|
|
74
|
+
* before: "before",
|
|
75
|
+
* after: "after",
|
|
76
|
+
* limit: 1,
|
|
77
|
+
* order: "asc",
|
|
78
|
+
* orderBy: "created_at"
|
|
79
|
+
* })
|
|
74
80
|
*/
|
|
75
81
|
list(blockId, request = {}, requestOptions) {
|
|
76
82
|
return core.HttpResponsePromise.fromPromise(this.__list(blockId, request, requestOptions));
|
|
@@ -110,7 +116,7 @@ class Agents {
|
|
|
110
116
|
method: "GET",
|
|
111
117
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
112
118
|
? yield core.Supplier.get(this._options.project)
|
|
113
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
119
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "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),
|
|
114
120
|
contentType: "application/json",
|
|
115
121
|
queryParameters: _queryParams,
|
|
116
122
|
requestType: "json",
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import * as Letta from "../../../index";
|
|
7
|
+
export declare namespace Chat {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.LettaEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<string | undefined>;
|
|
13
|
+
/** Override the X-Project header */
|
|
14
|
+
project?: core.Supplier<string | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Override the X-Project header */
|
|
25
|
+
project?: string | undefined;
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class Chat {
|
|
31
|
+
protected readonly _options: Chat.Options;
|
|
32
|
+
constructor(_options?: Chat.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Create a chat completion using a Letta agent (OpenAI-compatible).
|
|
35
|
+
*
|
|
36
|
+
* This endpoint provides full OpenAI API compatibility. The agent is selected based on:
|
|
37
|
+
* - The 'model' parameter in the request (should contain an agent ID in format 'agent-...')
|
|
38
|
+
*
|
|
39
|
+
* When streaming is enabled (stream=true), the response will be Server-Sent Events
|
|
40
|
+
* with ChatCompletionChunk objects.
|
|
41
|
+
*
|
|
42
|
+
* @param {Letta.ChatCompletionRequest} request
|
|
43
|
+
* @param {Chat.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
|
+
*
|
|
45
|
+
* @throws {@link Letta.UnprocessableEntityError}
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* await client.chat.createChatCompletion({
|
|
49
|
+
* model: "model",
|
|
50
|
+
* messages: [{
|
|
51
|
+
* content: "content",
|
|
52
|
+
* role: "developer"
|
|
53
|
+
* }]
|
|
54
|
+
* })
|
|
55
|
+
*/
|
|
56
|
+
createChatCompletion(request: Letta.ChatCompletionRequest, requestOptions?: Chat.RequestOptions): core.HttpResponsePromise<Letta.ChatCompletion>;
|
|
57
|
+
private __createChatCompletion;
|
|
58
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
59
|
+
Authorization: string;
|
|
60
|
+
}>;
|
|
61
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
+
};
|
|
50
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
+
exports.Chat = void 0;
|
|
52
|
+
const environments = __importStar(require("../../../../environments"));
|
|
53
|
+
const core = __importStar(require("../../../../core"));
|
|
54
|
+
const Letta = __importStar(require("../../../index"));
|
|
55
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
56
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
57
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
58
|
+
class Chat {
|
|
59
|
+
constructor(_options = {}) {
|
|
60
|
+
this._options = _options;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Create a chat completion using a Letta agent (OpenAI-compatible).
|
|
64
|
+
*
|
|
65
|
+
* This endpoint provides full OpenAI API compatibility. The agent is selected based on:
|
|
66
|
+
* - The 'model' parameter in the request (should contain an agent ID in format 'agent-...')
|
|
67
|
+
*
|
|
68
|
+
* When streaming is enabled (stream=true), the response will be Server-Sent Events
|
|
69
|
+
* with ChatCompletionChunk objects.
|
|
70
|
+
*
|
|
71
|
+
* @param {Letta.ChatCompletionRequest} request
|
|
72
|
+
* @param {Chat.RequestOptions} requestOptions - Request-specific configuration.
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link Letta.UnprocessableEntityError}
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* await client.chat.createChatCompletion({
|
|
78
|
+
* model: "model",
|
|
79
|
+
* messages: [{
|
|
80
|
+
* content: "content",
|
|
81
|
+
* role: "developer"
|
|
82
|
+
* }]
|
|
83
|
+
* })
|
|
84
|
+
*/
|
|
85
|
+
createChatCompletion(request, requestOptions) {
|
|
86
|
+
return core.HttpResponsePromise.fromPromise(this.__createChatCompletion(request, requestOptions));
|
|
87
|
+
}
|
|
88
|
+
__createChatCompletion(request, requestOptions) {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
var _a, _b, _c;
|
|
91
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
92
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/chat/completions"),
|
|
93
|
+
method: "POST",
|
|
94
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
95
|
+
? yield core.Supplier.get(this._options.project)
|
|
96
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "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),
|
|
97
|
+
contentType: "application/json",
|
|
98
|
+
requestType: "json",
|
|
99
|
+
body: serializers.ChatCompletionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
100
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
101
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
102
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
103
|
+
});
|
|
104
|
+
if (_response.ok) {
|
|
105
|
+
return {
|
|
106
|
+
data: serializers.ChatCompletion.parseOrThrow(_response.body, {
|
|
107
|
+
unrecognizedObjectKeys: "passthrough",
|
|
108
|
+
allowUnrecognizedUnionMembers: true,
|
|
109
|
+
allowUnrecognizedEnumValues: true,
|
|
110
|
+
skipValidation: true,
|
|
111
|
+
breadcrumbsPrefix: ["response"],
|
|
112
|
+
}),
|
|
113
|
+
rawResponse: _response.rawResponse,
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
if (_response.error.reason === "status-code") {
|
|
117
|
+
switch (_response.error.statusCode) {
|
|
118
|
+
case 422:
|
|
119
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
120
|
+
unrecognizedObjectKeys: "passthrough",
|
|
121
|
+
allowUnrecognizedUnionMembers: true,
|
|
122
|
+
allowUnrecognizedEnumValues: true,
|
|
123
|
+
skipValidation: true,
|
|
124
|
+
breadcrumbsPrefix: ["response"],
|
|
125
|
+
}), _response.rawResponse);
|
|
126
|
+
default:
|
|
127
|
+
throw new errors.LettaError({
|
|
128
|
+
statusCode: _response.error.statusCode,
|
|
129
|
+
body: _response.error.body,
|
|
130
|
+
rawResponse: _response.rawResponse,
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
switch (_response.error.reason) {
|
|
135
|
+
case "non-json":
|
|
136
|
+
throw new errors.LettaError({
|
|
137
|
+
statusCode: _response.error.statusCode,
|
|
138
|
+
body: _response.error.rawBody,
|
|
139
|
+
rawResponse: _response.rawResponse,
|
|
140
|
+
});
|
|
141
|
+
case "timeout":
|
|
142
|
+
throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/chat/completions.");
|
|
143
|
+
case "unknown":
|
|
144
|
+
throw new errors.LettaError({
|
|
145
|
+
message: _response.error.errorMessage,
|
|
146
|
+
rawResponse: _response.rawResponse,
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
_getCustomAuthorizationHeaders() {
|
|
152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
const tokenValue = yield core.Supplier.get(this._options.token);
|
|
154
|
+
return { Authorization: `Bearer ${tokenValue}` };
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
exports.Chat = Chat;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* model: "model",
|
|
9
|
+
* messages: [{
|
|
10
|
+
* content: "content",
|
|
11
|
+
* role: "developer"
|
|
12
|
+
* }]
|
|
13
|
+
* }
|
|
14
|
+
*/
|
|
15
|
+
export interface ChatCompletionRequest {
|
|
16
|
+
/** ID of the model to use */
|
|
17
|
+
model: string;
|
|
18
|
+
/** Messages comprising the conversation so far */
|
|
19
|
+
messages: Letta.ChatCompletionRequestMessagesItem[];
|
|
20
|
+
/** Sampling temperature */
|
|
21
|
+
temperature?: number;
|
|
22
|
+
/** Nucleus sampling parameter */
|
|
23
|
+
topP?: number;
|
|
24
|
+
/** Number of chat completion choices to generate */
|
|
25
|
+
n?: number;
|
|
26
|
+
/** Whether to stream back partial progress */
|
|
27
|
+
stream?: boolean;
|
|
28
|
+
/** Sequences where the API will stop generating */
|
|
29
|
+
stop?: Letta.ChatCompletionRequestStop;
|
|
30
|
+
/** Maximum number of tokens to generate */
|
|
31
|
+
maxTokens?: number;
|
|
32
|
+
/** Presence penalty */
|
|
33
|
+
presencePenalty?: number;
|
|
34
|
+
/** Frequency penalty */
|
|
35
|
+
frequencyPenalty?: number;
|
|
36
|
+
/** A unique identifier representing your end-user */
|
|
37
|
+
user?: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type ChatCompletionRequest } from "./ChatCompletionRequest";
|
|
@@ -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 ChatCompletionRequestMessagesItem = Letta.ChatCompletionDeveloperMessageParam | Letta.ChatCompletionSystemMessageParam | Letta.ChatCompletionUserMessageParam | Letta.ChatCompletionAssistantMessageParam | Letta.ChatCompletionToolMessageParam | Letta.ChatCompletionFunctionMessageParam;
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./ChatCompletionRequestMessagesItem"), exports);
|
|
18
|
+
__exportStar(require("./ChatCompletionRequestStop"), exports);
|
|
@@ -39,7 +39,11 @@ export declare class ClientSideAccessTokens {
|
|
|
39
39
|
* @throws {@link Letta.BadRequestError}
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
|
-
* await client.clientSideAccessTokens.clientSideAccessTokensListClientSideAccessTokens(
|
|
42
|
+
* await client.clientSideAccessTokens.clientSideAccessTokensListClientSideAccessTokens({
|
|
43
|
+
* agentId: "agentId",
|
|
44
|
+
* offset: 1.1,
|
|
45
|
+
* limit: 1.1
|
|
46
|
+
* })
|
|
43
47
|
*/
|
|
44
48
|
clientSideAccessTokensListClientSideAccessTokens(request?: Letta.ClientSideAccessTokensListClientSideAccessTokensRequest, requestOptions?: ClientSideAccessTokens.RequestOptions): core.HttpResponsePromise<Letta.ClientSideAccessTokensListClientSideAccessTokensResponse>;
|
|
45
49
|
private __clientSideAccessTokensListClientSideAccessTokens;
|
|
@@ -68,7 +68,11 @@ class ClientSideAccessTokens {
|
|
|
68
68
|
* @throws {@link Letta.BadRequestError}
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
|
-
* await client.clientSideAccessTokens.clientSideAccessTokensListClientSideAccessTokens(
|
|
71
|
+
* await client.clientSideAccessTokens.clientSideAccessTokensListClientSideAccessTokens({
|
|
72
|
+
* agentId: "agentId",
|
|
73
|
+
* offset: 1.1,
|
|
74
|
+
* limit: 1.1
|
|
75
|
+
* })
|
|
72
76
|
*/
|
|
73
77
|
clientSideAccessTokensListClientSideAccessTokens(request = {}, requestOptions) {
|
|
74
78
|
return core.HttpResponsePromise.fromPromise(this.__clientSideAccessTokensListClientSideAccessTokens(request, requestOptions));
|
|
@@ -92,7 +96,7 @@ class ClientSideAccessTokens {
|
|
|
92
96
|
method: "GET",
|
|
93
97
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
94
98
|
? yield core.Supplier.get(this._options.project)
|
|
95
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
99
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "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),
|
|
96
100
|
contentType: "application/json",
|
|
97
101
|
queryParameters: _queryParams,
|
|
98
102
|
requestType: "json",
|
|
@@ -170,7 +174,7 @@ class ClientSideAccessTokens {
|
|
|
170
174
|
method: "POST",
|
|
171
175
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
172
176
|
? yield core.Supplier.get(this._options.project)
|
|
173
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
177
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "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),
|
|
174
178
|
contentType: "application/json",
|
|
175
179
|
requestType: "json",
|
|
176
180
|
body: serializers.ClientSideAccessTokensCreateRequest.jsonOrThrow(request, {
|
|
@@ -246,7 +250,7 @@ class ClientSideAccessTokens {
|
|
|
246
250
|
method: "DELETE",
|
|
247
251
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
248
252
|
? yield core.Supplier.get(this._options.project)
|
|
249
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
253
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "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),
|
|
250
254
|
contentType: "application/json",
|
|
251
255
|
requestType: "json",
|
|
252
256
|
body: request,
|
|
@@ -122,7 +122,9 @@ export declare class Folders {
|
|
|
122
122
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
123
123
|
*
|
|
124
124
|
* @example
|
|
125
|
-
* await client.folders.retrieveMetadata(
|
|
125
|
+
* await client.folders.retrieveMetadata({
|
|
126
|
+
* includeDetailedPerSourceMetadata: true
|
|
127
|
+
* })
|
|
126
128
|
*/
|
|
127
129
|
retrieveMetadata(request?: Letta.RetrieveMetadataRequest, requestOptions?: Folders.RequestOptions): core.HttpResponsePromise<Letta.OrganizationSourcesStats>;
|
|
128
130
|
private __retrieveMetadata;
|
|
@@ -135,7 +137,14 @@ export declare class Folders {
|
|
|
135
137
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
136
138
|
*
|
|
137
139
|
* @example
|
|
138
|
-
* await client.folders.list(
|
|
140
|
+
* await client.folders.list({
|
|
141
|
+
* before: "before",
|
|
142
|
+
* after: "after",
|
|
143
|
+
* limit: 1,
|
|
144
|
+
* order: "asc",
|
|
145
|
+
* orderBy: "created_at",
|
|
146
|
+
* name: "name"
|
|
147
|
+
* })
|
|
139
148
|
*/
|
|
140
149
|
list(request?: Letta.FoldersListRequest, requestOptions?: Folders.RequestOptions): core.HttpResponsePromise<Letta.Folder[]>;
|
|
141
150
|
private __list;
|