@letta-ai/letta-client 0.1.130 → 0.1.132
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/agents/client/Client.js +14 -11
- package/api/resources/agents/client/requests/AgentsListRequest.d.ts +4 -0
- package/api/resources/agents/client/requests/AgentsSearchRequest.d.ts +2 -0
- package/api/resources/agents/client/requests/UpdateAgent.d.ts +4 -0
- package/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.d.ts +2 -2
- package/api/resources/agents/resources/messages/client/Client.js +8 -8
- package/api/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +32 -0
- package/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
- package/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/agents/types/AgentsSearchRequestSortBy.d.ts +8 -0
- package/api/resources/agents/types/AgentsSearchRequestSortBy.js +10 -0
- package/api/resources/agents/types/index.d.ts +1 -0
- package/api/resources/agents/types/index.js +1 -0
- package/api/resources/batches/client/Client.js +4 -4
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
- package/api/resources/embeddingModels/client/Client.js +1 -1
- package/api/resources/groups/client/Client.js +6 -6
- package/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +7 -7
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/index.d.ts +1 -2
- package/api/resources/index.js +2 -3
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/messages/client/Client.js +1 -1
- package/api/resources/models/client/Client.js +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.d.ts +2 -6
- package/api/resources/providers/client/Client.js +7 -15
- package/api/resources/providers/client/requests/ProviderCreate.d.ts +5 -1
- package/api/resources/providers/client/requests/ProviderUpdate.d.ts +5 -1
- package/api/resources/providers/client/requests/index.d.ts +0 -1
- package/api/resources/runs/client/Client.js +4 -4
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/sources/client/Client.js +7 -7
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/steps/client/Client.js +2 -2
- package/api/resources/tags/client/Client.js +1 -1
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/tools/client/Client.d.ts +13 -0
- package/api/resources/tools/client/Client.js +84 -17
- package/api/resources/tools/types/AddMcpServerRequest.d.ts +1 -1
- package/api/resources/tools/types/AddMcpServerResponseItem.d.ts +1 -1
- package/api/resources/tools/types/DeleteMcpServerResponseItem.d.ts +1 -1
- package/api/resources/tools/types/ListMcpServersResponseValue.d.ts +1 -1
- package/api/resources/tools/types/UpdateMcpServerRequest.d.ts +5 -0
- package/api/resources/tools/types/UpdateMcpServerResponse.d.ts +5 -0
- package/api/resources/tools/types/index.d.ts +2 -0
- package/api/resources/tools/types/index.js +2 -0
- package/api/resources/voice/client/Client.d.ts +1 -5
- package/api/resources/voice/client/Client.js +3 -7
- package/api/resources/voice/client/requests/CreateVoiceChatCompletionsRequest.d.ts +2 -7
- package/api/resources/voice/index.d.ts +0 -1
- package/api/resources/voice/index.js +0 -1
- package/api/types/AgentState.d.ts +4 -0
- package/api/types/BatchJob.d.ts +2 -0
- package/api/types/Job.d.ts +2 -0
- package/api/types/LettaRequestConfig.d.ts +3 -0
- package/api/types/LettaResponse.d.ts +1 -0
- package/api/types/LettaStopReason.d.ts +3 -2
- package/api/types/McpServerType.d.ts +2 -1
- package/api/types/McpServerType.js +1 -0
- package/api/types/McpTool.d.ts +2 -0
- package/api/types/Provider.d.ts +5 -1
- package/api/types/ProviderCheck.d.ts +14 -0
- package/api/types/ProviderType.d.ts +2 -2
- package/api/types/ProviderType.js +1 -1
- package/api/types/Run.d.ts +2 -0
- package/api/types/SseServerConfig.d.ts +16 -0
- package/{dist/api/types/LettaStopReasonStopReason.d.ts → api/types/StopReasonType.d.ts} +3 -2
- package/{dist/api/types/LettaStopReasonStopReason.js → api/types/StopReasonType.js} +3 -2
- package/api/types/StreamableHttpServerConfig.d.ts +27 -0
- package/api/types/StreamableHttpServerConfig.js +5 -0
- package/api/types/ToolAnnotations.d.ts +22 -0
- package/api/types/ToolAnnotations.js +5 -0
- package/api/types/UpdateSsemcpServer.d.ts +14 -0
- package/api/types/UpdateSsemcpServer.js +5 -0
- package/api/types/UpdateStreamableHttpmcpServer.d.ts +16 -0
- package/api/types/UpdateStreamableHttpmcpServer.js +5 -0
- package/api/types/index.d.ts +7 -2
- package/api/types/index.js +7 -2
- package/dist/api/resources/agents/client/Client.js +14 -11
- package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +4 -0
- package/dist/api/resources/agents/client/requests/AgentsSearchRequest.d.ts +2 -0
- package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +4 -0
- package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.d.ts +2 -2
- package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
- package/dist/api/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +32 -0
- package/dist/api/resources/agents/resources/messages/client/requests/LettaAsyncRequest.js +5 -0
- package/dist/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/agents/types/AgentsSearchRequestSortBy.d.ts +8 -0
- package/dist/api/resources/agents/types/AgentsSearchRequestSortBy.js +10 -0
- package/dist/api/resources/agents/types/index.d.ts +1 -0
- package/dist/api/resources/agents/types/index.js +1 -0
- package/dist/api/resources/batches/client/Client.js +4 -4
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
- package/dist/api/resources/embeddingModels/client/Client.js +1 -1
- package/dist/api/resources/groups/client/Client.js +6 -6
- package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +7 -7
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +1 -2
- package/dist/api/resources/index.js +2 -3
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/models/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.d.ts +2 -6
- package/dist/api/resources/providers/client/Client.js +7 -15
- package/dist/api/resources/providers/client/requests/ProviderCreate.d.ts +5 -1
- package/dist/api/resources/providers/client/requests/ProviderUpdate.d.ts +5 -1
- package/dist/api/resources/providers/client/requests/index.d.ts +0 -1
- package/dist/api/resources/runs/client/Client.js +4 -4
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.js +7 -7
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/steps/client/Client.js +2 -2
- package/dist/api/resources/tags/client/Client.js +1 -1
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.d.ts +13 -0
- package/dist/api/resources/tools/client/Client.js +84 -17
- package/dist/api/resources/tools/types/AddMcpServerRequest.d.ts +1 -1
- package/dist/api/resources/tools/types/AddMcpServerResponseItem.d.ts +1 -1
- package/dist/api/resources/tools/types/DeleteMcpServerResponseItem.d.ts +1 -1
- package/dist/api/resources/tools/types/ListMcpServersResponseValue.d.ts +1 -1
- package/dist/api/resources/tools/types/UpdateMcpServerRequest.d.ts +5 -0
- package/dist/api/resources/tools/types/UpdateMcpServerRequest.js +5 -0
- package/dist/api/resources/tools/types/UpdateMcpServerResponse.d.ts +5 -0
- package/dist/api/resources/tools/types/UpdateMcpServerResponse.js +5 -0
- package/dist/api/resources/tools/types/index.d.ts +2 -0
- package/dist/api/resources/tools/types/index.js +2 -0
- package/dist/api/resources/voice/client/Client.d.ts +1 -5
- package/dist/api/resources/voice/client/Client.js +3 -7
- package/dist/api/resources/voice/client/requests/CreateVoiceChatCompletionsRequest.d.ts +2 -7
- package/dist/api/resources/voice/index.d.ts +0 -1
- package/dist/api/resources/voice/index.js +0 -1
- package/dist/api/types/AgentState.d.ts +4 -0
- package/dist/api/types/BatchJob.d.ts +2 -0
- package/dist/api/types/Job.d.ts +2 -0
- package/dist/api/types/LettaRequestConfig.d.ts +3 -0
- package/dist/api/types/LettaResponse.d.ts +1 -0
- package/dist/api/types/LettaStopReason.d.ts +3 -2
- package/dist/api/types/McpServerType.d.ts +2 -1
- package/dist/api/types/McpServerType.js +1 -0
- package/dist/api/types/McpTool.d.ts +2 -0
- package/dist/api/types/Provider.d.ts +5 -1
- package/dist/api/types/ProviderCheck.d.ts +14 -0
- package/dist/api/types/ProviderCheck.js +5 -0
- package/dist/api/types/ProviderType.d.ts +2 -2
- package/dist/api/types/ProviderType.js +1 -1
- package/dist/api/types/Run.d.ts +2 -0
- package/dist/api/types/SseServerConfig.d.ts +16 -0
- package/{api/types/LettaStopReasonStopReason.d.ts → dist/api/types/StopReasonType.d.ts} +3 -2
- package/{api/types/LettaStopReasonStopReason.js → dist/api/types/StopReasonType.js} +3 -2
- package/dist/api/types/StreamableHttpServerConfig.d.ts +27 -0
- package/dist/api/types/StreamableHttpServerConfig.js +5 -0
- package/dist/api/types/ToolAnnotations.d.ts +22 -0
- package/dist/api/types/ToolAnnotations.js +5 -0
- package/dist/api/types/UpdateSsemcpServer.d.ts +14 -0
- package/dist/api/types/UpdateSsemcpServer.js +5 -0
- package/dist/api/types/UpdateStreamableHttpmcpServer.d.ts +16 -0
- package/dist/api/types/UpdateStreamableHttpmcpServer.js +5 -0
- package/dist/api/types/index.d.ts +7 -2
- package/dist/api/types/index.js +7 -2
- package/dist/serialization/resources/agents/client/requests/AgentsSearchRequest.d.ts +3 -0
- package/dist/serialization/resources/agents/client/requests/AgentsSearchRequest.js +3 -0
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +2 -0
- package/dist/serialization/resources/agents/resources/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/index.js +1 -0
- package/dist/serialization/resources/agents/resources/messages/client/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/messages/client/index.js +4 -0
- package/dist/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +20 -0
- package/dist/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.js +51 -0
- package/dist/serialization/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/messages/client/requests/index.js +5 -0
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSortBy.d.ts +10 -0
- package/dist/serialization/resources/{voice/types/CreateVoiceChatCompletionsRequestBody.js → agents/types/AgentsSearchRequestSortBy.js} +2 -4
- package/dist/serialization/resources/agents/types/index.d.ts +1 -0
- package/dist/serialization/resources/agents/types/index.js +1 -0
- package/dist/serialization/resources/index.d.ts +1 -2
- package/dist/serialization/resources/index.js +2 -3
- package/dist/serialization/resources/providers/client/requests/ProviderCreate.d.ts +2 -0
- package/dist/serialization/resources/providers/client/requests/ProviderCreate.js +2 -0
- package/dist/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +2 -0
- package/dist/serialization/resources/providers/client/requests/ProviderUpdate.js +2 -0
- package/dist/serialization/resources/tools/types/AddMcpServerRequest.d.ts +2 -1
- package/dist/serialization/resources/tools/types/AddMcpServerRequest.js +2 -1
- package/dist/serialization/resources/tools/types/AddMcpServerResponseItem.d.ts +2 -1
- package/dist/serialization/resources/tools/types/AddMcpServerResponseItem.js +2 -1
- package/dist/serialization/resources/tools/types/DeleteMcpServerResponseItem.d.ts +2 -1
- package/dist/serialization/resources/tools/types/DeleteMcpServerResponseItem.js +2 -1
- package/dist/serialization/resources/tools/types/ListMcpServersResponseValue.d.ts +2 -1
- package/dist/serialization/resources/tools/types/ListMcpServersResponseValue.js +2 -1
- package/dist/serialization/resources/tools/types/UpdateMcpServerRequest.d.ts +12 -0
- package/{serialization/resources/voice/types/CreateVoiceChatCompletionsRequestBody.js → dist/serialization/resources/tools/types/UpdateMcpServerRequest.js} +4 -4
- package/dist/serialization/resources/tools/types/UpdateMcpServerResponse.d.ts +13 -0
- package/dist/serialization/resources/tools/types/UpdateMcpServerResponse.js +44 -0
- package/dist/serialization/resources/tools/types/index.d.ts +2 -0
- package/dist/serialization/resources/tools/types/index.js +2 -0
- package/dist/serialization/resources/voice/client/createVoiceChatCompletions.d.ts +9 -0
- package/dist/serialization/resources/voice/client/createVoiceChatCompletions.js +41 -0
- package/dist/serialization/resources/voice/client/index.d.ts +1 -0
- package/dist/serialization/resources/voice/client/index.js +37 -0
- package/dist/serialization/resources/voice/index.d.ts +1 -1
- package/dist/serialization/resources/voice/index.js +1 -1
- package/dist/serialization/types/AgentState.d.ts +2 -0
- package/dist/serialization/types/AgentState.js +2 -0
- package/dist/serialization/types/BatchJob.d.ts +1 -0
- package/dist/serialization/types/BatchJob.js +1 -0
- package/dist/serialization/types/Job.d.ts +1 -0
- package/dist/serialization/types/Job.js +1 -0
- package/dist/serialization/types/LettaRequestConfig.d.ts +2 -0
- package/dist/serialization/types/LettaRequestConfig.js +2 -0
- package/dist/serialization/types/LettaResponse.d.ts +2 -0
- package/dist/serialization/types/LettaResponse.js +2 -0
- package/dist/serialization/types/LettaStopReason.d.ts +2 -2
- package/dist/serialization/types/LettaStopReason.js +2 -2
- package/dist/serialization/types/McpServerType.d.ts +1 -1
- package/dist/serialization/types/McpServerType.js +1 -1
- package/dist/serialization/types/McpTool.d.ts +2 -0
- package/dist/serialization/types/McpTool.js +2 -0
- package/dist/serialization/types/Provider.d.ts +2 -0
- package/dist/serialization/types/Provider.js +2 -0
- package/dist/serialization/types/ProviderCheck.d.ts +16 -0
- package/dist/serialization/types/ProviderCheck.js +47 -0
- package/dist/serialization/types/ProviderType.d.ts +1 -1
- package/dist/serialization/types/ProviderType.js +1 -1
- package/dist/serialization/types/Run.d.ts +1 -0
- package/dist/serialization/types/Run.js +1 -0
- package/dist/serialization/types/SseServerConfig.d.ts +3 -0
- package/dist/serialization/types/SseServerConfig.js +3 -0
- package/dist/serialization/types/{LettaStopReasonStopReason.d.ts → StopReasonType.d.ts} +3 -3
- package/dist/serialization/types/{LettaStopReasonStopReason.js → StopReasonType.js} +2 -2
- package/dist/serialization/types/StreamableHttpServerConfig.d.ts +18 -0
- package/dist/serialization/types/StreamableHttpServerConfig.js +49 -0
- package/dist/serialization/types/ToolAnnotations.d.ts +17 -0
- package/dist/serialization/types/ToolAnnotations.js +49 -0
- package/dist/serialization/types/UpdateSsemcpServer.d.ts +14 -0
- package/dist/serialization/types/UpdateSsemcpServer.js +45 -0
- package/dist/serialization/types/UpdateStreamableHttpmcpServer.d.ts +15 -0
- package/dist/serialization/types/UpdateStreamableHttpmcpServer.js +46 -0
- package/dist/serialization/types/index.d.ts +7 -2
- package/dist/serialization/types/index.js +7 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +75 -21
- package/serialization/resources/agents/client/requests/AgentsSearchRequest.d.ts +3 -0
- package/serialization/resources/agents/client/requests/AgentsSearchRequest.js +3 -0
- package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
- package/serialization/resources/agents/client/requests/UpdateAgent.js +2 -0
- package/serialization/resources/agents/resources/index.d.ts +1 -0
- package/serialization/resources/agents/resources/index.js +1 -0
- package/serialization/resources/agents/resources/messages/client/index.d.ts +1 -0
- package/serialization/resources/agents/resources/messages/client/index.js +4 -0
- package/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +20 -0
- package/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.js +51 -0
- package/serialization/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
- package/serialization/resources/agents/resources/messages/client/requests/index.js +5 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSortBy.d.ts +10 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSortBy.js +41 -0
- package/serialization/resources/agents/types/index.d.ts +1 -0
- package/serialization/resources/agents/types/index.js +1 -0
- package/serialization/resources/index.d.ts +1 -2
- package/serialization/resources/index.js +2 -3
- package/serialization/resources/providers/client/requests/ProviderCreate.d.ts +2 -0
- package/serialization/resources/providers/client/requests/ProviderCreate.js +2 -0
- package/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +2 -0
- package/serialization/resources/providers/client/requests/ProviderUpdate.js +2 -0
- package/serialization/resources/tools/types/AddMcpServerRequest.d.ts +2 -1
- package/serialization/resources/tools/types/AddMcpServerRequest.js +2 -1
- package/serialization/resources/tools/types/AddMcpServerResponseItem.d.ts +2 -1
- package/serialization/resources/tools/types/AddMcpServerResponseItem.js +2 -1
- package/serialization/resources/tools/types/DeleteMcpServerResponseItem.d.ts +2 -1
- package/serialization/resources/tools/types/DeleteMcpServerResponseItem.js +2 -1
- package/serialization/resources/tools/types/ListMcpServersResponseValue.d.ts +2 -1
- package/serialization/resources/tools/types/ListMcpServersResponseValue.js +2 -1
- package/serialization/resources/tools/types/UpdateMcpServerRequest.d.ts +12 -0
- package/serialization/resources/tools/types/UpdateMcpServerRequest.js +43 -0
- package/serialization/resources/tools/types/UpdateMcpServerResponse.d.ts +13 -0
- package/serialization/resources/tools/types/UpdateMcpServerResponse.js +44 -0
- package/serialization/resources/tools/types/index.d.ts +2 -0
- package/serialization/resources/tools/types/index.js +2 -0
- package/serialization/resources/voice/client/createVoiceChatCompletions.d.ts +9 -0
- package/serialization/resources/voice/client/createVoiceChatCompletions.js +41 -0
- package/serialization/resources/voice/client/index.d.ts +1 -0
- package/serialization/resources/voice/client/index.js +37 -0
- package/serialization/resources/voice/index.d.ts +1 -1
- package/serialization/resources/voice/index.js +1 -1
- package/serialization/types/AgentState.d.ts +2 -0
- package/serialization/types/AgentState.js +2 -0
- package/serialization/types/BatchJob.d.ts +1 -0
- package/serialization/types/BatchJob.js +1 -0
- package/serialization/types/Job.d.ts +1 -0
- package/serialization/types/Job.js +1 -0
- package/serialization/types/LettaRequestConfig.d.ts +2 -0
- package/serialization/types/LettaRequestConfig.js +2 -0
- package/serialization/types/LettaResponse.d.ts +2 -0
- package/serialization/types/LettaResponse.js +2 -0
- package/serialization/types/LettaStopReason.d.ts +2 -2
- package/serialization/types/LettaStopReason.js +2 -2
- package/serialization/types/McpServerType.d.ts +1 -1
- package/serialization/types/McpServerType.js +1 -1
- package/serialization/types/McpTool.d.ts +2 -0
- package/serialization/types/McpTool.js +2 -0
- package/serialization/types/Provider.d.ts +2 -0
- package/serialization/types/Provider.js +2 -0
- package/serialization/types/ProviderCheck.d.ts +16 -0
- package/serialization/types/ProviderCheck.js +47 -0
- package/serialization/types/ProviderType.d.ts +1 -1
- package/serialization/types/ProviderType.js +1 -1
- package/serialization/types/Run.d.ts +1 -0
- package/serialization/types/Run.js +1 -0
- package/serialization/types/SseServerConfig.d.ts +3 -0
- package/serialization/types/SseServerConfig.js +3 -0
- package/serialization/types/{LettaStopReasonStopReason.d.ts → StopReasonType.d.ts} +3 -3
- package/serialization/types/{LettaStopReasonStopReason.js → StopReasonType.js} +2 -2
- package/serialization/types/StreamableHttpServerConfig.d.ts +18 -0
- package/serialization/types/StreamableHttpServerConfig.js +49 -0
- package/serialization/types/ToolAnnotations.d.ts +17 -0
- package/serialization/types/ToolAnnotations.js +49 -0
- package/serialization/types/UpdateSsemcpServer.d.ts +14 -0
- package/serialization/types/UpdateSsemcpServer.js +45 -0
- package/serialization/types/UpdateStreamableHttpmcpServer.d.ts +15 -0
- package/serialization/types/UpdateStreamableHttpmcpServer.js +46 -0
- package/serialization/types/index.d.ts +7 -2
- package/serialization/types/index.js +7 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/providers/client/requests/ProvidersCheckRequest.d.ts +0 -15
- package/api/resources/voice/types/CreateVoiceChatCompletionsRequestBody.d.ts +0 -5
- package/api/resources/voice/types/index.d.ts +0 -1
- package/api/resources/voice/types/index.js +0 -17
- package/dist/api/resources/providers/client/requests/ProvidersCheckRequest.d.ts +0 -15
- package/dist/api/resources/voice/types/CreateVoiceChatCompletionsRequestBody.d.ts +0 -5
- package/dist/api/resources/voice/types/index.d.ts +0 -1
- package/dist/api/resources/voice/types/index.js +0 -17
- package/dist/serialization/resources/voice/types/CreateVoiceChatCompletionsRequestBody.d.ts +0 -12
- package/dist/serialization/resources/voice/types/index.d.ts +0 -1
- package/dist/serialization/resources/voice/types/index.js +0 -17
- package/serialization/resources/voice/types/CreateVoiceChatCompletionsRequestBody.d.ts +0 -12
- package/serialization/resources/voice/types/index.d.ts +0 -1
- package/serialization/resources/voice/types/index.js +0 -17
- /package/api/resources/{providers/client/requests/ProvidersCheckRequest.js → agents/resources/messages/client/requests/LettaAsyncRequest.js} +0 -0
- /package/api/resources/{voice/types/CreateVoiceChatCompletionsRequestBody.js → tools/types/UpdateMcpServerRequest.js} +0 -0
- /package/{dist/api/resources/providers/client/requests/ProvidersCheckRequest.js → api/resources/tools/types/UpdateMcpServerResponse.js} +0 -0
- /package/{dist/api/resources/voice/types/CreateVoiceChatCompletionsRequestBody.js → api/types/ProviderCheck.js} +0 -0
|
@@ -76,7 +76,7 @@ class Tools {
|
|
|
76
76
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
77
77
|
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/tools/${encodeURIComponent(toolId)}`),
|
|
78
78
|
method: "GET",
|
|
79
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
79
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.132", "User-Agent": "@letta-ai/letta-client/0.1.132", "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),
|
|
80
80
|
contentType: "application/json",
|
|
81
81
|
requestType: "json",
|
|
82
82
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -141,7 +141,7 @@ class Tools {
|
|
|
141
141
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
142
142
|
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/tools/${encodeURIComponent(toolId)}`),
|
|
143
143
|
method: "DELETE",
|
|
144
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
144
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.132", "User-Agent": "@letta-ai/letta-client/0.1.132", "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),
|
|
145
145
|
contentType: "application/json",
|
|
146
146
|
requestType: "json",
|
|
147
147
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -201,7 +201,7 @@ class Tools {
|
|
|
201
201
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
202
202
|
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/tools/${encodeURIComponent(toolId)}`),
|
|
203
203
|
method: "PATCH",
|
|
204
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
204
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.132", "User-Agent": "@letta-ai/letta-client/0.1.132", "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),
|
|
205
205
|
contentType: "application/json",
|
|
206
206
|
requestType: "json",
|
|
207
207
|
body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -272,7 +272,7 @@ class Tools {
|
|
|
272
272
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
273
273
|
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/tools/count"),
|
|
274
274
|
method: "GET",
|
|
275
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
275
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.132", "User-Agent": "@letta-ai/letta-client/0.1.132", "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),
|
|
276
276
|
contentType: "application/json",
|
|
277
277
|
queryParameters: _queryParams,
|
|
278
278
|
requestType: "json",
|
|
@@ -349,7 +349,7 @@ class Tools {
|
|
|
349
349
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
350
350
|
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/tools/"),
|
|
351
351
|
method: "GET",
|
|
352
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
352
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.132", "User-Agent": "@letta-ai/letta-client/0.1.132", "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),
|
|
353
353
|
contentType: "application/json",
|
|
354
354
|
queryParameters: _queryParams,
|
|
355
355
|
requestType: "json",
|
|
@@ -417,7 +417,7 @@ class Tools {
|
|
|
417
417
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
418
418
|
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/tools/"),
|
|
419
419
|
method: "POST",
|
|
420
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
420
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.132", "User-Agent": "@letta-ai/letta-client/0.1.132", "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),
|
|
421
421
|
contentType: "application/json",
|
|
422
422
|
requestType: "json",
|
|
423
423
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -485,7 +485,7 @@ class Tools {
|
|
|
485
485
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
486
486
|
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/tools/"),
|
|
487
487
|
method: "PUT",
|
|
488
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
488
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.132", "User-Agent": "@letta-ai/letta-client/0.1.132", "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),
|
|
489
489
|
contentType: "application/json",
|
|
490
490
|
requestType: "json",
|
|
491
491
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -550,7 +550,7 @@ class Tools {
|
|
|
550
550
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
551
551
|
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/tools/add-base-tools"),
|
|
552
552
|
method: "POST",
|
|
553
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
553
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.132", "User-Agent": "@letta-ai/letta-client/0.1.132", "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),
|
|
554
554
|
contentType: "application/json",
|
|
555
555
|
requestType: "json",
|
|
556
556
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -620,7 +620,7 @@ class Tools {
|
|
|
620
620
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
621
621
|
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/tools/run"),
|
|
622
622
|
method: "POST",
|
|
623
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
623
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.132", "User-Agent": "@letta-ai/letta-client/0.1.132", "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),
|
|
624
624
|
contentType: "application/json",
|
|
625
625
|
requestType: "json",
|
|
626
626
|
body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -687,7 +687,7 @@ class Tools {
|
|
|
687
687
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
688
688
|
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/tools/composio/apps"),
|
|
689
689
|
method: "GET",
|
|
690
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
690
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.132", "User-Agent": "@letta-ai/letta-client/0.1.132", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
691
691
|
contentType: "application/json",
|
|
692
692
|
requestType: "json",
|
|
693
693
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -752,7 +752,7 @@ class Tools {
|
|
|
752
752
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
753
753
|
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/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
|
|
754
754
|
method: "GET",
|
|
755
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
755
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.132", "User-Agent": "@letta-ai/letta-client/0.1.132", "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),
|
|
756
756
|
contentType: "application/json",
|
|
757
757
|
requestType: "json",
|
|
758
758
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -817,7 +817,7 @@ class Tools {
|
|
|
817
817
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
818
818
|
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/tools/composio/${encodeURIComponent(composioActionName)}`),
|
|
819
819
|
method: "POST",
|
|
820
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
820
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.132", "User-Agent": "@letta-ai/letta-client/0.1.132", "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),
|
|
821
821
|
contentType: "application/json",
|
|
822
822
|
requestType: "json",
|
|
823
823
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -883,7 +883,7 @@ class Tools {
|
|
|
883
883
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
884
884
|
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/tools/mcp/servers"),
|
|
885
885
|
method: "GET",
|
|
886
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
886
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.132", "User-Agent": "@letta-ai/letta-client/0.1.132", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
887
887
|
contentType: "application/json",
|
|
888
888
|
requestType: "json",
|
|
889
889
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -952,7 +952,7 @@ class Tools {
|
|
|
952
952
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
953
953
|
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/tools/mcp/servers"),
|
|
954
954
|
method: "PUT",
|
|
955
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
955
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.132", "User-Agent": "@letta-ai/letta-client/0.1.132", "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),
|
|
956
956
|
contentType: "application/json",
|
|
957
957
|
requestType: "json",
|
|
958
958
|
body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1018,7 +1018,7 @@ class Tools {
|
|
|
1018
1018
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1019
1019
|
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/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/tools`),
|
|
1020
1020
|
method: "GET",
|
|
1021
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1021
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.132", "User-Agent": "@letta-ai/letta-client/0.1.132", "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),
|
|
1022
1022
|
contentType: "application/json",
|
|
1023
1023
|
requestType: "json",
|
|
1024
1024
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1084,7 +1084,7 @@ class Tools {
|
|
|
1084
1084
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1085
1085
|
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/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/${encodeURIComponent(mcpToolName)}`),
|
|
1086
1086
|
method: "POST",
|
|
1087
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1087
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.132", "User-Agent": "@letta-ai/letta-client/0.1.132", "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),
|
|
1088
1088
|
contentType: "application/json",
|
|
1089
1089
|
requestType: "json",
|
|
1090
1090
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1149,7 +1149,7 @@ class Tools {
|
|
|
1149
1149
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1150
1150
|
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/tools/mcp/servers/${encodeURIComponent(mcpServerName)}`),
|
|
1151
1151
|
method: "DELETE",
|
|
1152
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1152
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.132", "User-Agent": "@letta-ai/letta-client/0.1.132", "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),
|
|
1153
1153
|
contentType: "application/json",
|
|
1154
1154
|
requestType: "json",
|
|
1155
1155
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1197,6 +1197,73 @@ class Tools {
|
|
|
1197
1197
|
}
|
|
1198
1198
|
});
|
|
1199
1199
|
}
|
|
1200
|
+
/**
|
|
1201
|
+
* Update an existing MCP server configuration
|
|
1202
|
+
*
|
|
1203
|
+
* @param {string} mcpServerName
|
|
1204
|
+
* @param {Letta.UpdateMcpServerRequest} request
|
|
1205
|
+
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
1206
|
+
*
|
|
1207
|
+
* @throws {@link Letta.UnprocessableEntityError}
|
|
1208
|
+
*
|
|
1209
|
+
* @example
|
|
1210
|
+
* await client.tools.updateMcpServer("mcp_server_name", {})
|
|
1211
|
+
*/
|
|
1212
|
+
updateMcpServer(mcpServerName, request, requestOptions) {
|
|
1213
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1214
|
+
var _a, _b, _c;
|
|
1215
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1216
|
+
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/tools/mcp/servers/${encodeURIComponent(mcpServerName)}`),
|
|
1217
|
+
method: "PATCH",
|
|
1218
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.132", "User-Agent": "@letta-ai/letta-client/0.1.132", "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),
|
|
1219
|
+
contentType: "application/json",
|
|
1220
|
+
requestType: "json",
|
|
1221
|
+
body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
1222
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1223
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1224
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1225
|
+
});
|
|
1226
|
+
if (_response.ok) {
|
|
1227
|
+
return serializers.UpdateMcpServerResponse.parseOrThrow(_response.body, {
|
|
1228
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1229
|
+
allowUnrecognizedUnionMembers: true,
|
|
1230
|
+
allowUnrecognizedEnumValues: true,
|
|
1231
|
+
skipValidation: true,
|
|
1232
|
+
breadcrumbsPrefix: ["response"],
|
|
1233
|
+
});
|
|
1234
|
+
}
|
|
1235
|
+
if (_response.error.reason === "status-code") {
|
|
1236
|
+
switch (_response.error.statusCode) {
|
|
1237
|
+
case 422:
|
|
1238
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
1239
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1240
|
+
allowUnrecognizedUnionMembers: true,
|
|
1241
|
+
allowUnrecognizedEnumValues: true,
|
|
1242
|
+
skipValidation: true,
|
|
1243
|
+
breadcrumbsPrefix: ["response"],
|
|
1244
|
+
}));
|
|
1245
|
+
default:
|
|
1246
|
+
throw new errors.LettaError({
|
|
1247
|
+
statusCode: _response.error.statusCode,
|
|
1248
|
+
body: _response.error.body,
|
|
1249
|
+
});
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
switch (_response.error.reason) {
|
|
1253
|
+
case "non-json":
|
|
1254
|
+
throw new errors.LettaError({
|
|
1255
|
+
statusCode: _response.error.statusCode,
|
|
1256
|
+
body: _response.error.rawBody,
|
|
1257
|
+
});
|
|
1258
|
+
case "timeout":
|
|
1259
|
+
throw new errors.LettaTimeoutError("Timeout exceeded when calling PATCH /v1/tools/mcp/servers/{mcp_server_name}.");
|
|
1260
|
+
case "unknown":
|
|
1261
|
+
throw new errors.LettaError({
|
|
1262
|
+
message: _response.error.errorMessage,
|
|
1263
|
+
});
|
|
1264
|
+
}
|
|
1265
|
+
});
|
|
1266
|
+
}
|
|
1200
1267
|
_getCustomAuthorizationHeaders() {
|
|
1201
1268
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1202
1269
|
const tokenValue = yield core.Supplier.get(this._options.token);
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../../../index";
|
|
5
|
-
export type AddMcpServerRequest = Letta.StdioServerConfig | Letta.SseServerConfig;
|
|
5
|
+
export type AddMcpServerRequest = Letta.StdioServerConfig | Letta.SseServerConfig | Letta.StreamableHttpServerConfig;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../../../index";
|
|
5
|
-
export type AddMcpServerResponseItem = Letta.StdioServerConfig | Letta.SseServerConfig;
|
|
5
|
+
export type AddMcpServerResponseItem = Letta.StdioServerConfig | Letta.SseServerConfig | Letta.StreamableHttpServerConfig;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../../../index";
|
|
5
|
-
export type DeleteMcpServerResponseItem = Letta.StdioServerConfig | Letta.SseServerConfig;
|
|
5
|
+
export type DeleteMcpServerResponseItem = Letta.StdioServerConfig | Letta.SseServerConfig | Letta.StreamableHttpServerConfig;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../../../index";
|
|
5
|
-
export type ListMcpServersResponseValue = Letta.SseServerConfig | Letta.StdioServerConfig;
|
|
5
|
+
export type ListMcpServersResponseValue = Letta.SseServerConfig | Letta.StdioServerConfig | Letta.StreamableHttpServerConfig;
|
|
@@ -18,3 +18,5 @@ __exportStar(require("./ListMcpServersResponseValue"), exports);
|
|
|
18
18
|
__exportStar(require("./AddMcpServerRequest"), exports);
|
|
19
19
|
__exportStar(require("./AddMcpServerResponseItem"), exports);
|
|
20
20
|
__exportStar(require("./DeleteMcpServerResponseItem"), exports);
|
|
21
|
+
__exportStar(require("./UpdateMcpServerRequest"), exports);
|
|
22
|
+
__exportStar(require("./UpdateMcpServerResponse"), exports);
|
|
@@ -36,11 +36,7 @@ export declare class Voice {
|
|
|
36
36
|
* @example
|
|
37
37
|
* await client.voice.createVoiceChatCompletions("agent_id", {
|
|
38
38
|
* body: {
|
|
39
|
-
*
|
|
40
|
-
* content: "content",
|
|
41
|
-
* role: "developer"
|
|
42
|
-
* }],
|
|
43
|
-
* model: "model"
|
|
39
|
+
* "key": "value"
|
|
44
40
|
* }
|
|
45
41
|
* })
|
|
46
42
|
*/
|
|
@@ -69,11 +69,7 @@ class Voice {
|
|
|
69
69
|
* @example
|
|
70
70
|
* await client.voice.createVoiceChatCompletions("agent_id", {
|
|
71
71
|
* body: {
|
|
72
|
-
*
|
|
73
|
-
* content: "content",
|
|
74
|
-
* role: "developer"
|
|
75
|
-
* }],
|
|
76
|
-
* model: "model"
|
|
72
|
+
* "key": "value"
|
|
77
73
|
* }
|
|
78
74
|
* })
|
|
79
75
|
*/
|
|
@@ -84,10 +80,10 @@ class Voice {
|
|
|
84
80
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
85
81
|
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/voice-beta/${encodeURIComponent(agentId)}/chat/completions`),
|
|
86
82
|
method: "POST",
|
|
87
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
83
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.132", "User-Agent": "@letta-ai/letta-client/0.1.132", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
88
84
|
contentType: "application/json",
|
|
89
85
|
requestType: "json",
|
|
90
|
-
body: serializers.
|
|
86
|
+
body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
|
|
91
87
|
unrecognizedObjectKeys: "strip",
|
|
92
88
|
}),
|
|
93
89
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Letta from "../../../../index";
|
|
5
4
|
/**
|
|
6
5
|
* @example
|
|
7
6
|
* {
|
|
8
7
|
* body: {
|
|
9
|
-
*
|
|
10
|
-
* content: "content",
|
|
11
|
-
* role: "developer"
|
|
12
|
-
* }],
|
|
13
|
-
* model: "model"
|
|
8
|
+
* "key": "value"
|
|
14
9
|
* }
|
|
15
10
|
* }
|
|
16
11
|
*/
|
|
17
12
|
export interface CreateVoiceChatCompletionsRequest {
|
|
18
13
|
userId?: string;
|
|
19
|
-
body:
|
|
14
|
+
body: Record<string, unknown>;
|
|
20
15
|
}
|
|
@@ -14,5 +14,4 @@ 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("./types"), exports);
|
|
18
17
|
__exportStar(require("./client"), exports);
|
|
@@ -71,4 +71,8 @@ export interface AgentState {
|
|
|
71
71
|
enableSleeptime?: boolean;
|
|
72
72
|
/** The multi-agent group that this agent manages */
|
|
73
73
|
multiAgentGroup?: Letta.Group;
|
|
74
|
+
/** The timestamp when the agent last completed a run. */
|
|
75
|
+
lastRunCompletion?: Date;
|
|
76
|
+
/** The duration in milliseconds of the agent's last run. */
|
|
77
|
+
lastRunDurationMs?: number;
|
|
74
78
|
}
|
|
@@ -24,6 +24,8 @@ export interface BatchJob {
|
|
|
24
24
|
callbackSentAt?: Date;
|
|
25
25
|
/** HTTP status code returned by the callback endpoint. */
|
|
26
26
|
callbackStatusCode?: number;
|
|
27
|
+
/** Optional error message from attempting to POST the callback endpoint. */
|
|
28
|
+
callbackError?: string;
|
|
27
29
|
/** The human-friendly ID of the Job */
|
|
28
30
|
id?: string;
|
|
29
31
|
}
|
package/dist/api/types/Job.d.ts
CHANGED
|
@@ -35,6 +35,8 @@ export interface Job {
|
|
|
35
35
|
callbackSentAt?: Date;
|
|
36
36
|
/** HTTP status code returned by the callback endpoint. */
|
|
37
37
|
callbackStatusCode?: number;
|
|
38
|
+
/** Optional error message from attempting to POST the callback endpoint. */
|
|
39
|
+
callbackError?: string;
|
|
38
40
|
/** The human-friendly ID of the Job */
|
|
39
41
|
id?: string;
|
|
40
42
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
4
5
|
export interface LettaRequestConfig {
|
|
5
6
|
/** Whether the server should parse specific tool call arguments (default `send_message`) as `AssistantMessage` objects. */
|
|
6
7
|
useAssistantMessage?: boolean;
|
|
@@ -8,4 +9,6 @@ export interface LettaRequestConfig {
|
|
|
8
9
|
assistantMessageToolName?: string;
|
|
9
10
|
/** The name of the message argument in the designated message tool. */
|
|
10
11
|
assistantMessageToolKwarg?: string;
|
|
12
|
+
/** Only return specified message types in the response. If `None` (default) returns all messages. */
|
|
13
|
+
includeReturnMessageTypes?: Letta.MessageType[];
|
|
11
14
|
}
|
|
@@ -13,6 +13,7 @@ import * as Letta from "../index";
|
|
|
13
13
|
export interface LettaResponse {
|
|
14
14
|
/** The messages returned by the agent. */
|
|
15
15
|
messages: Letta.LettaMessageUnion[];
|
|
16
|
+
stopReason: Letta.LettaStopReason;
|
|
16
17
|
/** The usage statistics of the agent. */
|
|
17
18
|
usage: Letta.LettaUsageStatistics;
|
|
18
19
|
}
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../index";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* The stop reason from Letta indicating why agent loop stopped execution.
|
|
7
7
|
*/
|
|
8
8
|
export interface LettaStopReason {
|
|
9
9
|
/** The type of the message. */
|
|
10
10
|
messageType?: "stop_reason";
|
|
11
|
-
|
|
11
|
+
/** The reason why execution stopped. */
|
|
12
|
+
stopReason: Letta.StopReasonType;
|
|
12
13
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type McpServerType = "sse" | "stdio";
|
|
4
|
+
export type McpServerType = "sse" | "stdio" | "streamable_http";
|
|
5
5
|
export declare const McpServerType: {
|
|
6
6
|
readonly Sse: "sse";
|
|
7
7
|
readonly Stdio: "stdio";
|
|
8
|
+
readonly StreamableHttp: "streamable_http";
|
|
8
9
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
4
5
|
/**
|
|
5
6
|
* A simple wrapper around MCP's tool definition (to avoid conflict with our own)
|
|
6
7
|
*/
|
|
@@ -8,6 +9,7 @@ export interface McpTool {
|
|
|
8
9
|
name: string;
|
|
9
10
|
description?: string;
|
|
10
11
|
inputSchema: Record<string, unknown>;
|
|
12
|
+
annotations?: Letta.ToolAnnotations;
|
|
11
13
|
/** Accepts any additional properties */
|
|
12
14
|
[key: string]: any;
|
|
13
15
|
}
|
|
@@ -11,10 +11,14 @@ export interface Provider {
|
|
|
11
11
|
providerType: Letta.ProviderType;
|
|
12
12
|
/** The category of the provider (base or byok) */
|
|
13
13
|
providerCategory: Letta.ProviderCategory;
|
|
14
|
-
/** API key used for requests to the provider. */
|
|
14
|
+
/** API key or secret key used for requests to the provider. */
|
|
15
15
|
apiKey?: string;
|
|
16
16
|
/** Base URL for the provider. */
|
|
17
17
|
baseUrl?: string;
|
|
18
|
+
/** Access key used for requests to the provider. */
|
|
19
|
+
accessKey?: string;
|
|
20
|
+
/** Region used for requests to the provider. */
|
|
21
|
+
region?: string;
|
|
18
22
|
/** The last update timestamp of the provider. */
|
|
19
23
|
updatedAt?: Date;
|
|
20
24
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export interface ProviderCheck {
|
|
6
|
+
/** The type of the provider. */
|
|
7
|
+
providerType: Letta.ProviderType;
|
|
8
|
+
/** API key or secret key used for requests to the provider. */
|
|
9
|
+
apiKey: string;
|
|
10
|
+
/** Access key used for requests to the provider. */
|
|
11
|
+
accessKey?: string;
|
|
12
|
+
/** Region used for requests to the provider. */
|
|
13
|
+
region?: string;
|
|
14
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type ProviderType = "anthropic" | "
|
|
4
|
+
export type ProviderType = "anthropic" | "google_ai" | "google_vertex" | "openai" | "letta" | "deepseek" | "lmstudio_openai" | "xai" | "mistral" | "ollama" | "groq" | "together" | "azure" | "vllm" | "bedrock";
|
|
5
5
|
export declare const ProviderType: {
|
|
6
6
|
readonly Anthropic: "anthropic";
|
|
7
|
-
readonly Bedrock: "bedrock";
|
|
8
7
|
readonly GoogleAi: "google_ai";
|
|
9
8
|
readonly GoogleVertex: "google_vertex";
|
|
10
9
|
readonly Openai: "openai";
|
|
@@ -18,4 +17,5 @@ export declare const ProviderType: {
|
|
|
18
17
|
readonly Together: "together";
|
|
19
18
|
readonly Azure: "azure";
|
|
20
19
|
readonly Vllm: "vllm";
|
|
20
|
+
readonly Bedrock: "bedrock";
|
|
21
21
|
};
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ProviderType = void 0;
|
|
7
7
|
exports.ProviderType = {
|
|
8
8
|
Anthropic: "anthropic",
|
|
9
|
-
Bedrock: "bedrock",
|
|
10
9
|
GoogleAi: "google_ai",
|
|
11
10
|
GoogleVertex: "google_vertex",
|
|
12
11
|
Openai: "openai",
|
|
@@ -20,4 +19,5 @@ exports.ProviderType = {
|
|
|
20
19
|
Together: "together",
|
|
21
20
|
Azure: "azure",
|
|
22
21
|
Vllm: "vllm",
|
|
22
|
+
Bedrock: "bedrock",
|
|
23
23
|
};
|
package/dist/api/types/Run.d.ts
CHANGED
|
@@ -35,6 +35,8 @@ export interface Run {
|
|
|
35
35
|
callbackSentAt?: Date;
|
|
36
36
|
/** HTTP status code returned by the callback endpoint. */
|
|
37
37
|
callbackStatusCode?: number;
|
|
38
|
+
/** Optional error message from attempting to POST the callback endpoint. */
|
|
39
|
+
callbackError?: string;
|
|
38
40
|
/** The human-friendly ID of the Run */
|
|
39
41
|
id?: string;
|
|
40
42
|
/** The request configuration for the run. */
|