@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
|
@@ -125,14 +125,14 @@ export declare class Agents {
|
|
|
125
125
|
* - Legacy format (use_legacy_format=true): Single agent with inline tools/blocks
|
|
126
126
|
* - New format (default): Multi-entity format with separate agents, tools, blocks, files, etc.
|
|
127
127
|
*
|
|
128
|
-
* @param {string} agentId
|
|
128
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
129
129
|
* @param {Letta.AgentsExportFileRequest} request
|
|
130
130
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
131
131
|
*
|
|
132
132
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
133
133
|
*
|
|
134
134
|
* @example
|
|
135
|
-
* await client.agents.exportFile("
|
|
135
|
+
* await client.agents.exportFile("agent-123e4567-e89b-42d3-8456-426614174000", {
|
|
136
136
|
* maxSteps: 1,
|
|
137
137
|
* useLegacyFormat: true
|
|
138
138
|
* })
|
|
@@ -159,41 +159,41 @@ export declare class Agents {
|
|
|
159
159
|
/**
|
|
160
160
|
* Get the state of the agent.
|
|
161
161
|
*
|
|
162
|
-
* @param {string} agentId
|
|
162
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
163
163
|
* @param {Letta.AgentsRetrieveRequest} request
|
|
164
164
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
165
165
|
*
|
|
166
166
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
167
167
|
*
|
|
168
168
|
* @example
|
|
169
|
-
* await client.agents.retrieve("
|
|
169
|
+
* await client.agents.retrieve("agent-123e4567-e89b-42d3-8456-426614174000")
|
|
170
170
|
*/
|
|
171
171
|
retrieve(agentId: string, request?: Letta.AgentsRetrieveRequest, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Letta.AgentState>;
|
|
172
172
|
private __retrieve;
|
|
173
173
|
/**
|
|
174
174
|
* Delete an agent.
|
|
175
175
|
*
|
|
176
|
-
* @param {string} agentId
|
|
176
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
177
177
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
178
178
|
*
|
|
179
179
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
180
180
|
*
|
|
181
181
|
* @example
|
|
182
|
-
* await client.agents.delete("
|
|
182
|
+
* await client.agents.delete("agent-123e4567-e89b-42d3-8456-426614174000")
|
|
183
183
|
*/
|
|
184
184
|
delete(agentId: string, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
185
185
|
private __delete;
|
|
186
186
|
/**
|
|
187
187
|
* Update an existing agent.
|
|
188
188
|
*
|
|
189
|
-
* @param {string} agentId
|
|
189
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
190
190
|
* @param {Letta.UpdateAgent} request
|
|
191
191
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
192
192
|
*
|
|
193
193
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
194
194
|
*
|
|
195
195
|
* @example
|
|
196
|
-
* await client.agents.modify("
|
|
196
|
+
* await client.agents.modify("agent-123e4567-e89b-42d3-8456-426614174000")
|
|
197
197
|
*/
|
|
198
198
|
modify(agentId: string, request?: Letta.UpdateAgent, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Letta.AgentState>;
|
|
199
199
|
private __modify;
|
|
@@ -223,7 +223,7 @@ class Agents {
|
|
|
223
223
|
method: "GET",
|
|
224
224
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
225
225
|
? yield core.Supplier.get(this._options.project)
|
|
226
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
226
|
+
: 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),
|
|
227
227
|
contentType: "application/json",
|
|
228
228
|
queryParameters: _queryParams,
|
|
229
229
|
requestType: "json",
|
|
@@ -300,7 +300,7 @@ class Agents {
|
|
|
300
300
|
method: "POST",
|
|
301
301
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
302
302
|
? yield core.Supplier.get(this._options.project)
|
|
303
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
303
|
+
: 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),
|
|
304
304
|
contentType: "application/json",
|
|
305
305
|
requestType: "json",
|
|
306
306
|
body: serializers.CreateAgentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -376,7 +376,7 @@ class Agents {
|
|
|
376
376
|
method: "GET",
|
|
377
377
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
378
378
|
? yield core.Supplier.get(this._options.project)
|
|
379
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
379
|
+
: 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),
|
|
380
380
|
contentType: "application/json",
|
|
381
381
|
requestType: "json",
|
|
382
382
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -437,14 +437,14 @@ class Agents {
|
|
|
437
437
|
* - Legacy format (use_legacy_format=true): Single agent with inline tools/blocks
|
|
438
438
|
* - New format (default): Multi-entity format with separate agents, tools, blocks, files, etc.
|
|
439
439
|
*
|
|
440
|
-
* @param {string} agentId
|
|
440
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
441
441
|
* @param {Letta.AgentsExportFileRequest} request
|
|
442
442
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
443
443
|
*
|
|
444
444
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
445
445
|
*
|
|
446
446
|
* @example
|
|
447
|
-
* await client.agents.exportFile("
|
|
447
|
+
* await client.agents.exportFile("agent-123e4567-e89b-42d3-8456-426614174000", {
|
|
448
448
|
* maxSteps: 1,
|
|
449
449
|
* useLegacyFormat: true
|
|
450
450
|
* })
|
|
@@ -468,7 +468,7 @@ class Agents {
|
|
|
468
468
|
method: "GET",
|
|
469
469
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
470
470
|
? yield core.Supplier.get(this._options.project)
|
|
471
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
471
|
+
: 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),
|
|
472
472
|
contentType: "application/json",
|
|
473
473
|
queryParameters: _queryParams,
|
|
474
474
|
requestType: "json",
|
|
@@ -570,7 +570,7 @@ class Agents {
|
|
|
570
570
|
method: "POST",
|
|
571
571
|
headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
572
572
|
? yield core.Supplier.get(this._options.project)
|
|
573
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
573
|
+
: 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, "x-override-embedding-model": request.overrideEmbeddingModel != null ? request.overrideEmbeddingModel : undefined }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
574
574
|
requestType: "file",
|
|
575
575
|
duplex: _maybeEncodedRequest.duplex,
|
|
576
576
|
body: _maybeEncodedRequest.body,
|
|
@@ -628,14 +628,14 @@ class Agents {
|
|
|
628
628
|
/**
|
|
629
629
|
* Get the state of the agent.
|
|
630
630
|
*
|
|
631
|
-
* @param {string} agentId
|
|
631
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
632
632
|
* @param {Letta.AgentsRetrieveRequest} request
|
|
633
633
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
634
634
|
*
|
|
635
635
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
636
636
|
*
|
|
637
637
|
* @example
|
|
638
|
-
* await client.agents.retrieve("
|
|
638
|
+
* await client.agents.retrieve("agent-123e4567-e89b-42d3-8456-426614174000")
|
|
639
639
|
*/
|
|
640
640
|
retrieve(agentId, request = {}, requestOptions) {
|
|
641
641
|
return core.HttpResponsePromise.fromPromise(this.__retrieve(agentId, request, requestOptions));
|
|
@@ -658,7 +658,7 @@ class Agents {
|
|
|
658
658
|
method: "GET",
|
|
659
659
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
660
660
|
? yield core.Supplier.get(this._options.project)
|
|
661
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
661
|
+
: 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),
|
|
662
662
|
contentType: "application/json",
|
|
663
663
|
queryParameters: _queryParams,
|
|
664
664
|
requestType: "json",
|
|
@@ -716,13 +716,13 @@ class Agents {
|
|
|
716
716
|
/**
|
|
717
717
|
* Delete an agent.
|
|
718
718
|
*
|
|
719
|
-
* @param {string} agentId
|
|
719
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
720
720
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
721
721
|
*
|
|
722
722
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
723
723
|
*
|
|
724
724
|
* @example
|
|
725
|
-
* await client.agents.delete("
|
|
725
|
+
* await client.agents.delete("agent-123e4567-e89b-42d3-8456-426614174000")
|
|
726
726
|
*/
|
|
727
727
|
delete(agentId, requestOptions) {
|
|
728
728
|
return core.HttpResponsePromise.fromPromise(this.__delete(agentId, requestOptions));
|
|
@@ -735,7 +735,7 @@ class Agents {
|
|
|
735
735
|
method: "DELETE",
|
|
736
736
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
737
737
|
? yield core.Supplier.get(this._options.project)
|
|
738
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
738
|
+
: 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),
|
|
739
739
|
contentType: "application/json",
|
|
740
740
|
requestType: "json",
|
|
741
741
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -783,14 +783,14 @@ class Agents {
|
|
|
783
783
|
/**
|
|
784
784
|
* Update an existing agent.
|
|
785
785
|
*
|
|
786
|
-
* @param {string} agentId
|
|
786
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
787
787
|
* @param {Letta.UpdateAgent} request
|
|
788
788
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
789
789
|
*
|
|
790
790
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
791
791
|
*
|
|
792
792
|
* @example
|
|
793
|
-
* await client.agents.modify("
|
|
793
|
+
* await client.agents.modify("agent-123e4567-e89b-42d3-8456-426614174000")
|
|
794
794
|
*/
|
|
795
795
|
modify(agentId, request = {}, requestOptions) {
|
|
796
796
|
return core.HttpResponsePromise.fromPromise(this.__modify(agentId, request, requestOptions));
|
|
@@ -803,7 +803,7 @@ class Agents {
|
|
|
803
803
|
method: "PATCH",
|
|
804
804
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
805
805
|
? yield core.Supplier.get(this._options.project)
|
|
806
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
806
|
+
: 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),
|
|
807
807
|
contentType: "application/json",
|
|
808
808
|
requestType: "json",
|
|
809
809
|
body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -880,7 +880,7 @@ class Agents {
|
|
|
880
880
|
method: "POST",
|
|
881
881
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
882
882
|
? yield core.Supplier.get(this._options.project)
|
|
883
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
883
|
+
: 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),
|
|
884
884
|
contentType: "application/json",
|
|
885
885
|
requestType: "json",
|
|
886
886
|
body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -34,13 +34,13 @@ export declare class Blocks {
|
|
|
34
34
|
* Retrieve a core memory block from an agent.
|
|
35
35
|
*
|
|
36
36
|
* @param {string} agentId
|
|
37
|
-
* @param {string} blockLabel
|
|
37
|
+
* @param {string} blockLabel - The ID of the agent in the format 'agent-<uuid4>'
|
|
38
38
|
* @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
39
|
*
|
|
40
40
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.agents.blocks.retrieve("agent_id", "
|
|
43
|
+
* await client.agents.blocks.retrieve("agent_id", "agent-123e4567-e89b-42d3-8456-426614174000")
|
|
44
44
|
*/
|
|
45
45
|
retrieve(agentId: string, blockLabel: string, requestOptions?: Blocks.RequestOptions): core.HttpResponsePromise<Letta.Block>;
|
|
46
46
|
private __retrieve;
|
|
@@ -48,28 +48,28 @@ export declare class Blocks {
|
|
|
48
48
|
* Updates a core memory block of an agent.
|
|
49
49
|
*
|
|
50
50
|
* @param {string} agentId
|
|
51
|
-
* @param {string} blockLabel
|
|
51
|
+
* @param {string} blockLabel - The ID of the agent in the format 'agent-<uuid4>'
|
|
52
52
|
* @param {Letta.BlockUpdate} request
|
|
53
53
|
* @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
54
|
*
|
|
55
55
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
|
-
* await client.agents.blocks.modify("agent_id", "
|
|
58
|
+
* await client.agents.blocks.modify("agent_id", "agent-123e4567-e89b-42d3-8456-426614174000", {})
|
|
59
59
|
*/
|
|
60
60
|
modify(agentId: string, blockLabel: string, request: Letta.BlockUpdate, requestOptions?: Blocks.RequestOptions): core.HttpResponsePromise<Letta.Block>;
|
|
61
61
|
private __modify;
|
|
62
62
|
/**
|
|
63
63
|
* Retrieve the core memory blocks of a specific 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.BlocksListRequest} request
|
|
67
67
|
* @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
68
|
*
|
|
69
69
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
|
-
* await client.agents.blocks.list("
|
|
72
|
+
* await client.agents.blocks.list("agent-123e4567-e89b-42d3-8456-426614174000", {
|
|
73
73
|
* before: "before",
|
|
74
74
|
* after: "after",
|
|
75
75
|
* limit: 1,
|
|
@@ -82,28 +82,28 @@ export declare class Blocks {
|
|
|
82
82
|
/**
|
|
83
83
|
* Attach a core memory block to an agent.
|
|
84
84
|
*
|
|
85
|
-
* @param {string} agentId
|
|
86
|
-
* @param {string} blockId
|
|
85
|
+
* @param {string} agentId - The ID of the block in the format 'block-<uuid4>'
|
|
86
|
+
* @param {string} blockId - The ID of the agent in the format 'agent-<uuid4>'
|
|
87
87
|
* @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
|
|
88
88
|
*
|
|
89
89
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
90
90
|
*
|
|
91
91
|
* @example
|
|
92
|
-
* await client.agents.blocks.attach("
|
|
92
|
+
* await client.agents.blocks.attach("block-123e4567-e89b-42d3-8456-426614174000", "agent-123e4567-e89b-42d3-8456-426614174000")
|
|
93
93
|
*/
|
|
94
94
|
attach(agentId: string, blockId: string, requestOptions?: Blocks.RequestOptions): core.HttpResponsePromise<Letta.AgentState>;
|
|
95
95
|
private __attach;
|
|
96
96
|
/**
|
|
97
97
|
* Detach a core memory block from an agent.
|
|
98
98
|
*
|
|
99
|
-
* @param {string} agentId
|
|
100
|
-
* @param {string} blockId
|
|
99
|
+
* @param {string} agentId - The ID of the block in the format 'block-<uuid4>'
|
|
100
|
+
* @param {string} blockId - The ID of the agent in the format 'agent-<uuid4>'
|
|
101
101
|
* @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
|
|
102
102
|
*
|
|
103
103
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
104
104
|
*
|
|
105
105
|
* @example
|
|
106
|
-
* await client.agents.blocks.detach("
|
|
106
|
+
* await client.agents.blocks.detach("block-123e4567-e89b-42d3-8456-426614174000", "agent-123e4567-e89b-42d3-8456-426614174000")
|
|
107
107
|
*/
|
|
108
108
|
detach(agentId: string, blockId: string, requestOptions?: Blocks.RequestOptions): core.HttpResponsePromise<Letta.AgentState>;
|
|
109
109
|
private __detach;
|
|
@@ -63,13 +63,13 @@ class Blocks {
|
|
|
63
63
|
* Retrieve a core memory block from an agent.
|
|
64
64
|
*
|
|
65
65
|
* @param {string} agentId
|
|
66
|
-
* @param {string} blockLabel
|
|
66
|
+
* @param {string} blockLabel - The ID of the agent in the format 'agent-<uuid4>'
|
|
67
67
|
* @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
68
|
*
|
|
69
69
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
|
-
* await client.agents.blocks.retrieve("agent_id", "
|
|
72
|
+
* await client.agents.blocks.retrieve("agent_id", "agent-123e4567-e89b-42d3-8456-426614174000")
|
|
73
73
|
*/
|
|
74
74
|
retrieve(agentId, blockLabel, requestOptions) {
|
|
75
75
|
return core.HttpResponsePromise.fromPromise(this.__retrieve(agentId, blockLabel, requestOptions));
|
|
@@ -82,7 +82,7 @@ class Blocks {
|
|
|
82
82
|
method: "GET",
|
|
83
83
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
84
84
|
? yield core.Supplier.get(this._options.project)
|
|
85
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
85
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
86
86
|
contentType: "application/json",
|
|
87
87
|
requestType: "json",
|
|
88
88
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -140,14 +140,14 @@ class Blocks {
|
|
|
140
140
|
* Updates a core memory block of an agent.
|
|
141
141
|
*
|
|
142
142
|
* @param {string} agentId
|
|
143
|
-
* @param {string} blockLabel
|
|
143
|
+
* @param {string} blockLabel - The ID of the agent in the format 'agent-<uuid4>'
|
|
144
144
|
* @param {Letta.BlockUpdate} request
|
|
145
145
|
* @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
|
|
146
146
|
*
|
|
147
147
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
148
148
|
*
|
|
149
149
|
* @example
|
|
150
|
-
* await client.agents.blocks.modify("agent_id", "
|
|
150
|
+
* await client.agents.blocks.modify("agent_id", "agent-123e4567-e89b-42d3-8456-426614174000", {})
|
|
151
151
|
*/
|
|
152
152
|
modify(agentId, blockLabel, request, requestOptions) {
|
|
153
153
|
return core.HttpResponsePromise.fromPromise(this.__modify(agentId, blockLabel, request, requestOptions));
|
|
@@ -160,7 +160,7 @@ class Blocks {
|
|
|
160
160
|
method: "PATCH",
|
|
161
161
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
162
162
|
? yield core.Supplier.get(this._options.project)
|
|
163
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
163
|
+
: 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),
|
|
164
164
|
contentType: "application/json",
|
|
165
165
|
requestType: "json",
|
|
166
166
|
body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -218,14 +218,14 @@ class Blocks {
|
|
|
218
218
|
/**
|
|
219
219
|
* Retrieve the core memory blocks of a specific agent.
|
|
220
220
|
*
|
|
221
|
-
* @param {string} agentId
|
|
221
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
222
222
|
* @param {Letta.agents.BlocksListRequest} request
|
|
223
223
|
* @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
|
|
224
224
|
*
|
|
225
225
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
226
226
|
*
|
|
227
227
|
* @example
|
|
228
|
-
* await client.agents.blocks.list("
|
|
228
|
+
* await client.agents.blocks.list("agent-123e4567-e89b-42d3-8456-426614174000", {
|
|
229
229
|
* before: "before",
|
|
230
230
|
* after: "after",
|
|
231
231
|
* limit: 1,
|
|
@@ -263,7 +263,7 @@ class Blocks {
|
|
|
263
263
|
method: "GET",
|
|
264
264
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
265
265
|
? yield core.Supplier.get(this._options.project)
|
|
266
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
266
|
+
: 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),
|
|
267
267
|
contentType: "application/json",
|
|
268
268
|
queryParameters: _queryParams,
|
|
269
269
|
requestType: "json",
|
|
@@ -321,14 +321,14 @@ class Blocks {
|
|
|
321
321
|
/**
|
|
322
322
|
* Attach a core memory block to an agent.
|
|
323
323
|
*
|
|
324
|
-
* @param {string} agentId
|
|
325
|
-
* @param {string} blockId
|
|
324
|
+
* @param {string} agentId - The ID of the block in the format 'block-<uuid4>'
|
|
325
|
+
* @param {string} blockId - The ID of the agent in the format 'agent-<uuid4>'
|
|
326
326
|
* @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
|
|
327
327
|
*
|
|
328
328
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
329
329
|
*
|
|
330
330
|
* @example
|
|
331
|
-
* await client.agents.blocks.attach("
|
|
331
|
+
* await client.agents.blocks.attach("block-123e4567-e89b-42d3-8456-426614174000", "agent-123e4567-e89b-42d3-8456-426614174000")
|
|
332
332
|
*/
|
|
333
333
|
attach(agentId, blockId, requestOptions) {
|
|
334
334
|
return core.HttpResponsePromise.fromPromise(this.__attach(agentId, blockId, requestOptions));
|
|
@@ -341,7 +341,7 @@ class Blocks {
|
|
|
341
341
|
method: "PATCH",
|
|
342
342
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
343
343
|
? yield core.Supplier.get(this._options.project)
|
|
344
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
344
|
+
: 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),
|
|
345
345
|
contentType: "application/json",
|
|
346
346
|
requestType: "json",
|
|
347
347
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -398,14 +398,14 @@ class Blocks {
|
|
|
398
398
|
/**
|
|
399
399
|
* Detach a core memory block from an agent.
|
|
400
400
|
*
|
|
401
|
-
* @param {string} agentId
|
|
402
|
-
* @param {string} blockId
|
|
401
|
+
* @param {string} agentId - The ID of the block in the format 'block-<uuid4>'
|
|
402
|
+
* @param {string} blockId - The ID of the agent in the format 'agent-<uuid4>'
|
|
403
403
|
* @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
|
|
404
404
|
*
|
|
405
405
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
406
406
|
*
|
|
407
407
|
* @example
|
|
408
|
-
* await client.agents.blocks.detach("
|
|
408
|
+
* await client.agents.blocks.detach("block-123e4567-e89b-42d3-8456-426614174000", "agent-123e4567-e89b-42d3-8456-426614174000")
|
|
409
409
|
*/
|
|
410
410
|
detach(agentId, blockId, requestOptions) {
|
|
411
411
|
return core.HttpResponsePromise.fromPromise(this.__detach(agentId, blockId, requestOptions));
|
|
@@ -418,7 +418,7 @@ class Blocks {
|
|
|
418
418
|
method: "PATCH",
|
|
419
419
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
420
420
|
? yield core.Supplier.get(this._options.project)
|
|
421
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
421
|
+
: 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),
|
|
422
422
|
contentType: "application/json",
|
|
423
423
|
requestType: "json",
|
|
424
424
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -33,13 +33,13 @@ export declare class Context {
|
|
|
33
33
|
/**
|
|
34
34
|
* Retrieve the context window of a specific agent.
|
|
35
35
|
*
|
|
36
|
-
* @param {string} agentId
|
|
36
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
37
37
|
* @param {Context.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
38
|
*
|
|
39
39
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
|
-
* await client.agents.context.retrieve("
|
|
42
|
+
* await client.agents.context.retrieve("agent-123e4567-e89b-42d3-8456-426614174000")
|
|
43
43
|
*/
|
|
44
44
|
retrieve(agentId: string, requestOptions?: Context.RequestOptions): core.HttpResponsePromise<Letta.ContextWindowOverview>;
|
|
45
45
|
private __retrieve;
|
|
@@ -62,13 +62,13 @@ class Context {
|
|
|
62
62
|
/**
|
|
63
63
|
* Retrieve the context window of a specific agent.
|
|
64
64
|
*
|
|
65
|
-
* @param {string} agentId
|
|
65
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
66
66
|
* @param {Context.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
67
|
*
|
|
68
68
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
|
-
* await client.agents.context.retrieve("
|
|
71
|
+
* await client.agents.context.retrieve("agent-123e4567-e89b-42d3-8456-426614174000")
|
|
72
72
|
*/
|
|
73
73
|
retrieve(agentId, requestOptions) {
|
|
74
74
|
return core.HttpResponsePromise.fromPromise(this.__retrieve(agentId, requestOptions));
|
|
@@ -81,7 +81,7 @@ class Context {
|
|
|
81
81
|
method: "GET",
|
|
82
82
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
83
83
|
? yield core.Supplier.get(this._options.project)
|
|
84
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
84
|
+
: 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),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
requestType: "json",
|
|
87
87
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -34,13 +34,13 @@ export declare class CoreMemory {
|
|
|
34
34
|
* Retrieve the memory state of a specific agent.
|
|
35
35
|
* This endpoint fetches the current memory state of the agent identified by the user ID and agent ID.
|
|
36
36
|
*
|
|
37
|
-
* @param {string} agentId
|
|
37
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
38
38
|
* @param {CoreMemory.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
39
|
*
|
|
40
40
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.agents.coreMemory.retrieve("
|
|
43
|
+
* await client.agents.coreMemory.retrieve("agent-123e4567-e89b-42d3-8456-426614174000")
|
|
44
44
|
*/
|
|
45
45
|
retrieve(agentId: string, requestOptions?: CoreMemory.RequestOptions): core.HttpResponsePromise<Letta.Memory>;
|
|
46
46
|
private __retrieve;
|
|
@@ -63,13 +63,13 @@ class CoreMemory {
|
|
|
63
63
|
* Retrieve the memory state of a specific agent.
|
|
64
64
|
* This endpoint fetches the current memory state of the agent identified by the user ID and agent ID.
|
|
65
65
|
*
|
|
66
|
-
* @param {string} agentId
|
|
66
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
67
67
|
* @param {CoreMemory.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
68
|
*
|
|
69
69
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
|
-
* await client.agents.coreMemory.retrieve("
|
|
72
|
+
* await client.agents.coreMemory.retrieve("agent-123e4567-e89b-42d3-8456-426614174000")
|
|
73
73
|
*/
|
|
74
74
|
retrieve(agentId, requestOptions) {
|
|
75
75
|
return core.HttpResponsePromise.fromPromise(this.__retrieve(agentId, requestOptions));
|
|
@@ -82,7 +82,7 @@ class CoreMemory {
|
|
|
82
82
|
method: "GET",
|
|
83
83
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
84
84
|
? yield core.Supplier.get(this._options.project)
|
|
85
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
85
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
86
86
|
contentType: "application/json",
|
|
87
87
|
requestType: "json",
|
|
88
88
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -36,13 +36,13 @@ export declare class Files {
|
|
|
36
36
|
* This endpoint updates the file state for the agent so that no files are marked as open.
|
|
37
37
|
* Typically used to reset the working memory view for the agent.
|
|
38
38
|
*
|
|
39
|
-
* @param {string} agentId
|
|
39
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
40
40
|
* @param {Files.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
41
|
*
|
|
42
42
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
43
43
|
*
|
|
44
44
|
* @example
|
|
45
|
-
* await client.agents.files.closeAll("
|
|
45
|
+
* await client.agents.files.closeAll("agent-123e4567-e89b-42d3-8456-426614174000")
|
|
46
46
|
*/
|
|
47
47
|
closeAll(agentId: string, requestOptions?: Files.RequestOptions): core.HttpResponsePromise<string[]>;
|
|
48
48
|
private __closeAll;
|
|
@@ -53,14 +53,14 @@ export declare class Files {
|
|
|
53
53
|
* The file will be included in the agent's working memory view.
|
|
54
54
|
* Returns a list of file names that were closed due to LRU eviction.
|
|
55
55
|
*
|
|
56
|
-
* @param {string} agentId
|
|
57
|
-
* @param {string} fileId
|
|
56
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
57
|
+
* @param {string} fileId - The ID of the file in the format 'file-<uuid4>'
|
|
58
58
|
* @param {Files.RequestOptions} requestOptions - Request-specific configuration.
|
|
59
59
|
*
|
|
60
60
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
|
-
* await client.agents.files.open("
|
|
63
|
+
* await client.agents.files.open("agent-123e4567-e89b-42d3-8456-426614174000", "file-123e4567-e89b-42d3-8456-426614174000")
|
|
64
64
|
*/
|
|
65
65
|
open(agentId: string, fileId: string, requestOptions?: Files.RequestOptions): core.HttpResponsePromise<string[]>;
|
|
66
66
|
private __open;
|
|
@@ -70,28 +70,28 @@ export declare class Files {
|
|
|
70
70
|
* This endpoint marks a specific file as closed in the agent's file state.
|
|
71
71
|
* The file will be removed from the agent's working memory view.
|
|
72
72
|
*
|
|
73
|
-
* @param {string} agentId
|
|
74
|
-
* @param {string} fileId
|
|
73
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
74
|
+
* @param {string} fileId - The ID of the file in the format 'file-<uuid4>'
|
|
75
75
|
* @param {Files.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
76
|
*
|
|
77
77
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
78
78
|
*
|
|
79
79
|
* @example
|
|
80
|
-
* await client.agents.files.close("
|
|
80
|
+
* await client.agents.files.close("agent-123e4567-e89b-42d3-8456-426614174000", "file-123e4567-e89b-42d3-8456-426614174000")
|
|
81
81
|
*/
|
|
82
82
|
close(agentId: string, fileId: string, requestOptions?: Files.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
83
83
|
private __close;
|
|
84
84
|
/**
|
|
85
85
|
* Get the files attached to an agent with their open/closed status (paginated).
|
|
86
86
|
*
|
|
87
|
-
* @param {string} agentId
|
|
87
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
88
88
|
* @param {Letta.agents.FilesListRequest} request
|
|
89
89
|
* @param {Files.RequestOptions} requestOptions - Request-specific configuration.
|
|
90
90
|
*
|
|
91
91
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
92
92
|
*
|
|
93
93
|
* @example
|
|
94
|
-
* await client.agents.files.list("
|
|
94
|
+
* await client.agents.files.list("agent-123e4567-e89b-42d3-8456-426614174000", {
|
|
95
95
|
* before: "before",
|
|
96
96
|
* after: "after",
|
|
97
97
|
* limit: 1,
|