@letta-ai/letta-client 1.0.0-alpha.3 → 1.0.0-alpha.5
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 +2 -0
- package/api/types/ApprovalRequestMessageToolCalls.d.ts +8 -0
- package/api/types/ApprovalRequestMessageToolCalls.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 +1 -0
- package/api/types/index.js +1 -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 +2 -0
- package/dist/api/types/ApprovalRequestMessageToolCalls.d.ts +8 -0
- package/dist/api/types/ApprovalRequestMessageToolCalls.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 +1 -0
- package/dist/api/types/index.js +1 -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 +2 -0
- package/dist/serialization/types/ApprovalRequestMessage.js +2 -0
- package/dist/serialization/types/ApprovalRequestMessageToolCalls.d.ts +12 -0
- package/dist/serialization/types/ApprovalRequestMessageToolCalls.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 +1 -0
- package/dist/serialization/types/index.js +1 -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 +2 -0
- package/serialization/types/ApprovalRequestMessage.js +2 -0
- package/serialization/types/ApprovalRequestMessageToolCalls.d.ts +12 -0
- package/serialization/types/ApprovalRequestMessageToolCalls.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 +1 -0
- package/serialization/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -62,14 +62,14 @@ class Messages {
|
|
|
62
62
|
/**
|
|
63
63
|
* Retrieve message history for an 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.MessagesListRequest} request
|
|
67
67
|
* @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
68
|
*
|
|
69
69
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
|
-
* await client.agents.messages.list("
|
|
72
|
+
* await client.agents.messages.list("agent-123e4567-e89b-42d3-8456-426614174000", {
|
|
73
73
|
* before: "before",
|
|
74
74
|
* after: "after",
|
|
75
75
|
* limit: 1,
|
|
@@ -127,7 +127,7 @@ class Messages {
|
|
|
127
127
|
method: "GET",
|
|
128
128
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
129
129
|
? yield core.Supplier.get(this._options.project)
|
|
130
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
130
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.5", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.5", "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),
|
|
131
131
|
contentType: "application/json",
|
|
132
132
|
queryParameters: _queryParams,
|
|
133
133
|
requestType: "json",
|
|
@@ -186,14 +186,14 @@ class Messages {
|
|
|
186
186
|
* Process a user message and return the agent's response.
|
|
187
187
|
* This endpoint accepts a message from a user and processes it through the 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.LettaRequest} request
|
|
191
191
|
* @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
|
|
192
192
|
*
|
|
193
193
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
194
194
|
*
|
|
195
195
|
* @example
|
|
196
|
-
* await client.agents.messages.create("
|
|
196
|
+
* await client.agents.messages.create("agent-123e4567-e89b-42d3-8456-426614174000", {
|
|
197
197
|
* messages: [{
|
|
198
198
|
* role: "user",
|
|
199
199
|
* content: [{
|
|
@@ -214,7 +214,7 @@ class Messages {
|
|
|
214
214
|
method: "POST",
|
|
215
215
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
216
216
|
? yield core.Supplier.get(this._options.project)
|
|
217
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
217
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.5", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.5", "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),
|
|
218
218
|
contentType: "application/json",
|
|
219
219
|
requestType: "json",
|
|
220
220
|
body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -272,15 +272,15 @@ class Messages {
|
|
|
272
272
|
/**
|
|
273
273
|
* Update the details of a message associated with an agent.
|
|
274
274
|
*
|
|
275
|
-
* @param {string} agentId
|
|
276
|
-
* @param {string} messageId
|
|
275
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
276
|
+
* @param {string} messageId - The ID of the message in the format 'message-<uuid4>'
|
|
277
277
|
* @param {Letta.agents.MessagesModifyRequest} request
|
|
278
278
|
* @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
|
|
279
279
|
*
|
|
280
280
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
281
281
|
*
|
|
282
282
|
* @example
|
|
283
|
-
* await client.agents.messages.modify("
|
|
283
|
+
* await client.agents.messages.modify("agent-123e4567-e89b-42d3-8456-426614174000", "message-123e4567-e89b-42d3-8456-426614174000", {
|
|
284
284
|
* content: "content"
|
|
285
285
|
* })
|
|
286
286
|
*/
|
|
@@ -295,7 +295,7 @@ class Messages {
|
|
|
295
295
|
method: "PATCH",
|
|
296
296
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
297
297
|
? yield core.Supplier.get(this._options.project)
|
|
298
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
298
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.5", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.5", "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),
|
|
299
299
|
contentType: "application/json",
|
|
300
300
|
requestType: "json",
|
|
301
301
|
body: serializers.agents.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -366,7 +366,7 @@ class Messages {
|
|
|
366
366
|
method: "POST",
|
|
367
367
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
368
368
|
? yield core.Supplier.get(this._options.project)
|
|
369
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
369
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.5", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.5", "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),
|
|
370
370
|
contentType: "application/json",
|
|
371
371
|
requestType: "json",
|
|
372
372
|
body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -437,14 +437,14 @@ class Messages {
|
|
|
437
437
|
*
|
|
438
438
|
* Note to cancel active runs associated with an agent, redis is required.
|
|
439
439
|
*
|
|
440
|
-
* @param {string} agentId
|
|
440
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
441
441
|
* @param {Letta.agents.CancelAgentRunRequest} request
|
|
442
442
|
* @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
|
|
443
443
|
*
|
|
444
444
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
445
445
|
*
|
|
446
446
|
* @example
|
|
447
|
-
* await client.agents.messages.cancel("
|
|
447
|
+
* await client.agents.messages.cancel("agent-123e4567-e89b-42d3-8456-426614174000")
|
|
448
448
|
*/
|
|
449
449
|
cancel(agentId, request = {}, requestOptions) {
|
|
450
450
|
return core.HttpResponsePromise.fromPromise(this.__cancel(agentId, request, requestOptions));
|
|
@@ -457,7 +457,7 @@ class Messages {
|
|
|
457
457
|
method: "POST",
|
|
458
458
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
459
459
|
? yield core.Supplier.get(this._options.project)
|
|
460
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
460
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.5", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.5", "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),
|
|
461
461
|
contentType: "application/json",
|
|
462
462
|
requestType: "json",
|
|
463
463
|
body: serializers.agents.CancelAgentRunRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -536,7 +536,7 @@ class Messages {
|
|
|
536
536
|
method: "POST",
|
|
537
537
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
538
538
|
? yield core.Supplier.get(this._options.project)
|
|
539
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
539
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.5", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.5", "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),
|
|
540
540
|
contentType: "application/json",
|
|
541
541
|
requestType: "json",
|
|
542
542
|
body: serializers.agents.MessageSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -597,14 +597,14 @@ class Messages {
|
|
|
597
597
|
*
|
|
598
598
|
* This is "asynchronous" in the sense that it's a background run and explicitly must be fetched by the run ID.
|
|
599
599
|
*
|
|
600
|
-
* @param {string} agentId
|
|
600
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
601
601
|
* @param {Letta.agents.LettaAsyncRequest} request
|
|
602
602
|
* @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
|
|
603
603
|
*
|
|
604
604
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
605
605
|
*
|
|
606
606
|
* @example
|
|
607
|
-
* await client.agents.messages.createAsync("
|
|
607
|
+
* await client.agents.messages.createAsync("agent-123e4567-e89b-42d3-8456-426614174000", {
|
|
608
608
|
* messages: [{
|
|
609
609
|
* role: "user",
|
|
610
610
|
* content: [{
|
|
@@ -625,7 +625,7 @@ class Messages {
|
|
|
625
625
|
method: "POST",
|
|
626
626
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
627
627
|
? yield core.Supplier.get(this._options.project)
|
|
628
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
628
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.5", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.5", "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),
|
|
629
629
|
contentType: "application/json",
|
|
630
630
|
requestType: "json",
|
|
631
631
|
body: serializers.agents.LettaAsyncRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -683,14 +683,14 @@ class Messages {
|
|
|
683
683
|
/**
|
|
684
684
|
* Resets the messages for an agent
|
|
685
685
|
*
|
|
686
|
-
* @param {string} agentId
|
|
686
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
687
687
|
* @param {Letta.agents.MessagesResetRequest} request
|
|
688
688
|
* @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
|
|
689
689
|
*
|
|
690
690
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
691
691
|
*
|
|
692
692
|
* @example
|
|
693
|
-
* await client.agents.messages.reset("
|
|
693
|
+
* await client.agents.messages.reset("agent-123e4567-e89b-42d3-8456-426614174000", {
|
|
694
694
|
* addDefaultInitialMessages: true
|
|
695
695
|
* })
|
|
696
696
|
*/
|
|
@@ -710,7 +710,7 @@ class Messages {
|
|
|
710
710
|
method: "PATCH",
|
|
711
711
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
712
712
|
? yield core.Supplier.get(this._options.project)
|
|
713
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
713
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.5", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.5", "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),
|
|
714
714
|
contentType: "application/json",
|
|
715
715
|
queryParameters: _queryParams,
|
|
716
716
|
requestType: "json",
|
|
@@ -772,14 +772,14 @@ class Messages {
|
|
|
772
772
|
* the LLM request, then returns the raw request payload that would
|
|
773
773
|
* be sent to the LLM provider. Useful for debugging and inspection.
|
|
774
774
|
*
|
|
775
|
-
* @param {string} agentId
|
|
775
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
776
776
|
* @param {Letta.agents.MessagesPreviewRequest} request
|
|
777
777
|
* @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
|
|
778
778
|
*
|
|
779
779
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
780
780
|
*
|
|
781
781
|
* @example
|
|
782
|
-
* await client.agents.messages.preview("
|
|
782
|
+
* await client.agents.messages.preview("agent-123e4567-e89b-42d3-8456-426614174000", {
|
|
783
783
|
* messages: [{
|
|
784
784
|
* role: "user",
|
|
785
785
|
* content: [{
|
|
@@ -800,7 +800,7 @@ class Messages {
|
|
|
800
800
|
method: "POST",
|
|
801
801
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
802
802
|
? yield core.Supplier.get(this._options.project)
|
|
803
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
803
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.5", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.5", "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),
|
|
804
804
|
contentType: "application/json",
|
|
805
805
|
requestType: "json",
|
|
806
806
|
body: serializers.agents.MessagesPreviewRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -861,14 +861,14 @@ class Messages {
|
|
|
861
861
|
* This endpoint summarizes the current message history for a given agent,
|
|
862
862
|
* truncating and compressing it down to the specified `max_message_length`.
|
|
863
863
|
*
|
|
864
|
-
* @param {string} agentId
|
|
864
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
865
865
|
* @param {Letta.agents.MessagesSummarizeRequest} request
|
|
866
866
|
* @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
|
|
867
867
|
*
|
|
868
868
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
869
869
|
*
|
|
870
870
|
* @example
|
|
871
|
-
* await client.agents.messages.summarize("
|
|
871
|
+
* await client.agents.messages.summarize("agent-123e4567-e89b-42d3-8456-426614174000", {
|
|
872
872
|
* maxMessageLength: 1
|
|
873
873
|
* })
|
|
874
874
|
*/
|
|
@@ -886,7 +886,7 @@ class Messages {
|
|
|
886
886
|
method: "POST",
|
|
887
887
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
888
888
|
? yield core.Supplier.get(this._options.project)
|
|
889
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
889
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.5", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.5", "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),
|
|
890
890
|
contentType: "application/json",
|
|
891
891
|
queryParameters: _queryParams,
|
|
892
892
|
requestType: "json",
|
|
@@ -33,14 +33,14 @@ export declare class Passages {
|
|
|
33
33
|
/**
|
|
34
34
|
* Retrieve the memories in an agent's archival memory store (paginated query).
|
|
35
35
|
*
|
|
36
|
-
* @param {string} agentId
|
|
36
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
37
37
|
* @param {Letta.agents.PassagesListRequest} request
|
|
38
38
|
* @param {Passages.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
39
|
*
|
|
40
40
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.agents.passages.list("
|
|
43
|
+
* await client.agents.passages.list("agent-123e4567-e89b-42d3-8456-426614174000", {
|
|
44
44
|
* after: "after",
|
|
45
45
|
* before: "before",
|
|
46
46
|
* limit: 1,
|
|
@@ -53,14 +53,14 @@ export declare class Passages {
|
|
|
53
53
|
/**
|
|
54
54
|
* Insert a memory into an agent's archival memory store.
|
|
55
55
|
*
|
|
56
|
-
* @param {string} agentId
|
|
56
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
57
57
|
* @param {Letta.agents.CreateArchivalMemory} request
|
|
58
58
|
* @param {Passages.RequestOptions} requestOptions - Request-specific configuration.
|
|
59
59
|
*
|
|
60
60
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
|
-
* await client.agents.passages.create("
|
|
63
|
+
* await client.agents.passages.create("agent-123e4567-e89b-42d3-8456-426614174000", {
|
|
64
64
|
* text: "text"
|
|
65
65
|
* })
|
|
66
66
|
*/
|
|
@@ -73,14 +73,14 @@ export declare class Passages {
|
|
|
73
73
|
* an agent's archival memory store directly via the API. The search uses the same functionality
|
|
74
74
|
* as the agent's archival_memory_search tool but is accessible for external API usage.
|
|
75
75
|
*
|
|
76
|
-
* @param {string} agentId
|
|
76
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
77
77
|
* @param {Letta.agents.PassagesSearchRequest} request
|
|
78
78
|
* @param {Passages.RequestOptions} requestOptions - Request-specific configuration.
|
|
79
79
|
*
|
|
80
80
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
81
81
|
*
|
|
82
82
|
* @example
|
|
83
|
-
* await client.agents.passages.search("
|
|
83
|
+
* await client.agents.passages.search("agent-123e4567-e89b-42d3-8456-426614174000", {
|
|
84
84
|
* query: "query",
|
|
85
85
|
* tagMatchMode: "any",
|
|
86
86
|
* topK: 1,
|
|
@@ -94,13 +94,13 @@ export declare class Passages {
|
|
|
94
94
|
* Delete a memory from an agent's archival memory store.
|
|
95
95
|
*
|
|
96
96
|
* @param {string} agentId
|
|
97
|
-
* @param {string} memoryId
|
|
97
|
+
* @param {string} memoryId - The ID of the agent in the format 'agent-<uuid4>'
|
|
98
98
|
* @param {Passages.RequestOptions} requestOptions - Request-specific configuration.
|
|
99
99
|
*
|
|
100
100
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
101
101
|
*
|
|
102
102
|
* @example
|
|
103
|
-
* await client.agents.passages.delete("agent_id", "
|
|
103
|
+
* await client.agents.passages.delete("agent_id", "agent-123e4567-e89b-42d3-8456-426614174000")
|
|
104
104
|
*/
|
|
105
105
|
delete(agentId: string, memoryId: string, requestOptions?: Passages.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
106
106
|
private __delete;
|
|
@@ -62,14 +62,14 @@ class Passages {
|
|
|
62
62
|
/**
|
|
63
63
|
* Retrieve the memories in an agent's archival memory store (paginated query).
|
|
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.PassagesListRequest} request
|
|
67
67
|
* @param {Passages.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
68
|
*
|
|
69
69
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
|
-
* await client.agents.passages.list("
|
|
72
|
+
* await client.agents.passages.list("agent-123e4567-e89b-42d3-8456-426614174000", {
|
|
73
73
|
* after: "after",
|
|
74
74
|
* before: "before",
|
|
75
75
|
* limit: 1,
|
|
@@ -105,7 +105,7 @@ class Passages {
|
|
|
105
105
|
method: "GET",
|
|
106
106
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
107
107
|
? yield core.Supplier.get(this._options.project)
|
|
108
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
108
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.5", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.5", "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),
|
|
109
109
|
contentType: "application/json",
|
|
110
110
|
queryParameters: _queryParams,
|
|
111
111
|
requestType: "json",
|
|
@@ -163,14 +163,14 @@ class Passages {
|
|
|
163
163
|
/**
|
|
164
164
|
* Insert a memory into an agent's archival memory store.
|
|
165
165
|
*
|
|
166
|
-
* @param {string} agentId
|
|
166
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
167
167
|
* @param {Letta.agents.CreateArchivalMemory} request
|
|
168
168
|
* @param {Passages.RequestOptions} requestOptions - Request-specific configuration.
|
|
169
169
|
*
|
|
170
170
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
171
171
|
*
|
|
172
172
|
* @example
|
|
173
|
-
* await client.agents.passages.create("
|
|
173
|
+
* await client.agents.passages.create("agent-123e4567-e89b-42d3-8456-426614174000", {
|
|
174
174
|
* text: "text"
|
|
175
175
|
* })
|
|
176
176
|
*/
|
|
@@ -185,7 +185,7 @@ class Passages {
|
|
|
185
185
|
method: "POST",
|
|
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.5", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.5", "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
|
body: serializers.agents.CreateArchivalMemory.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -247,14 +247,14 @@ class Passages {
|
|
|
247
247
|
* an agent's archival memory store directly via the API. The search uses the same functionality
|
|
248
248
|
* as the agent's archival_memory_search tool but is accessible for external API usage.
|
|
249
249
|
*
|
|
250
|
-
* @param {string} agentId
|
|
250
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
251
251
|
* @param {Letta.agents.PassagesSearchRequest} request
|
|
252
252
|
* @param {Passages.RequestOptions} requestOptions - Request-specific configuration.
|
|
253
253
|
*
|
|
254
254
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
255
255
|
*
|
|
256
256
|
* @example
|
|
257
|
-
* await client.agents.passages.search("
|
|
257
|
+
* await client.agents.passages.search("agent-123e4567-e89b-42d3-8456-426614174000", {
|
|
258
258
|
* query: "query",
|
|
259
259
|
* tagMatchMode: "any",
|
|
260
260
|
* topK: 1,
|
|
@@ -296,7 +296,7 @@ class Passages {
|
|
|
296
296
|
method: "GET",
|
|
297
297
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
298
298
|
? yield core.Supplier.get(this._options.project)
|
|
299
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
299
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.5", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.5", "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),
|
|
300
300
|
contentType: "application/json",
|
|
301
301
|
queryParameters: _queryParams,
|
|
302
302
|
requestType: "json",
|
|
@@ -355,13 +355,13 @@ class Passages {
|
|
|
355
355
|
* Delete a memory from an agent's archival memory store.
|
|
356
356
|
*
|
|
357
357
|
* @param {string} agentId
|
|
358
|
-
* @param {string} memoryId
|
|
358
|
+
* @param {string} memoryId - The ID of the agent in the format 'agent-<uuid4>'
|
|
359
359
|
* @param {Passages.RequestOptions} requestOptions - Request-specific configuration.
|
|
360
360
|
*
|
|
361
361
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
362
362
|
*
|
|
363
363
|
* @example
|
|
364
|
-
* await client.agents.passages.delete("agent_id", "
|
|
364
|
+
* await client.agents.passages.delete("agent_id", "agent-123e4567-e89b-42d3-8456-426614174000")
|
|
365
365
|
*/
|
|
366
366
|
delete(agentId, memoryId, requestOptions) {
|
|
367
367
|
return core.HttpResponsePromise.fromPromise(this.__delete(agentId, memoryId, requestOptions));
|
|
@@ -374,7 +374,7 @@ class Passages {
|
|
|
374
374
|
method: "DELETE",
|
|
375
375
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
376
376
|
? yield core.Supplier.get(this._options.project)
|
|
377
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
377
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.5", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.5", "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),
|
|
378
378
|
contentType: "application/json",
|
|
379
379
|
requestType: "json",
|
|
380
380
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -438,7 +438,7 @@ class Passages {
|
|
|
438
438
|
method: "PATCH",
|
|
439
439
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
440
440
|
? yield core.Supplier.get(this._options.project)
|
|
441
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
441
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.5", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.5", "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),
|
|
442
442
|
contentType: "application/json",
|
|
443
443
|
requestType: "json",
|
|
444
444
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -33,42 +33,42 @@ export declare class Sources {
|
|
|
33
33
|
/**
|
|
34
34
|
* Attach a source to an agent.
|
|
35
35
|
*
|
|
36
|
-
* @param {string} agentId
|
|
37
|
-
* @param {string} sourceId
|
|
36
|
+
* @param {string} agentId - The ID of the source in the format 'source-<uuid4>'
|
|
37
|
+
* @param {string} sourceId - The ID of the agent in the format 'agent-<uuid4>'
|
|
38
38
|
* @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
39
|
*
|
|
40
40
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.agents.sources.attach("
|
|
43
|
+
* await client.agents.sources.attach("source-123e4567-e89b-42d3-8456-426614174000", "agent-123e4567-e89b-42d3-8456-426614174000")
|
|
44
44
|
*/
|
|
45
45
|
attach(agentId: string, sourceId: string, requestOptions?: Sources.RequestOptions): core.HttpResponsePromise<Letta.AgentState>;
|
|
46
46
|
private __attach;
|
|
47
47
|
/**
|
|
48
48
|
* Detach a source from an agent.
|
|
49
49
|
*
|
|
50
|
-
* @param {string} agentId
|
|
51
|
-
* @param {string} sourceId
|
|
50
|
+
* @param {string} agentId - The ID of the source in the format 'source-<uuid4>'
|
|
51
|
+
* @param {string} sourceId - The ID of the agent in the format 'agent-<uuid4>'
|
|
52
52
|
* @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
53
|
*
|
|
54
54
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
55
55
|
*
|
|
56
56
|
* @example
|
|
57
|
-
* await client.agents.sources.detach("
|
|
57
|
+
* await client.agents.sources.detach("source-123e4567-e89b-42d3-8456-426614174000", "agent-123e4567-e89b-42d3-8456-426614174000")
|
|
58
58
|
*/
|
|
59
59
|
detach(agentId: string, sourceId: string, requestOptions?: Sources.RequestOptions): core.HttpResponsePromise<Letta.AgentState>;
|
|
60
60
|
private __detach;
|
|
61
61
|
/**
|
|
62
62
|
* Get the sources associated with an agent.
|
|
63
63
|
*
|
|
64
|
-
* @param {string} agentId
|
|
64
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
65
65
|
* @param {Letta.agents.SourcesListRequest} request
|
|
66
66
|
* @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
67
|
*
|
|
68
68
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
|
-
* await client.agents.sources.list("
|
|
71
|
+
* await client.agents.sources.list("agent-123e4567-e89b-42d3-8456-426614174000", {
|
|
72
72
|
* before: "before",
|
|
73
73
|
* after: "after",
|
|
74
74
|
* limit: 1,
|
|
@@ -62,14 +62,14 @@ class Sources {
|
|
|
62
62
|
/**
|
|
63
63
|
* Attach a source to an agent.
|
|
64
64
|
*
|
|
65
|
-
* @param {string} agentId
|
|
66
|
-
* @param {string} sourceId
|
|
65
|
+
* @param {string} agentId - The ID of the source in the format 'source-<uuid4>'
|
|
66
|
+
* @param {string} sourceId - The ID of the agent in the format 'agent-<uuid4>'
|
|
67
67
|
* @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
68
|
*
|
|
69
69
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
|
-
* await client.agents.sources.attach("
|
|
72
|
+
* await client.agents.sources.attach("source-123e4567-e89b-42d3-8456-426614174000", "agent-123e4567-e89b-42d3-8456-426614174000")
|
|
73
73
|
*/
|
|
74
74
|
attach(agentId, sourceId, requestOptions) {
|
|
75
75
|
return core.HttpResponsePromise.fromPromise(this.__attach(agentId, sourceId, requestOptions));
|
|
@@ -82,7 +82,7 @@ class Sources {
|
|
|
82
82
|
method: "PATCH",
|
|
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.5", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.5", "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,
|
|
@@ -139,14 +139,14 @@ class Sources {
|
|
|
139
139
|
/**
|
|
140
140
|
* Detach a source from an agent.
|
|
141
141
|
*
|
|
142
|
-
* @param {string} agentId
|
|
143
|
-
* @param {string} sourceId
|
|
142
|
+
* @param {string} agentId - The ID of the source in the format 'source-<uuid4>'
|
|
143
|
+
* @param {string} sourceId - The ID of the agent in the format 'agent-<uuid4>'
|
|
144
144
|
* @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
|
|
145
145
|
*
|
|
146
146
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
147
147
|
*
|
|
148
148
|
* @example
|
|
149
|
-
* await client.agents.sources.detach("
|
|
149
|
+
* await client.agents.sources.detach("source-123e4567-e89b-42d3-8456-426614174000", "agent-123e4567-e89b-42d3-8456-426614174000")
|
|
150
150
|
*/
|
|
151
151
|
detach(agentId, sourceId, requestOptions) {
|
|
152
152
|
return core.HttpResponsePromise.fromPromise(this.__detach(agentId, sourceId, requestOptions));
|
|
@@ -159,7 +159,7 @@ class Sources {
|
|
|
159
159
|
method: "PATCH",
|
|
160
160
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
161
161
|
? yield core.Supplier.get(this._options.project)
|
|
162
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
162
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.5", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.5", "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),
|
|
163
163
|
contentType: "application/json",
|
|
164
164
|
requestType: "json",
|
|
165
165
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -216,14 +216,14 @@ class Sources {
|
|
|
216
216
|
/**
|
|
217
217
|
* Get the sources associated with an agent.
|
|
218
218
|
*
|
|
219
|
-
* @param {string} agentId
|
|
219
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
220
220
|
* @param {Letta.agents.SourcesListRequest} request
|
|
221
221
|
* @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
|
|
222
222
|
*
|
|
223
223
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
224
224
|
*
|
|
225
225
|
* @example
|
|
226
|
-
* await client.agents.sources.list("
|
|
226
|
+
* await client.agents.sources.list("agent-123e4567-e89b-42d3-8456-426614174000", {
|
|
227
227
|
* before: "before",
|
|
228
228
|
* after: "after",
|
|
229
229
|
* limit: 1,
|
|
@@ -261,7 +261,7 @@ class Sources {
|
|
|
261
261
|
method: "GET",
|
|
262
262
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
263
263
|
? yield core.Supplier.get(this._options.project)
|
|
264
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
264
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.5", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.5", "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),
|
|
265
265
|
contentType: "application/json",
|
|
266
266
|
queryParameters: _queryParams,
|
|
267
267
|
requestType: "json",
|
|
@@ -33,14 +33,14 @@ export declare class Tools {
|
|
|
33
33
|
/**
|
|
34
34
|
* Get tools from an existing agent
|
|
35
35
|
*
|
|
36
|
-
* @param {string} agentId
|
|
36
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
37
37
|
* @param {Letta.agents.ToolsListRequest} request
|
|
38
38
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
39
|
*
|
|
40
40
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.agents.tools.list("
|
|
43
|
+
* await client.agents.tools.list("agent-123e4567-e89b-42d3-8456-426614174000", {
|
|
44
44
|
* before: "before",
|
|
45
45
|
* after: "after",
|
|
46
46
|
* limit: 1,
|
|
@@ -53,35 +53,35 @@ export declare class Tools {
|
|
|
53
53
|
/**
|
|
54
54
|
* Attach a tool to an agent.
|
|
55
55
|
*
|
|
56
|
-
* @param {string} agentId
|
|
57
|
-
* @param {string} toolId
|
|
56
|
+
* @param {string} agentId - The ID of the tool in the format 'tool-<uuid4>'
|
|
57
|
+
* @param {string} toolId - The ID of the agent in the format 'agent-<uuid4>'
|
|
58
58
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
59
59
|
*
|
|
60
60
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
|
-
* await client.agents.tools.attach("
|
|
63
|
+
* await client.agents.tools.attach("tool-123e4567-e89b-42d3-8456-426614174000", "agent-123e4567-e89b-42d3-8456-426614174000")
|
|
64
64
|
*/
|
|
65
65
|
attach(agentId: string, toolId: string, requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<Letta.AgentState>;
|
|
66
66
|
private __attach;
|
|
67
67
|
/**
|
|
68
68
|
* Detach a tool from an agent.
|
|
69
69
|
*
|
|
70
|
-
* @param {string} agentId
|
|
71
|
-
* @param {string} toolId
|
|
70
|
+
* @param {string} agentId - The ID of the tool in the format 'tool-<uuid4>'
|
|
71
|
+
* @param {string} toolId - The ID of the agent in the format 'agent-<uuid4>'
|
|
72
72
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
73
73
|
*
|
|
74
74
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
75
75
|
*
|
|
76
76
|
* @example
|
|
77
|
-
* await client.agents.tools.detach("
|
|
77
|
+
* await client.agents.tools.detach("tool-123e4567-e89b-42d3-8456-426614174000", "agent-123e4567-e89b-42d3-8456-426614174000")
|
|
78
78
|
*/
|
|
79
79
|
detach(agentId: string, toolId: string, requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<Letta.AgentState>;
|
|
80
80
|
private __detach;
|
|
81
81
|
/**
|
|
82
82
|
* Attach a tool to an agent.
|
|
83
83
|
*
|
|
84
|
-
* @param {string} agentId
|
|
84
|
+
* @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
|
|
85
85
|
* @param {string} toolName
|
|
86
86
|
* @param {Letta.agents.ToolsModifyApprovalRequest} request
|
|
87
87
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -89,7 +89,7 @@ export declare class Tools {
|
|
|
89
89
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
90
90
|
*
|
|
91
91
|
* @example
|
|
92
|
-
* await client.agents.tools.modifyApproval("
|
|
92
|
+
* await client.agents.tools.modifyApproval("agent-123e4567-e89b-42d3-8456-426614174000", "tool_name", {
|
|
93
93
|
* requiresApproval: true
|
|
94
94
|
* })
|
|
95
95
|
*/
|