@letta-ai/letta-client 1.0.0-alpha.3 → 1.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/agents/client/Client.d.ts +8 -8
- package/api/resources/agents/client/Client.js +17 -17
- package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
- package/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
- package/api/resources/agents/resources/blocks/client/Client.d.ts +12 -12
- package/api/resources/agents/resources/blocks/client/Client.js +17 -17
- package/api/resources/agents/resources/context/client/Client.d.ts +2 -2
- package/api/resources/agents/resources/context/client/Client.js +3 -3
- package/api/resources/agents/resources/coreMemory/client/Client.d.ts +2 -2
- package/api/resources/agents/resources/coreMemory/client/Client.js +3 -3
- package/api/resources/agents/resources/files/client/Client.d.ts +10 -10
- package/api/resources/agents/resources/files/client/Client.js +14 -14
- package/api/resources/agents/resources/folders/client/Client.d.ts +8 -8
- package/api/resources/agents/resources/folders/client/Client.js +11 -11
- package/api/resources/agents/resources/groups/client/Client.d.ts +2 -2
- package/api/resources/agents/resources/groups/client/Client.js +3 -3
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.d.ts +17 -17
- package/api/resources/agents/resources/messages/client/Client.js +27 -27
- package/api/resources/agents/resources/passages/client/Client.d.ts +8 -8
- package/api/resources/agents/resources/passages/client/Client.js +13 -13
- package/api/resources/agents/resources/sources/client/Client.d.ts +8 -8
- package/api/resources/agents/resources/sources/client/Client.js +11 -11
- package/api/resources/agents/resources/tools/client/Client.d.ts +10 -10
- package/api/resources/agents/resources/tools/client/Client.js +14 -14
- package/api/resources/archives/client/Client.d.ts +2 -2
- package/api/resources/archives/client/Client.js +5 -5
- package/api/resources/batches/client/Client.js +4 -4
- package/api/resources/batches/resources/messages/client/Client.js +1 -1
- package/api/resources/blocks/client/Client.d.ts +6 -6
- package/api/resources/blocks/client/Client.js +12 -12
- package/api/resources/blocks/resources/agents/client/Client.d.ts +2 -2
- package/api/resources/blocks/resources/agents/client/Client.js +3 -3
- package/api/resources/chat/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/api/resources/folders/client/Client.js +8 -8
- package/api/resources/folders/resources/agents/client/Client.js +1 -1
- package/api/resources/folders/resources/files/client/Client.js +3 -3
- package/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/api/resources/groups/client/Client.d.ts +6 -6
- package/api/resources/groups/client/Client.js +12 -12
- package/api/resources/groups/resources/messages/client/Client.d.ts +9 -9
- package/api/resources/groups/resources/messages/client/Client.js +14 -14
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.d.ts +6 -6
- package/api/resources/identities/client/Client.js +13 -13
- package/api/resources/identities/resources/agents/client/Client.d.ts +2 -2
- package/api/resources/identities/resources/agents/client/Client.js +3 -3
- package/api/resources/identities/resources/blocks/client/Client.d.ts +2 -2
- package/api/resources/identities/resources/blocks/client/Client.js +3 -3
- package/api/resources/identities/resources/properties/client/Client.d.ts +2 -2
- package/api/resources/identities/resources/properties/client/Client.js +3 -3
- package/api/resources/jobs/client/Client.d.ts +6 -6
- package/api/resources/jobs/client/Client.js +11 -11
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/models/resources/embeddings/client/Client.js +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.d.ts +8 -8
- package/api/resources/providers/client/Client.js +15 -15
- package/api/resources/runs/client/Client.js +6 -6
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/sources/client/Client.d.ts +11 -11
- package/api/resources/sources/client/Client.js +21 -21
- package/api/resources/sources/resources/files/client/Client.d.ts +6 -6
- package/api/resources/sources/resources/files/client/Client.js +9 -9
- package/api/resources/sources/resources/passages/client/Client.d.ts +2 -2
- package/api/resources/sources/resources/passages/client/Client.js +3 -3
- package/api/resources/steps/client/Client.d.ts +2 -2
- package/api/resources/steps/client/Client.js +4 -4
- package/api/resources/steps/resources/feedback/client/Client.d.ts +2 -2
- package/api/resources/steps/resources/feedback/client/Client.js +3 -3
- package/api/resources/steps/resources/messages/client/Client.d.ts +2 -2
- package/api/resources/steps/resources/messages/client/Client.js +3 -3
- package/api/resources/steps/resources/metrics/client/Client.d.ts +2 -2
- package/api/resources/steps/resources/metrics/client/Client.js +3 -3
- package/api/resources/steps/resources/trace/client/Client.d.ts +2 -2
- package/api/resources/steps/resources/trace/client/Client.js +3 -3
- package/api/resources/tags/client/Client.js +1 -1
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +13 -13
- 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/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls.d.ts +5 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls.js +5 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCallsItem.d.ts +4 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCallsItem.js +5 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItem.d.ts +1 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecution.d.ts +5 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecution.js +5 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecutionItem.d.ts +4 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecutionItem.js +5 -0
- package/api/resources/templates/types/index.d.ts +4 -0
- package/api/resources/templates/types/index.js +4 -0
- package/api/resources/tools/client/Client.d.ts +6 -6
- package/api/resources/tools/client/Client.js +23 -23
- package/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/ApprovalRequestMessage.d.ts +4 -0
- package/api/types/ApprovalRequestMessageAllowedToolCalls.d.ts +8 -0
- package/api/types/ApprovalRequestMessageAllowedToolCalls.js +5 -0
- package/api/types/ApprovalRequestMessageRequestedToolCalls.d.ts +8 -0
- package/api/types/ApprovalRequestMessageRequestedToolCalls.js +5 -0
- package/api/types/InternalTemplateAgentCreate.d.ts +2 -0
- package/api/types/LettaSchemasAgentFileAgentSchema.d.ts +2 -0
- package/api/types/LettaSchemasAgentFileToolSchema.d.ts +2 -0
- package/api/types/LlmConfig.d.ts +2 -0
- package/api/types/RunMetrics.d.ts +2 -0
- package/api/types/Tool.d.ts +2 -0
- package/api/types/ToolCreate.d.ts +2 -0
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/api/resources/agents/client/Client.d.ts +8 -8
- package/dist/api/resources/agents/client/Client.js +17 -17
- package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
- package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
- package/dist/api/resources/agents/resources/blocks/client/Client.d.ts +12 -12
- package/dist/api/resources/agents/resources/blocks/client/Client.js +17 -17
- package/dist/api/resources/agents/resources/context/client/Client.d.ts +2 -2
- package/dist/api/resources/agents/resources/context/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/coreMemory/client/Client.d.ts +2 -2
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/files/client/Client.d.ts +10 -10
- package/dist/api/resources/agents/resources/files/client/Client.js +14 -14
- package/dist/api/resources/agents/resources/folders/client/Client.d.ts +8 -8
- package/dist/api/resources/agents/resources/folders/client/Client.js +11 -11
- package/dist/api/resources/agents/resources/groups/client/Client.d.ts +2 -2
- package/dist/api/resources/agents/resources/groups/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.d.ts +17 -17
- package/dist/api/resources/agents/resources/messages/client/Client.js +27 -27
- package/dist/api/resources/agents/resources/passages/client/Client.d.ts +8 -8
- package/dist/api/resources/agents/resources/passages/client/Client.js +13 -13
- package/dist/api/resources/agents/resources/sources/client/Client.d.ts +8 -8
- package/dist/api/resources/agents/resources/sources/client/Client.js +11 -11
- package/dist/api/resources/agents/resources/tools/client/Client.d.ts +10 -10
- package/dist/api/resources/agents/resources/tools/client/Client.js +14 -14
- package/dist/api/resources/archives/client/Client.d.ts +2 -2
- package/dist/api/resources/archives/client/Client.js +5 -5
- package/dist/api/resources/batches/client/Client.js +4 -4
- package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/blocks/client/Client.d.ts +6 -6
- package/dist/api/resources/blocks/client/Client.js +12 -12
- package/dist/api/resources/blocks/resources/agents/client/Client.d.ts +2 -2
- package/dist/api/resources/blocks/resources/agents/client/Client.js +3 -3
- package/dist/api/resources/chat/client/Client.js +1 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/dist/api/resources/folders/client/Client.js +8 -8
- package/dist/api/resources/folders/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
- package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/groups/client/Client.d.ts +6 -6
- package/dist/api/resources/groups/client/Client.js +12 -12
- package/dist/api/resources/groups/resources/messages/client/Client.d.ts +9 -9
- package/dist/api/resources/groups/resources/messages/client/Client.js +14 -14
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.d.ts +6 -6
- package/dist/api/resources/identities/client/Client.js +13 -13
- package/dist/api/resources/identities/resources/agents/client/Client.d.ts +2 -2
- package/dist/api/resources/identities/resources/agents/client/Client.js +3 -3
- package/dist/api/resources/identities/resources/blocks/client/Client.d.ts +2 -2
- package/dist/api/resources/identities/resources/blocks/client/Client.js +3 -3
- package/dist/api/resources/identities/resources/properties/client/Client.d.ts +2 -2
- package/dist/api/resources/identities/resources/properties/client/Client.js +3 -3
- package/dist/api/resources/jobs/client/Client.d.ts +6 -6
- package/dist/api/resources/jobs/client/Client.js +11 -11
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.d.ts +8 -8
- package/dist/api/resources/providers/client/Client.js +15 -15
- package/dist/api/resources/runs/client/Client.js +6 -6
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.d.ts +11 -11
- package/dist/api/resources/sources/client/Client.js +21 -21
- package/dist/api/resources/sources/resources/files/client/Client.d.ts +6 -6
- package/dist/api/resources/sources/resources/files/client/Client.js +9 -9
- package/dist/api/resources/sources/resources/passages/client/Client.d.ts +2 -2
- package/dist/api/resources/sources/resources/passages/client/Client.js +3 -3
- package/dist/api/resources/steps/client/Client.d.ts +2 -2
- package/dist/api/resources/steps/client/Client.js +4 -4
- package/dist/api/resources/steps/resources/feedback/client/Client.d.ts +2 -2
- package/dist/api/resources/steps/resources/feedback/client/Client.js +3 -3
- package/dist/api/resources/steps/resources/messages/client/Client.d.ts +2 -2
- package/dist/api/resources/steps/resources/messages/client/Client.js +3 -3
- package/dist/api/resources/steps/resources/metrics/client/Client.d.ts +2 -2
- package/dist/api/resources/steps/resources/metrics/client/Client.js +3 -3
- package/dist/api/resources/steps/resources/trace/client/Client.d.ts +2 -2
- package/dist/api/resources/steps/resources/trace/client/Client.js +3 -3
- package/dist/api/resources/tags/client/Client.js +1 -1
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +13 -13
- 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/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls.d.ts +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls.js +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCallsItem.d.ts +4 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCallsItem.js +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItem.d.ts +1 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecution.d.ts +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecution.js +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecutionItem.d.ts +4 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecutionItem.js +5 -0
- package/dist/api/resources/templates/types/index.d.ts +4 -0
- package/dist/api/resources/templates/types/index.js +4 -0
- package/dist/api/resources/tools/client/Client.d.ts +6 -6
- package/dist/api/resources/tools/client/Client.js +23 -23
- package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/ApprovalRequestMessage.d.ts +4 -0
- package/dist/api/types/ApprovalRequestMessageAllowedToolCalls.d.ts +8 -0
- package/dist/api/types/ApprovalRequestMessageAllowedToolCalls.js +5 -0
- package/dist/api/types/ApprovalRequestMessageRequestedToolCalls.d.ts +8 -0
- package/dist/api/types/ApprovalRequestMessageRequestedToolCalls.js +5 -0
- package/dist/api/types/InternalTemplateAgentCreate.d.ts +2 -0
- package/dist/api/types/LettaSchemasAgentFileAgentSchema.d.ts +2 -0
- package/dist/api/types/LettaSchemasAgentFileToolSchema.d.ts +2 -0
- package/dist/api/types/LlmConfig.d.ts +2 -0
- package/dist/api/types/RunMetrics.d.ts +2 -0
- package/dist/api/types/Tool.d.ts +2 -0
- package/dist/api/types/ToolCreate.d.ts +2 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +2 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.js +2 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls.d.ts +11 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls.js +47 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCallsItem.d.ts +10 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCallsItem.js +41 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItem.d.ts +2 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItem.js +2 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecution.d.ts +11 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecution.js +46 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecutionItem.d.ts +10 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecutionItem.js +41 -0
- package/dist/serialization/resources/templates/types/index.d.ts +4 -0
- package/dist/serialization/resources/templates/types/index.js +4 -0
- package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
- package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
- package/dist/serialization/types/ApprovalRequestMessage.d.ts +4 -0
- package/dist/serialization/types/ApprovalRequestMessage.js +4 -0
- package/dist/serialization/types/ApprovalRequestMessageAllowedToolCalls.d.ts +12 -0
- package/dist/serialization/types/ApprovalRequestMessageAllowedToolCalls.js +43 -0
- package/dist/serialization/types/ApprovalRequestMessageRequestedToolCalls.d.ts +12 -0
- package/dist/serialization/types/ApprovalRequestMessageRequestedToolCalls.js +43 -0
- package/dist/serialization/types/InternalTemplateAgentCreate.d.ts +1 -0
- package/dist/serialization/types/InternalTemplateAgentCreate.js +1 -0
- package/dist/serialization/types/LettaSchemasAgentFileAgentSchema.d.ts +1 -0
- package/dist/serialization/types/LettaSchemasAgentFileAgentSchema.js +1 -0
- package/dist/serialization/types/LettaSchemasAgentFileToolSchema.d.ts +1 -0
- package/dist/serialization/types/LettaSchemasAgentFileToolSchema.js +1 -0
- package/dist/serialization/types/LlmConfig.d.ts +1 -0
- package/dist/serialization/types/LlmConfig.js +1 -0
- package/dist/serialization/types/RunMetrics.d.ts +1 -0
- package/dist/serialization/types/RunMetrics.js +1 -0
- package/dist/serialization/types/Tool.d.ts +1 -0
- package/dist/serialization/types/Tool.js +1 -0
- package/dist/serialization/types/ToolCreate.d.ts +1 -0
- package/dist/serialization/types/ToolCreate.js +1 -0
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +235 -186
- package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
- package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
- package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
- package/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +2 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.js +2 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls.d.ts +11 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls.js +47 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCallsItem.d.ts +10 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCallsItem.js +41 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItem.d.ts +2 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItem.js +2 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecution.d.ts +11 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecution.js +46 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecutionItem.d.ts +10 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecutionItem.js +41 -0
- package/serialization/resources/templates/types/index.d.ts +4 -0
- package/serialization/resources/templates/types/index.js +4 -0
- package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
- package/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
- package/serialization/types/ApprovalRequestMessage.d.ts +4 -0
- package/serialization/types/ApprovalRequestMessage.js +4 -0
- package/serialization/types/ApprovalRequestMessageAllowedToolCalls.d.ts +12 -0
- package/serialization/types/ApprovalRequestMessageAllowedToolCalls.js +43 -0
- package/serialization/types/ApprovalRequestMessageRequestedToolCalls.d.ts +12 -0
- package/serialization/types/ApprovalRequestMessageRequestedToolCalls.js +43 -0
- package/serialization/types/InternalTemplateAgentCreate.d.ts +1 -0
- package/serialization/types/InternalTemplateAgentCreate.js +1 -0
- package/serialization/types/LettaSchemasAgentFileAgentSchema.d.ts +1 -0
- package/serialization/types/LettaSchemasAgentFileAgentSchema.js +1 -0
- package/serialization/types/LettaSchemasAgentFileToolSchema.d.ts +1 -0
- package/serialization/types/LettaSchemasAgentFileToolSchema.js +1 -0
- package/serialization/types/LlmConfig.d.ts +1 -0
- package/serialization/types/LlmConfig.js +1 -0
- package/serialization/types/RunMetrics.d.ts +1 -0
- package/serialization/types/RunMetrics.js +1 -0
- package/serialization/types/Tool.d.ts +1 -0
- package/serialization/types/Tool.js +1 -0
- package/serialization/types/ToolCreate.d.ts +1 -0
- package/serialization/types/ToolCreate.js +1 -0
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -62,14 +62,14 @@ class Tools {
|
|
|
62
62
|
/**
|
|
63
63
|
* Get tools from an existing agent
|
|
64
64
|
*
|
|
65
|
-
* @param {string} agentId
|
|
65
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
66
66
|
* @param {Letta.agents.ToolsListRequest} request
|
|
67
67
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
68
|
*
|
|
69
69
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
|
-
* await client.agents.tools.list("
|
|
72
|
+
* await client.agents.tools.list("agent-123e4567-e89b-42d3-8456-426614174000", {
|
|
73
73
|
* before: "before",
|
|
74
74
|
* after: "after",
|
|
75
75
|
* limit: 1,
|
|
@@ -107,7 +107,7 @@ class Tools {
|
|
|
107
107
|
method: "GET",
|
|
108
108
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
109
109
|
? yield core.Supplier.get(this._options.project)
|
|
110
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
110
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
111
111
|
contentType: "application/json",
|
|
112
112
|
queryParameters: _queryParams,
|
|
113
113
|
requestType: "json",
|
|
@@ -165,14 +165,14 @@ class Tools {
|
|
|
165
165
|
/**
|
|
166
166
|
* Attach a tool to an agent.
|
|
167
167
|
*
|
|
168
|
-
* @param {string} agentId
|
|
169
|
-
* @param {string} toolId
|
|
168
|
+
* @param {string} agentId - The ID of the tool in the format 'tool-<uuid4>'
|
|
169
|
+
* @param {string} toolId - The ID of the agent in the format 'agent-<uuid4>'
|
|
170
170
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
171
171
|
*
|
|
172
172
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
173
173
|
*
|
|
174
174
|
* @example
|
|
175
|
-
* await client.agents.tools.attach("
|
|
175
|
+
* await client.agents.tools.attach("tool-123e4567-e89b-42d3-8456-426614174000", "agent-123e4567-e89b-42d3-8456-426614174000")
|
|
176
176
|
*/
|
|
177
177
|
attach(agentId, toolId, requestOptions) {
|
|
178
178
|
return core.HttpResponsePromise.fromPromise(this.__attach(agentId, toolId, requestOptions));
|
|
@@ -185,7 +185,7 @@ class Tools {
|
|
|
185
185
|
method: "PATCH",
|
|
186
186
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
187
187
|
? yield core.Supplier.get(this._options.project)
|
|
188
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
188
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
189
189
|
contentType: "application/json",
|
|
190
190
|
requestType: "json",
|
|
191
191
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -242,14 +242,14 @@ class Tools {
|
|
|
242
242
|
/**
|
|
243
243
|
* Detach a tool from an agent.
|
|
244
244
|
*
|
|
245
|
-
* @param {string} agentId
|
|
246
|
-
* @param {string} toolId
|
|
245
|
+
* @param {string} agentId - The ID of the tool in the format 'tool-<uuid4>'
|
|
246
|
+
* @param {string} toolId - The ID of the agent in the format 'agent-<uuid4>'
|
|
247
247
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
248
248
|
*
|
|
249
249
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
250
250
|
*
|
|
251
251
|
* @example
|
|
252
|
-
* await client.agents.tools.detach("
|
|
252
|
+
* await client.agents.tools.detach("tool-123e4567-e89b-42d3-8456-426614174000", "agent-123e4567-e89b-42d3-8456-426614174000")
|
|
253
253
|
*/
|
|
254
254
|
detach(agentId, toolId, requestOptions) {
|
|
255
255
|
return core.HttpResponsePromise.fromPromise(this.__detach(agentId, toolId, requestOptions));
|
|
@@ -262,7 +262,7 @@ class Tools {
|
|
|
262
262
|
method: "PATCH",
|
|
263
263
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
264
264
|
? yield core.Supplier.get(this._options.project)
|
|
265
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
265
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
266
266
|
contentType: "application/json",
|
|
267
267
|
requestType: "json",
|
|
268
268
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -319,7 +319,7 @@ class Tools {
|
|
|
319
319
|
/**
|
|
320
320
|
* Attach a tool to an agent.
|
|
321
321
|
*
|
|
322
|
-
* @param {string} agentId
|
|
322
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
323
323
|
* @param {string} toolName
|
|
324
324
|
* @param {Letta.agents.ToolsModifyApprovalRequest} request
|
|
325
325
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -327,7 +327,7 @@ class Tools {
|
|
|
327
327
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
328
328
|
*
|
|
329
329
|
* @example
|
|
330
|
-
* await client.agents.tools.modifyApproval("
|
|
330
|
+
* await client.agents.tools.modifyApproval("agent-123e4567-e89b-42d3-8456-426614174000", "tool_name", {
|
|
331
331
|
* requiresApproval: true
|
|
332
332
|
* })
|
|
333
333
|
*/
|
|
@@ -345,7 +345,7 @@ class Tools {
|
|
|
345
345
|
method: "PATCH",
|
|
346
346
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
347
347
|
? yield core.Supplier.get(this._options.project)
|
|
348
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
348
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
349
349
|
contentType: "application/json",
|
|
350
350
|
queryParameters: _queryParams,
|
|
351
351
|
requestType: "json",
|
|
@@ -68,14 +68,14 @@ export declare class Archives {
|
|
|
68
68
|
/**
|
|
69
69
|
* Update an existing archive's name and/or description.
|
|
70
70
|
*
|
|
71
|
-
* @param {string} archiveId
|
|
71
|
+
* @param {string} archiveId - The ID of the archive in the format 'archive-<uuid4>'
|
|
72
72
|
* @param {Letta.ArchiveUpdateRequest} request
|
|
73
73
|
* @param {Archives.RequestOptions} requestOptions - Request-specific configuration.
|
|
74
74
|
*
|
|
75
75
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
76
76
|
*
|
|
77
77
|
* @example
|
|
78
|
-
* await client.archives.modifyArchive("
|
|
78
|
+
* await client.archives.modifyArchive("archive-123e4567-e89b-42d3-8456-426614174000")
|
|
79
79
|
*/
|
|
80
80
|
modifyArchive(archiveId: string, request?: Letta.ArchiveUpdateRequest, requestOptions?: Archives.RequestOptions): core.HttpResponsePromise<Letta.Archive>;
|
|
81
81
|
private __modifyArchive;
|
|
@@ -110,7 +110,7 @@ class Archives {
|
|
|
110
110
|
method: "GET",
|
|
111
111
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
112
112
|
? 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.
|
|
113
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
114
114
|
contentType: "application/json",
|
|
115
115
|
queryParameters: _queryParams,
|
|
116
116
|
requestType: "json",
|
|
@@ -189,7 +189,7 @@ class Archives {
|
|
|
189
189
|
method: "POST",
|
|
190
190
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
191
191
|
? yield core.Supplier.get(this._options.project)
|
|
192
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
192
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
193
193
|
contentType: "application/json",
|
|
194
194
|
requestType: "json",
|
|
195
195
|
body: serializers.ArchiveCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -247,14 +247,14 @@ class Archives {
|
|
|
247
247
|
/**
|
|
248
248
|
* Update an existing archive's name and/or description.
|
|
249
249
|
*
|
|
250
|
-
* @param {string} archiveId
|
|
250
|
+
* @param {string} archiveId - The ID of the archive in the format 'archive-<uuid4>'
|
|
251
251
|
* @param {Letta.ArchiveUpdateRequest} request
|
|
252
252
|
* @param {Archives.RequestOptions} requestOptions - Request-specific configuration.
|
|
253
253
|
*
|
|
254
254
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
255
255
|
*
|
|
256
256
|
* @example
|
|
257
|
-
* await client.archives.modifyArchive("
|
|
257
|
+
* await client.archives.modifyArchive("archive-123e4567-e89b-42d3-8456-426614174000")
|
|
258
258
|
*/
|
|
259
259
|
modifyArchive(archiveId, request = {}, requestOptions) {
|
|
260
260
|
return core.HttpResponsePromise.fromPromise(this.__modifyArchive(archiveId, request, requestOptions));
|
|
@@ -267,7 +267,7 @@ class Archives {
|
|
|
267
267
|
method: "PATCH",
|
|
268
268
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
269
269
|
? yield core.Supplier.get(this._options.project)
|
|
270
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
270
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
271
271
|
contentType: "application/json",
|
|
272
272
|
requestType: "json",
|
|
273
273
|
body: serializers.ArchiveUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -111,7 +111,7 @@ class Batches {
|
|
|
111
111
|
method: "GET",
|
|
112
112
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
113
113
|
? yield core.Supplier.get(this._options.project)
|
|
114
|
-
: 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.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
115
115
|
contentType: "application/json",
|
|
116
116
|
queryParameters: _queryParams,
|
|
117
117
|
requestType: "json",
|
|
@@ -202,7 +202,7 @@ class Batches {
|
|
|
202
202
|
method: "POST",
|
|
203
203
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
204
204
|
? yield core.Supplier.get(this._options.project)
|
|
205
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
205
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
206
206
|
contentType: "application/json",
|
|
207
207
|
requestType: "json",
|
|
208
208
|
body: serializers.CreateBatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -279,7 +279,7 @@ class Batches {
|
|
|
279
279
|
method: "GET",
|
|
280
280
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
281
281
|
? yield core.Supplier.get(this._options.project)
|
|
282
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
282
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
283
283
|
contentType: "application/json",
|
|
284
284
|
requestType: "json",
|
|
285
285
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -355,7 +355,7 @@ class Batches {
|
|
|
355
355
|
method: "PATCH",
|
|
356
356
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
357
357
|
? yield core.Supplier.get(this._options.project)
|
|
358
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
358
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
359
359
|
contentType: "application/json",
|
|
360
360
|
requestType: "json",
|
|
361
361
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -111,7 +111,7 @@ class Messages {
|
|
|
111
111
|
method: "GET",
|
|
112
112
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
113
113
|
? yield core.Supplier.get(this._options.project)
|
|
114
|
-
: 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.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
115
115
|
contentType: "application/json",
|
|
116
116
|
queryParameters: _queryParams,
|
|
117
117
|
requestType: "json",
|
|
@@ -87,36 +87,36 @@ export declare class Blocks {
|
|
|
87
87
|
count(requestOptions?: Blocks.RequestOptions): core.HttpResponsePromise<number>;
|
|
88
88
|
private __count;
|
|
89
89
|
/**
|
|
90
|
-
* @param {string} blockId
|
|
90
|
+
* @param {string} blockId - The ID of the block in the format 'block-<uuid4>'
|
|
91
91
|
* @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
|
|
92
92
|
*
|
|
93
93
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
94
94
|
*
|
|
95
95
|
* @example
|
|
96
|
-
* await client.blocks.retrieve("
|
|
96
|
+
* await client.blocks.retrieve("block-123e4567-e89b-42d3-8456-426614174000")
|
|
97
97
|
*/
|
|
98
98
|
retrieve(blockId: string, requestOptions?: Blocks.RequestOptions): core.HttpResponsePromise<Letta.Block>;
|
|
99
99
|
private __retrieve;
|
|
100
100
|
/**
|
|
101
|
-
* @param {string} blockId
|
|
101
|
+
* @param {string} blockId - The ID of the block in the format 'block-<uuid4>'
|
|
102
102
|
* @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
|
|
103
103
|
*
|
|
104
104
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
105
105
|
*
|
|
106
106
|
* @example
|
|
107
|
-
* await client.blocks.delete("
|
|
107
|
+
* await client.blocks.delete("block-123e4567-e89b-42d3-8456-426614174000")
|
|
108
108
|
*/
|
|
109
109
|
delete(blockId: string, requestOptions?: Blocks.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
110
110
|
private __delete;
|
|
111
111
|
/**
|
|
112
|
-
* @param {string} blockId
|
|
112
|
+
* @param {string} blockId - The ID of the block in the format 'block-<uuid4>'
|
|
113
113
|
* @param {Letta.BlockUpdate} request
|
|
114
114
|
* @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
|
|
115
115
|
*
|
|
116
116
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
117
117
|
*
|
|
118
118
|
* @example
|
|
119
|
-
* await client.blocks.modify("
|
|
119
|
+
* await client.blocks.modify("block-123e4567-e89b-42d3-8456-426614174000", {})
|
|
120
120
|
*/
|
|
121
121
|
modify(blockId: string, request: Letta.BlockUpdate, requestOptions?: Blocks.RequestOptions): core.HttpResponsePromise<Letta.Block>;
|
|
122
122
|
private __modify;
|
|
@@ -165,7 +165,7 @@ class Blocks {
|
|
|
165
165
|
method: "GET",
|
|
166
166
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
167
167
|
? yield core.Supplier.get(this._options.project)
|
|
168
|
-
: 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.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
169
169
|
contentType: "application/json",
|
|
170
170
|
queryParameters: _queryParams,
|
|
171
171
|
requestType: "json",
|
|
@@ -243,7 +243,7 @@ class Blocks {
|
|
|
243
243
|
method: "POST",
|
|
244
244
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
245
245
|
? yield core.Supplier.get(this._options.project)
|
|
246
|
-
: 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.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
247
247
|
contentType: "application/json",
|
|
248
248
|
requestType: "json",
|
|
249
249
|
body: serializers.CreateBlock.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -319,7 +319,7 @@ class Blocks {
|
|
|
319
319
|
method: "GET",
|
|
320
320
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
321
321
|
? yield core.Supplier.get(this._options.project)
|
|
322
|
-
: 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.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
323
323
|
contentType: "application/json",
|
|
324
324
|
requestType: "json",
|
|
325
325
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -374,13 +374,13 @@ class Blocks {
|
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
376
|
/**
|
|
377
|
-
* @param {string} blockId
|
|
377
|
+
* @param {string} blockId - The ID of the block in the format 'block-<uuid4>'
|
|
378
378
|
* @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
|
|
379
379
|
*
|
|
380
380
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
381
381
|
*
|
|
382
382
|
* @example
|
|
383
|
-
* await client.blocks.retrieve("
|
|
383
|
+
* await client.blocks.retrieve("block-123e4567-e89b-42d3-8456-426614174000")
|
|
384
384
|
*/
|
|
385
385
|
retrieve(blockId, requestOptions) {
|
|
386
386
|
return core.HttpResponsePromise.fromPromise(this.__retrieve(blockId, requestOptions));
|
|
@@ -393,7 +393,7 @@ class Blocks {
|
|
|
393
393
|
method: "GET",
|
|
394
394
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
395
395
|
? yield core.Supplier.get(this._options.project)
|
|
396
|
-
: 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.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
397
397
|
contentType: "application/json",
|
|
398
398
|
requestType: "json",
|
|
399
399
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -448,13 +448,13 @@ class Blocks {
|
|
|
448
448
|
});
|
|
449
449
|
}
|
|
450
450
|
/**
|
|
451
|
-
* @param {string} blockId
|
|
451
|
+
* @param {string} blockId - The ID of the block in the format 'block-<uuid4>'
|
|
452
452
|
* @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
|
|
453
453
|
*
|
|
454
454
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
455
455
|
*
|
|
456
456
|
* @example
|
|
457
|
-
* await client.blocks.delete("
|
|
457
|
+
* await client.blocks.delete("block-123e4567-e89b-42d3-8456-426614174000")
|
|
458
458
|
*/
|
|
459
459
|
delete(blockId, requestOptions) {
|
|
460
460
|
return core.HttpResponsePromise.fromPromise(this.__delete(blockId, requestOptions));
|
|
@@ -467,7 +467,7 @@ class Blocks {
|
|
|
467
467
|
method: "DELETE",
|
|
468
468
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
469
469
|
? yield core.Supplier.get(this._options.project)
|
|
470
|
-
: 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.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
471
471
|
contentType: "application/json",
|
|
472
472
|
requestType: "json",
|
|
473
473
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -513,14 +513,14 @@ class Blocks {
|
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
515
|
/**
|
|
516
|
-
* @param {string} blockId
|
|
516
|
+
* @param {string} blockId - The ID of the block in the format 'block-<uuid4>'
|
|
517
517
|
* @param {Letta.BlockUpdate} request
|
|
518
518
|
* @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
|
|
519
519
|
*
|
|
520
520
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
521
521
|
*
|
|
522
522
|
* @example
|
|
523
|
-
* await client.blocks.modify("
|
|
523
|
+
* await client.blocks.modify("block-123e4567-e89b-42d3-8456-426614174000", {})
|
|
524
524
|
*/
|
|
525
525
|
modify(blockId, request, requestOptions) {
|
|
526
526
|
return core.HttpResponsePromise.fromPromise(this.__modify(blockId, request, requestOptions));
|
|
@@ -533,7 +533,7 @@ class Blocks {
|
|
|
533
533
|
method: "PATCH",
|
|
534
534
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
535
535
|
? yield core.Supplier.get(this._options.project)
|
|
536
|
-
: 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.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
537
537
|
contentType: "application/json",
|
|
538
538
|
requestType: "json",
|
|
539
539
|
body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -34,14 +34,14 @@ export declare class Agents {
|
|
|
34
34
|
* Retrieves all agents associated with the specified block.
|
|
35
35
|
* Raises a 404 if the block does not exist.
|
|
36
36
|
*
|
|
37
|
-
* @param {string} blockId
|
|
37
|
+
* @param {string} blockId - The ID of the block in the format 'block-<uuid4>'
|
|
38
38
|
* @param {Letta.blocks.AgentsListRequest} request
|
|
39
39
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
40
40
|
*
|
|
41
41
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
44
|
-
* await client.blocks.agents.list("
|
|
44
|
+
* await client.blocks.agents.list("block-123e4567-e89b-42d3-8456-426614174000", {
|
|
45
45
|
* before: "before",
|
|
46
46
|
* after: "after",
|
|
47
47
|
* limit: 1,
|
|
@@ -63,14 +63,14 @@ class Agents {
|
|
|
63
63
|
* Retrieves all agents associated with the specified block.
|
|
64
64
|
* Raises a 404 if the block does not exist.
|
|
65
65
|
*
|
|
66
|
-
* @param {string} blockId
|
|
66
|
+
* @param {string} blockId - The ID of the block in the format 'block-<uuid4>'
|
|
67
67
|
* @param {Letta.blocks.AgentsListRequest} request
|
|
68
68
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
69
69
|
*
|
|
70
70
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
71
71
|
*
|
|
72
72
|
* @example
|
|
73
|
-
* await client.blocks.agents.list("
|
|
73
|
+
* await client.blocks.agents.list("block-123e4567-e89b-42d3-8456-426614174000", {
|
|
74
74
|
* before: "before",
|
|
75
75
|
* after: "after",
|
|
76
76
|
* limit: 1,
|
|
@@ -116,7 +116,7 @@ class Agents {
|
|
|
116
116
|
method: "GET",
|
|
117
117
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
118
118
|
? yield core.Supplier.get(this._options.project)
|
|
119
|
-
: 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.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
120
120
|
contentType: "application/json",
|
|
121
121
|
queryParameters: _queryParams,
|
|
122
122
|
requestType: "json",
|
|
@@ -93,7 +93,7 @@ class Chat {
|
|
|
93
93
|
method: "POST",
|
|
94
94
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
95
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.
|
|
96
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
97
97
|
contentType: "application/json",
|
|
98
98
|
requestType: "json",
|
|
99
99
|
body: serializers.ChatCompletionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -96,7 +96,7 @@ class ClientSideAccessTokens {
|
|
|
96
96
|
method: "GET",
|
|
97
97
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
98
98
|
? yield core.Supplier.get(this._options.project)
|
|
99
|
-
: 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.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
100
100
|
contentType: "application/json",
|
|
101
101
|
queryParameters: _queryParams,
|
|
102
102
|
requestType: "json",
|
|
@@ -174,7 +174,7 @@ class ClientSideAccessTokens {
|
|
|
174
174
|
method: "POST",
|
|
175
175
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
176
176
|
? yield core.Supplier.get(this._options.project)
|
|
177
|
-
: 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.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
178
178
|
contentType: "application/json",
|
|
179
179
|
requestType: "json",
|
|
180
180
|
body: serializers.ClientSideAccessTokensCreateRequest.jsonOrThrow(request, {
|
|
@@ -250,7 +250,7 @@ class ClientSideAccessTokens {
|
|
|
250
250
|
method: "DELETE",
|
|
251
251
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
252
252
|
? yield core.Supplier.get(this._options.project)
|
|
253
|
-
: 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.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
254
254
|
contentType: "application/json",
|
|
255
255
|
requestType: "json",
|
|
256
256
|
body: request,
|
|
@@ -95,7 +95,7 @@ class Folders {
|
|
|
95
95
|
method: "GET",
|
|
96
96
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
97
97
|
? yield core.Supplier.get(this._options.project)
|
|
98
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
98
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
99
99
|
contentType: "application/json",
|
|
100
100
|
requestType: "json",
|
|
101
101
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -171,7 +171,7 @@ class Folders {
|
|
|
171
171
|
method: "GET",
|
|
172
172
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
173
173
|
? yield core.Supplier.get(this._options.project)
|
|
174
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
174
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
175
175
|
contentType: "application/json",
|
|
176
176
|
requestType: "json",
|
|
177
177
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -247,7 +247,7 @@ class Folders {
|
|
|
247
247
|
method: "DELETE",
|
|
248
248
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
249
249
|
? yield core.Supplier.get(this._options.project)
|
|
250
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
250
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
251
251
|
contentType: "application/json",
|
|
252
252
|
requestType: "json",
|
|
253
253
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -315,7 +315,7 @@ class Folders {
|
|
|
315
315
|
method: "PATCH",
|
|
316
316
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
317
317
|
? yield core.Supplier.get(this._options.project)
|
|
318
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
318
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
319
319
|
contentType: "application/json",
|
|
320
320
|
requestType: "json",
|
|
321
321
|
body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -395,7 +395,7 @@ class Folders {
|
|
|
395
395
|
method: "GET",
|
|
396
396
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
397
397
|
? yield core.Supplier.get(this._options.project)
|
|
398
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
398
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
399
399
|
contentType: "application/json",
|
|
400
400
|
requestType: "json",
|
|
401
401
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -484,7 +484,7 @@ class Folders {
|
|
|
484
484
|
method: "GET",
|
|
485
485
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
486
486
|
? yield core.Supplier.get(this._options.project)
|
|
487
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
487
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
488
488
|
contentType: "application/json",
|
|
489
489
|
queryParameters: _queryParams,
|
|
490
490
|
requestType: "json",
|
|
@@ -590,7 +590,7 @@ class Folders {
|
|
|
590
590
|
method: "GET",
|
|
591
591
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
592
592
|
? yield core.Supplier.get(this._options.project)
|
|
593
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
593
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
594
594
|
contentType: "application/json",
|
|
595
595
|
queryParameters: _queryParams,
|
|
596
596
|
requestType: "json",
|
|
@@ -669,7 +669,7 @@ class Folders {
|
|
|
669
669
|
method: "POST",
|
|
670
670
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
671
671
|
? yield core.Supplier.get(this._options.project)
|
|
672
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
672
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
673
673
|
contentType: "application/json",
|
|
674
674
|
requestType: "json",
|
|
675
675
|
body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -107,7 +107,7 @@ class Agents {
|
|
|
107
107
|
method: "GET",
|
|
108
108
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
109
109
|
? yield core.Supplier.get(this._options.project)
|
|
110
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
110
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
111
111
|
contentType: "application/json",
|
|
112
112
|
queryParameters: _queryParams,
|
|
113
113
|
requestType: "json",
|
|
@@ -96,7 +96,7 @@ class Files {
|
|
|
96
96
|
method: "POST",
|
|
97
97
|
headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
98
98
|
? yield core.Supplier.get(this._options.project)
|
|
99
|
-
: 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.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
100
100
|
queryParameters: _queryParams,
|
|
101
101
|
requestType: "file",
|
|
102
102
|
duplex: _maybeEncodedRequest.duplex,
|
|
@@ -204,7 +204,7 @@ class Files {
|
|
|
204
204
|
method: "GET",
|
|
205
205
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
206
206
|
? yield core.Supplier.get(this._options.project)
|
|
207
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
207
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
208
208
|
contentType: "application/json",
|
|
209
209
|
queryParameters: _queryParams,
|
|
210
210
|
requestType: "json",
|
|
@@ -282,7 +282,7 @@ class Files {
|
|
|
282
282
|
method: "DELETE",
|
|
283
283
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
284
284
|
? yield core.Supplier.get(this._options.project)
|
|
285
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
285
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
286
286
|
contentType: "application/json",
|
|
287
287
|
requestType: "json",
|
|
288
288
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|