@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
|
@@ -107,7 +107,7 @@ class Passages {
|
|
|
107
107
|
method: "GET",
|
|
108
108
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
109
109
|
? yield core.Supplier.get(this._options.project)
|
|
110
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
110
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.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),
|
|
111
111
|
contentType: "application/json",
|
|
112
112
|
queryParameters: _queryParams,
|
|
113
113
|
requestType: "json",
|
|
@@ -85,40 +85,40 @@ export declare class Groups {
|
|
|
85
85
|
/**
|
|
86
86
|
* Retrieve the group by id.
|
|
87
87
|
*
|
|
88
|
-
* @param {string} groupId
|
|
88
|
+
* @param {string} groupId - The ID of the group in the format 'group-<uuid4>'
|
|
89
89
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
90
90
|
*
|
|
91
91
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
92
92
|
*
|
|
93
93
|
* @example
|
|
94
|
-
* await client.groups.retrieve("
|
|
94
|
+
* await client.groups.retrieve("group-123e4567-e89b-42d3-8456-426614174000")
|
|
95
95
|
*/
|
|
96
96
|
retrieve(groupId: string, requestOptions?: Groups.RequestOptions): core.HttpResponsePromise<Letta.Group>;
|
|
97
97
|
private __retrieve;
|
|
98
98
|
/**
|
|
99
99
|
* Delete a multi-agent group.
|
|
100
100
|
*
|
|
101
|
-
* @param {string} groupId
|
|
101
|
+
* @param {string} groupId - The ID of the group in the format 'group-<uuid4>'
|
|
102
102
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
103
103
|
*
|
|
104
104
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
105
105
|
*
|
|
106
106
|
* @example
|
|
107
|
-
* await client.groups.delete("
|
|
107
|
+
* await client.groups.delete("group-123e4567-e89b-42d3-8456-426614174000")
|
|
108
108
|
*/
|
|
109
109
|
delete(groupId: string, requestOptions?: Groups.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
110
110
|
private __delete;
|
|
111
111
|
/**
|
|
112
112
|
* Create a new multi-agent group with the specified configuration.
|
|
113
113
|
*
|
|
114
|
-
* @param {string} groupId
|
|
114
|
+
* @param {string} groupId - The ID of the group in the format 'group-<uuid4>'
|
|
115
115
|
* @param {Letta.GroupUpdate} request
|
|
116
116
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
117
117
|
*
|
|
118
118
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
119
119
|
*
|
|
120
120
|
* @example
|
|
121
|
-
* await client.groups.modify("
|
|
121
|
+
* await client.groups.modify("group-123e4567-e89b-42d3-8456-426614174000")
|
|
122
122
|
*/
|
|
123
123
|
modify(groupId: string, request?: Letta.GroupUpdate, requestOptions?: Groups.RequestOptions): core.HttpResponsePromise<Letta.Group>;
|
|
124
124
|
private __modify;
|
|
@@ -121,7 +121,7 @@ class Groups {
|
|
|
121
121
|
method: "GET",
|
|
122
122
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
123
123
|
? yield core.Supplier.get(this._options.project)
|
|
124
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
124
|
+
: 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),
|
|
125
125
|
contentType: "application/json",
|
|
126
126
|
queryParameters: _queryParams,
|
|
127
127
|
requestType: "json",
|
|
@@ -201,7 +201,7 @@ class Groups {
|
|
|
201
201
|
method: "POST",
|
|
202
202
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
203
203
|
? yield core.Supplier.get(this._options.project)
|
|
204
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
204
|
+
: 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),
|
|
205
205
|
contentType: "application/json",
|
|
206
206
|
requestType: "json",
|
|
207
207
|
body: serializers.GroupCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -277,7 +277,7 @@ class Groups {
|
|
|
277
277
|
method: "GET",
|
|
278
278
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
279
279
|
? yield core.Supplier.get(this._options.project)
|
|
280
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
280
|
+
: 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),
|
|
281
281
|
contentType: "application/json",
|
|
282
282
|
requestType: "json",
|
|
283
283
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -334,13 +334,13 @@ class Groups {
|
|
|
334
334
|
/**
|
|
335
335
|
* Retrieve the group by id.
|
|
336
336
|
*
|
|
337
|
-
* @param {string} groupId
|
|
337
|
+
* @param {string} groupId - The ID of the group in the format 'group-<uuid4>'
|
|
338
338
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
339
339
|
*
|
|
340
340
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
341
341
|
*
|
|
342
342
|
* @example
|
|
343
|
-
* await client.groups.retrieve("
|
|
343
|
+
* await client.groups.retrieve("group-123e4567-e89b-42d3-8456-426614174000")
|
|
344
344
|
*/
|
|
345
345
|
retrieve(groupId, requestOptions) {
|
|
346
346
|
return core.HttpResponsePromise.fromPromise(this.__retrieve(groupId, requestOptions));
|
|
@@ -353,7 +353,7 @@ class Groups {
|
|
|
353
353
|
method: "GET",
|
|
354
354
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
355
355
|
? yield core.Supplier.get(this._options.project)
|
|
356
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
356
|
+
: 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),
|
|
357
357
|
contentType: "application/json",
|
|
358
358
|
requestType: "json",
|
|
359
359
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -410,13 +410,13 @@ class Groups {
|
|
|
410
410
|
/**
|
|
411
411
|
* Delete a multi-agent group.
|
|
412
412
|
*
|
|
413
|
-
* @param {string} groupId
|
|
413
|
+
* @param {string} groupId - The ID of the group in the format 'group-<uuid4>'
|
|
414
414
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
415
415
|
*
|
|
416
416
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
417
417
|
*
|
|
418
418
|
* @example
|
|
419
|
-
* await client.groups.delete("
|
|
419
|
+
* await client.groups.delete("group-123e4567-e89b-42d3-8456-426614174000")
|
|
420
420
|
*/
|
|
421
421
|
delete(groupId, requestOptions) {
|
|
422
422
|
return core.HttpResponsePromise.fromPromise(this.__delete(groupId, requestOptions));
|
|
@@ -429,7 +429,7 @@ class Groups {
|
|
|
429
429
|
method: "DELETE",
|
|
430
430
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
431
431
|
? yield core.Supplier.get(this._options.project)
|
|
432
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
432
|
+
: 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),
|
|
433
433
|
contentType: "application/json",
|
|
434
434
|
requestType: "json",
|
|
435
435
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -477,14 +477,14 @@ class Groups {
|
|
|
477
477
|
/**
|
|
478
478
|
* Create a new multi-agent group with the specified configuration.
|
|
479
479
|
*
|
|
480
|
-
* @param {string} groupId
|
|
480
|
+
* @param {string} groupId - The ID of the group in the format 'group-<uuid4>'
|
|
481
481
|
* @param {Letta.GroupUpdate} request
|
|
482
482
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
483
483
|
*
|
|
484
484
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
485
485
|
*
|
|
486
486
|
* @example
|
|
487
|
-
* await client.groups.modify("
|
|
487
|
+
* await client.groups.modify("group-123e4567-e89b-42d3-8456-426614174000")
|
|
488
488
|
*/
|
|
489
489
|
modify(groupId, request = {}, requestOptions) {
|
|
490
490
|
return core.HttpResponsePromise.fromPromise(this.__modify(groupId, request, requestOptions));
|
|
@@ -497,7 +497,7 @@ class Groups {
|
|
|
497
497
|
method: "PATCH",
|
|
498
498
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
499
499
|
? yield core.Supplier.get(this._options.project)
|
|
500
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
500
|
+
: 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),
|
|
501
501
|
contentType: "application/json",
|
|
502
502
|
requestType: "json",
|
|
503
503
|
body: serializers.GroupUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -33,14 +33,14 @@ export declare class Messages {
|
|
|
33
33
|
/**
|
|
34
34
|
* Retrieve message history for an agent.
|
|
35
35
|
*
|
|
36
|
-
* @param {string} groupId
|
|
36
|
+
* @param {string} groupId - The ID of the group in the format 'group-<uuid4>'
|
|
37
37
|
* @param {Letta.groups.MessagesListRequest} request
|
|
38
38
|
* @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
39
|
*
|
|
40
40
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.groups.messages.list("
|
|
43
|
+
* await client.groups.messages.list("group-123e4567-e89b-42d3-8456-426614174000", {
|
|
44
44
|
* before: "before",
|
|
45
45
|
* after: "after",
|
|
46
46
|
* limit: 1,
|
|
@@ -57,14 +57,14 @@ export declare class Messages {
|
|
|
57
57
|
* Process a user message and return the group's response.
|
|
58
58
|
* This endpoint accepts a message from a user and processes it through through agents in the group based on the specified pattern
|
|
59
59
|
*
|
|
60
|
-
* @param {string} groupId
|
|
60
|
+
* @param {string} groupId - The ID of the group in the format 'group-<uuid4>'
|
|
61
61
|
* @param {Letta.LettaRequest} request
|
|
62
62
|
* @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
63
|
*
|
|
64
64
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
|
-
* await client.groups.messages.create("
|
|
67
|
+
* await client.groups.messages.create("group-123e4567-e89b-42d3-8456-426614174000", {
|
|
68
68
|
* messages: [{
|
|
69
69
|
* role: "user",
|
|
70
70
|
* content: [{
|
|
@@ -86,15 +86,15 @@ export declare class Messages {
|
|
|
86
86
|
/**
|
|
87
87
|
* Update the details of a message associated with an agent.
|
|
88
88
|
*
|
|
89
|
-
* @param {string} groupId
|
|
90
|
-
* @param {string} messageId
|
|
89
|
+
* @param {string} groupId - The ID of the group in the format 'group-<uuid4>'
|
|
90
|
+
* @param {string} messageId - The ID of the message in the format 'message-<uuid4>'
|
|
91
91
|
* @param {Letta.groups.MessagesModifyRequest} request
|
|
92
92
|
* @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
|
|
93
93
|
*
|
|
94
94
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
95
95
|
*
|
|
96
96
|
* @example
|
|
97
|
-
* await client.groups.messages.modify("
|
|
97
|
+
* await client.groups.messages.modify("group-123e4567-e89b-42d3-8456-426614174000", "message-123e4567-e89b-42d3-8456-426614174000", {
|
|
98
98
|
* content: "content"
|
|
99
99
|
* })
|
|
100
100
|
*/
|
|
@@ -103,13 +103,13 @@ export declare class Messages {
|
|
|
103
103
|
/**
|
|
104
104
|
* Delete the group messages for all agents that are part of the multi-agent group.
|
|
105
105
|
*
|
|
106
|
-
* @param {string} groupId
|
|
106
|
+
* @param {string} groupId - The ID of the group in the format 'group-<uuid4>'
|
|
107
107
|
* @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
|
|
108
108
|
*
|
|
109
109
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
110
110
|
*
|
|
111
111
|
* @example
|
|
112
|
-
* await client.groups.messages.reset("
|
|
112
|
+
* await client.groups.messages.reset("group-123e4567-e89b-42d3-8456-426614174000")
|
|
113
113
|
*/
|
|
114
114
|
reset(groupId: string, requestOptions?: Messages.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
115
115
|
private __reset;
|
|
@@ -62,14 +62,14 @@ class Messages {
|
|
|
62
62
|
/**
|
|
63
63
|
* Retrieve message history for an agent.
|
|
64
64
|
*
|
|
65
|
-
* @param {string} groupId
|
|
65
|
+
* @param {string} groupId - The ID of the group in the format 'group-<uuid4>'
|
|
66
66
|
* @param {Letta.groups.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.groups.messages.list("
|
|
72
|
+
* await client.groups.messages.list("group-123e4567-e89b-42d3-8456-426614174000", {
|
|
73
73
|
* before: "before",
|
|
74
74
|
* after: "after",
|
|
75
75
|
* limit: 1,
|
|
@@ -119,7 +119,7 @@ class Messages {
|
|
|
119
119
|
method: "GET",
|
|
120
120
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
121
121
|
? yield core.Supplier.get(this._options.project)
|
|
122
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
122
|
+
: 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),
|
|
123
123
|
contentType: "application/json",
|
|
124
124
|
queryParameters: _queryParams,
|
|
125
125
|
requestType: "json",
|
|
@@ -178,14 +178,14 @@ class Messages {
|
|
|
178
178
|
* Process a user message and return the group's response.
|
|
179
179
|
* This endpoint accepts a message from a user and processes it through through agents in the group based on the specified pattern
|
|
180
180
|
*
|
|
181
|
-
* @param {string} groupId
|
|
181
|
+
* @param {string} groupId - The ID of the group in the format 'group-<uuid4>'
|
|
182
182
|
* @param {Letta.LettaRequest} request
|
|
183
183
|
* @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
|
|
184
184
|
*
|
|
185
185
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
186
186
|
*
|
|
187
187
|
* @example
|
|
188
|
-
* await client.groups.messages.create("
|
|
188
|
+
* await client.groups.messages.create("group-123e4567-e89b-42d3-8456-426614174000", {
|
|
189
189
|
* messages: [{
|
|
190
190
|
* role: "user",
|
|
191
191
|
* content: [{
|
|
@@ -206,7 +206,7 @@ class Messages {
|
|
|
206
206
|
method: "POST",
|
|
207
207
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
208
208
|
? yield core.Supplier.get(this._options.project)
|
|
209
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
209
|
+
: 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),
|
|
210
210
|
contentType: "application/json",
|
|
211
211
|
requestType: "json",
|
|
212
212
|
body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -277,7 +277,7 @@ class Messages {
|
|
|
277
277
|
method: "POST",
|
|
278
278
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
279
279
|
? yield core.Supplier.get(this._options.project)
|
|
280
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
280
|
+
: 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),
|
|
281
281
|
contentType: "application/json",
|
|
282
282
|
requestType: "json",
|
|
283
283
|
body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -346,15 +346,15 @@ class Messages {
|
|
|
346
346
|
/**
|
|
347
347
|
* Update the details of a message associated with an agent.
|
|
348
348
|
*
|
|
349
|
-
* @param {string} groupId
|
|
350
|
-
* @param {string} messageId
|
|
349
|
+
* @param {string} groupId - The ID of the group in the format 'group-<uuid4>'
|
|
350
|
+
* @param {string} messageId - The ID of the message in the format 'message-<uuid4>'
|
|
351
351
|
* @param {Letta.groups.MessagesModifyRequest} request
|
|
352
352
|
* @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
|
|
353
353
|
*
|
|
354
354
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
355
355
|
*
|
|
356
356
|
* @example
|
|
357
|
-
* await client.groups.messages.modify("
|
|
357
|
+
* await client.groups.messages.modify("group-123e4567-e89b-42d3-8456-426614174000", "message-123e4567-e89b-42d3-8456-426614174000", {
|
|
358
358
|
* content: "content"
|
|
359
359
|
* })
|
|
360
360
|
*/
|
|
@@ -369,7 +369,7 @@ class Messages {
|
|
|
369
369
|
method: "PATCH",
|
|
370
370
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
371
371
|
? yield core.Supplier.get(this._options.project)
|
|
372
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
372
|
+
: 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),
|
|
373
373
|
contentType: "application/json",
|
|
374
374
|
requestType: "json",
|
|
375
375
|
body: serializers.groups.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -427,13 +427,13 @@ class Messages {
|
|
|
427
427
|
/**
|
|
428
428
|
* Delete the group messages for all agents that are part of the multi-agent group.
|
|
429
429
|
*
|
|
430
|
-
* @param {string} groupId
|
|
430
|
+
* @param {string} groupId - The ID of the group in the format 'group-<uuid4>'
|
|
431
431
|
* @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
|
|
432
432
|
*
|
|
433
433
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
434
434
|
*
|
|
435
435
|
* @example
|
|
436
|
-
* await client.groups.messages.reset("
|
|
436
|
+
* await client.groups.messages.reset("group-123e4567-e89b-42d3-8456-426614174000")
|
|
437
437
|
*/
|
|
438
438
|
reset(groupId, requestOptions) {
|
|
439
439
|
return core.HttpResponsePromise.fromPromise(this.__reset(groupId, requestOptions));
|
|
@@ -446,7 +446,7 @@ class Messages {
|
|
|
446
446
|
method: "PATCH",
|
|
447
447
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
448
448
|
? yield core.Supplier.get(this._options.project)
|
|
449
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
449
|
+
: 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),
|
|
450
450
|
contentType: "application/json",
|
|
451
451
|
requestType: "json",
|
|
452
452
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -75,7 +75,7 @@ class Health {
|
|
|
75
75
|
method: "GET",
|
|
76
76
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
77
77
|
? yield core.Supplier.get(this._options.project)
|
|
78
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
78
|
+
: 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),
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
requestType: "json",
|
|
81
81
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -105,38 +105,38 @@ export declare class Identities {
|
|
|
105
105
|
count(requestOptions?: Identities.RequestOptions): core.HttpResponsePromise<number>;
|
|
106
106
|
private __count;
|
|
107
107
|
/**
|
|
108
|
-
* @param {string} identityId
|
|
108
|
+
* @param {string} identityId - The ID of the identity in the format 'identity-<uuid4>'
|
|
109
109
|
* @param {Identities.RequestOptions} requestOptions - Request-specific configuration.
|
|
110
110
|
*
|
|
111
111
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
112
112
|
*
|
|
113
113
|
* @example
|
|
114
|
-
* await client.identities.retrieve("
|
|
114
|
+
* await client.identities.retrieve("identity-123e4567-e89b-42d3-8456-426614174000")
|
|
115
115
|
*/
|
|
116
116
|
retrieve(identityId: string, requestOptions?: Identities.RequestOptions): core.HttpResponsePromise<Letta.Identity>;
|
|
117
117
|
private __retrieve;
|
|
118
118
|
/**
|
|
119
119
|
* Delete an identity by its identifier key
|
|
120
120
|
*
|
|
121
|
-
* @param {string} identityId
|
|
121
|
+
* @param {string} identityId - The ID of the identity in the format 'identity-<uuid4>'
|
|
122
122
|
* @param {Identities.RequestOptions} requestOptions - Request-specific configuration.
|
|
123
123
|
*
|
|
124
124
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
125
125
|
*
|
|
126
126
|
* @example
|
|
127
|
-
* await client.identities.delete("
|
|
127
|
+
* await client.identities.delete("identity-123e4567-e89b-42d3-8456-426614174000")
|
|
128
128
|
*/
|
|
129
129
|
delete(identityId: string, requestOptions?: Identities.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
130
130
|
private __delete;
|
|
131
131
|
/**
|
|
132
|
-
* @param {string} identityId
|
|
132
|
+
* @param {string} identityId - The ID of the identity in the format 'identity-<uuid4>'
|
|
133
133
|
* @param {Letta.IdentityUpdate} request
|
|
134
134
|
* @param {Identities.RequestOptions} requestOptions - Request-specific configuration.
|
|
135
135
|
*
|
|
136
136
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
137
137
|
*
|
|
138
138
|
* @example
|
|
139
|
-
* await client.identities.modify("
|
|
139
|
+
* await client.identities.modify("identity-123e4567-e89b-42d3-8456-426614174000")
|
|
140
140
|
*/
|
|
141
141
|
modify(identityId: string, request?: Letta.IdentityUpdate, requestOptions?: Identities.RequestOptions): core.HttpResponsePromise<Letta.Identity>;
|
|
142
142
|
private __modify;
|
|
@@ -139,7 +139,7 @@ class Identities {
|
|
|
139
139
|
method: "GET",
|
|
140
140
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
141
141
|
? yield core.Supplier.get(this._options.project)
|
|
142
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
142
|
+
: 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),
|
|
143
143
|
contentType: "application/json",
|
|
144
144
|
queryParameters: _queryParams,
|
|
145
145
|
requestType: "json",
|
|
@@ -218,7 +218,7 @@ class Identities {
|
|
|
218
218
|
method: "POST",
|
|
219
219
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
220
220
|
? yield core.Supplier.get(this._options.project)
|
|
221
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
221
|
+
: 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),
|
|
222
222
|
contentType: "application/json",
|
|
223
223
|
requestType: "json",
|
|
224
224
|
body: serializers.IdentityCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -297,7 +297,7 @@ class Identities {
|
|
|
297
297
|
method: "PUT",
|
|
298
298
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
299
299
|
? yield core.Supplier.get(this._options.project)
|
|
300
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
300
|
+
: 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),
|
|
301
301
|
contentType: "application/json",
|
|
302
302
|
requestType: "json",
|
|
303
303
|
body: serializers.IdentityUpsert.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -373,7 +373,7 @@ class Identities {
|
|
|
373
373
|
method: "GET",
|
|
374
374
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
375
375
|
? yield core.Supplier.get(this._options.project)
|
|
376
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
376
|
+
: 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),
|
|
377
377
|
contentType: "application/json",
|
|
378
378
|
requestType: "json",
|
|
379
379
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -428,13 +428,13 @@ class Identities {
|
|
|
428
428
|
});
|
|
429
429
|
}
|
|
430
430
|
/**
|
|
431
|
-
* @param {string} identityId
|
|
431
|
+
* @param {string} identityId - The ID of the identity in the format 'identity-<uuid4>'
|
|
432
432
|
* @param {Identities.RequestOptions} requestOptions - Request-specific configuration.
|
|
433
433
|
*
|
|
434
434
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
435
435
|
*
|
|
436
436
|
* @example
|
|
437
|
-
* await client.identities.retrieve("
|
|
437
|
+
* await client.identities.retrieve("identity-123e4567-e89b-42d3-8456-426614174000")
|
|
438
438
|
*/
|
|
439
439
|
retrieve(identityId, requestOptions) {
|
|
440
440
|
return core.HttpResponsePromise.fromPromise(this.__retrieve(identityId, requestOptions));
|
|
@@ -447,7 +447,7 @@ class Identities {
|
|
|
447
447
|
method: "GET",
|
|
448
448
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
449
449
|
? yield core.Supplier.get(this._options.project)
|
|
450
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
450
|
+
: 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),
|
|
451
451
|
contentType: "application/json",
|
|
452
452
|
requestType: "json",
|
|
453
453
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -504,13 +504,13 @@ class Identities {
|
|
|
504
504
|
/**
|
|
505
505
|
* Delete an identity by its identifier key
|
|
506
506
|
*
|
|
507
|
-
* @param {string} identityId
|
|
507
|
+
* @param {string} identityId - The ID of the identity in the format 'identity-<uuid4>'
|
|
508
508
|
* @param {Identities.RequestOptions} requestOptions - Request-specific configuration.
|
|
509
509
|
*
|
|
510
510
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
511
511
|
*
|
|
512
512
|
* @example
|
|
513
|
-
* await client.identities.delete("
|
|
513
|
+
* await client.identities.delete("identity-123e4567-e89b-42d3-8456-426614174000")
|
|
514
514
|
*/
|
|
515
515
|
delete(identityId, requestOptions) {
|
|
516
516
|
return core.HttpResponsePromise.fromPromise(this.__delete(identityId, requestOptions));
|
|
@@ -523,7 +523,7 @@ class Identities {
|
|
|
523
523
|
method: "DELETE",
|
|
524
524
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
525
525
|
? yield core.Supplier.get(this._options.project)
|
|
526
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
526
|
+
: 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),
|
|
527
527
|
contentType: "application/json",
|
|
528
528
|
requestType: "json",
|
|
529
529
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -569,14 +569,14 @@ class Identities {
|
|
|
569
569
|
});
|
|
570
570
|
}
|
|
571
571
|
/**
|
|
572
|
-
* @param {string} identityId
|
|
572
|
+
* @param {string} identityId - The ID of the identity in the format 'identity-<uuid4>'
|
|
573
573
|
* @param {Letta.IdentityUpdate} request
|
|
574
574
|
* @param {Identities.RequestOptions} requestOptions - Request-specific configuration.
|
|
575
575
|
*
|
|
576
576
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
577
577
|
*
|
|
578
578
|
* @example
|
|
579
|
-
* await client.identities.modify("
|
|
579
|
+
* await client.identities.modify("identity-123e4567-e89b-42d3-8456-426614174000")
|
|
580
580
|
*/
|
|
581
581
|
modify(identityId, request = {}, requestOptions) {
|
|
582
582
|
return core.HttpResponsePromise.fromPromise(this.__modify(identityId, request, requestOptions));
|
|
@@ -589,7 +589,7 @@ class Identities {
|
|
|
589
589
|
method: "PATCH",
|
|
590
590
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
591
591
|
? yield core.Supplier.get(this._options.project)
|
|
592
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
592
|
+
: 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),
|
|
593
593
|
contentType: "application/json",
|
|
594
594
|
requestType: "json",
|
|
595
595
|
body: serializers.IdentityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -33,14 +33,14 @@ export declare class Agents {
|
|
|
33
33
|
/**
|
|
34
34
|
* Get all agents associated with the specified identity.
|
|
35
35
|
*
|
|
36
|
-
* @param {string} identityId
|
|
36
|
+
* @param {string} identityId - The ID of the identity in the format 'identity-<uuid4>'
|
|
37
37
|
* @param {Letta.identities.AgentsListRequest} request
|
|
38
38
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
39
|
*
|
|
40
40
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.identities.agents.list("
|
|
43
|
+
* await client.identities.agents.list("identity-123e4567-e89b-42d3-8456-426614174000", {
|
|
44
44
|
* before: "before",
|
|
45
45
|
* after: "after",
|
|
46
46
|
* limit: 1,
|
|
@@ -62,14 +62,14 @@ class Agents {
|
|
|
62
62
|
/**
|
|
63
63
|
* Get all agents associated with the specified identity.
|
|
64
64
|
*
|
|
65
|
-
* @param {string} identityId
|
|
65
|
+
* @param {string} identityId - The ID of the identity in the format 'identity-<uuid4>'
|
|
66
66
|
* @param {Letta.identities.AgentsListRequest} request
|
|
67
67
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
68
|
*
|
|
69
69
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
|
-
* await client.identities.agents.list("
|
|
72
|
+
* await client.identities.agents.list("identity-123e4567-e89b-42d3-8456-426614174000", {
|
|
73
73
|
* before: "before",
|
|
74
74
|
* after: "after",
|
|
75
75
|
* limit: 1,
|
|
@@ -107,7 +107,7 @@ class Agents {
|
|
|
107
107
|
method: "GET",
|
|
108
108
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
109
109
|
? yield core.Supplier.get(this._options.project)
|
|
110
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
110
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.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),
|
|
111
111
|
contentType: "application/json",
|
|
112
112
|
queryParameters: _queryParams,
|
|
113
113
|
requestType: "json",
|
|
@@ -33,14 +33,14 @@ export declare class Blocks {
|
|
|
33
33
|
/**
|
|
34
34
|
* Get all blocks associated with the specified identity.
|
|
35
35
|
*
|
|
36
|
-
* @param {string} identityId
|
|
36
|
+
* @param {string} identityId - The ID of the identity in the format 'identity-<uuid4>'
|
|
37
37
|
* @param {Letta.identities.BlocksListRequest} request
|
|
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.identities.blocks.list("
|
|
43
|
+
* await client.identities.blocks.list("identity-123e4567-e89b-42d3-8456-426614174000", {
|
|
44
44
|
* before: "before",
|
|
45
45
|
* after: "after",
|
|
46
46
|
* limit: 1,
|
|
@@ -62,14 +62,14 @@ class Blocks {
|
|
|
62
62
|
/**
|
|
63
63
|
* Get all blocks associated with the specified identity.
|
|
64
64
|
*
|
|
65
|
-
* @param {string} identityId
|
|
65
|
+
* @param {string} identityId - The ID of the identity in the format 'identity-<uuid4>'
|
|
66
66
|
* @param {Letta.identities.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.identities.blocks.list("
|
|
72
|
+
* await client.identities.blocks.list("identity-123e4567-e89b-42d3-8456-426614174000", {
|
|
73
73
|
* before: "before",
|
|
74
74
|
* after: "after",
|
|
75
75
|
* limit: 1,
|
|
@@ -107,7 +107,7 @@ class Blocks {
|
|
|
107
107
|
method: "GET",
|
|
108
108
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
109
109
|
? yield core.Supplier.get(this._options.project)
|
|
110
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
110
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.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),
|
|
111
111
|
contentType: "application/json",
|
|
112
112
|
queryParameters: _queryParams,
|
|
113
113
|
requestType: "json",
|