@letta-ai/letta-client 0.1.5 → 0.1.7
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/Client.d.ts +3 -0
- package/Client.js +5 -0
- package/api/resources/agents/client/Client.d.ts +14 -106
- package/api/resources/agents/client/Client.js +31 -495
- package/{dist/api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts → api/resources/agents/client/requests/AgentsSearchRequest.d.ts} +3 -3
- package/api/resources/agents/client/requests/index.d.ts +1 -4
- package/api/resources/agents/resources/archivalMemory/client/Client.js +4 -4
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.d.ts +123 -0
- package/api/resources/agents/resources/coreMemory/client/Client.js +525 -0
- package/api/resources/agents/resources/index.d.ts +6 -2
- package/api/resources/agents/resources/index.js +7 -3
- package/api/resources/agents/resources/{memory → memoryVariables}/client/Client.d.ts +11 -13
- package/api/resources/agents/resources/{memory → memoryVariables}/client/Client.js +15 -25
- package/api/resources/agents/resources/memoryVariables/index.d.ts +2 -0
- package/api/resources/agents/resources/memoryVariables/index.js +18 -0
- package/api/resources/agents/{types/AgentsGetAgentVariablesResponse.d.ts → resources/memoryVariables/types/MemoryVariablesGetResponse.d.ts} +1 -1
- package/api/resources/agents/resources/memoryVariables/types/index.d.ts +1 -0
- package/api/resources/agents/resources/memoryVariables/types/index.js +17 -0
- package/api/resources/agents/resources/messages/client/Client.js +5 -5
- package/api/resources/agents/resources/recallMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/sources/client/Client.js +1 -1
- package/api/resources/agents/resources/templates/client/Client.d.ts +82 -0
- package/{dist/api/resources/agents/resources/memoryBlocks → api/resources/agents/resources/templates}/client/Client.js +126 -45
- package/api/resources/agents/resources/templates/client/index.d.ts +1 -0
- package/api/resources/agents/resources/templates/client/index.js +17 -0
- package/api/resources/agents/{client/requests/AgentsCreateTemplateFromAgentRequest.d.ts → resources/templates/client/requests/TemplatesCreateRequest.d.ts} +1 -1
- package/api/resources/agents/{client/requests/AgentsCreateVersionRequest.d.ts → resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts} +1 -1
- package/api/resources/agents/{client/requests/AgentsMigrateRequest.d.ts → resources/templates/client/requests/TemplatesMigrateRequest.d.ts} +1 -1
- package/api/resources/agents/resources/templates/client/requests/index.d.ts +3 -0
- package/api/resources/agents/resources/templates/index.d.ts +2 -0
- package/api/resources/agents/resources/templates/index.js +18 -0
- package/api/resources/agents/{types/AgentsMigrateResponse.d.ts → resources/templates/types/TemplatesMigrateResponse.d.ts} +1 -1
- package/api/resources/agents/resources/templates/types/index.d.ts +1 -0
- package/api/resources/agents/resources/templates/types/index.js +17 -0
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/agents/types/AgentsSearchRequestCombinator.d.ts +8 -0
- package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestCombinator.js → AgentsSearchRequestCombinator.js} +2 -2
- package/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +16 -0
- package/api/resources/agents/types/AgentsSearchRequestSearchItemName.d.ts +8 -0
- package/api/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.d.ts +9 -0
- package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js → AgentsSearchRequestSearchItemNameOperator.js} +2 -2
- package/api/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +8 -0
- package/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +8 -0
- package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js → api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.js} +2 -2
- package/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +8 -0
- package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js → api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js} +2 -2
- package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts → AgentsSearchRequestSearchItemVersion.d.ts} +1 -1
- package/api/resources/agents/types/index.d.ts +8 -10
- package/api/resources/agents/types/index.js +8 -10
- package/api/resources/blocks/client/Client.js +7 -7
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/providers/client/Client.d.ts +86 -0
- package/api/resources/providers/client/Client.js +336 -0
- package/api/resources/providers/client/index.d.ts +1 -0
- package/api/resources/providers/client/index.js +17 -0
- package/api/resources/providers/client/requests/DeleteProviderRequest.d.ts +15 -0
- package/api/resources/providers/client/requests/ListProvidersRequest.d.ts +11 -0
- package/api/resources/providers/client/requests/ProviderCreate.d.ts +16 -0
- package/api/resources/providers/client/requests/ProviderUpdate.d.ts +16 -0
- package/api/resources/providers/client/requests/index.d.ts +4 -0
- package/api/resources/sources/client/Client.js +8 -8
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/tools/client/Client.d.ts +3 -1
- package/api/resources/tools/client/Client.js +15 -13
- package/api/resources/tools/client/requests/ToolRunFromSource.d.ts +7 -3
- package/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
- package/api/types/AgentType.d.ts +1 -2
- package/api/types/AgentType.js +0 -1
- package/api/types/LettaSchemasToolTool.d.ts +4 -1
- package/api/types/Provider.d.ts +13 -0
- package/api/types/ToolType.d.ts +9 -0
- package/api/types/ToolType.js +11 -0
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +5 -0
- package/dist/api/resources/agents/client/Client.d.ts +14 -106
- package/dist/api/resources/agents/client/Client.js +31 -495
- package/{api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts → dist/api/resources/agents/client/requests/AgentsSearchRequest.d.ts} +3 -3
- package/dist/api/resources/agents/client/requests/index.d.ts +1 -4
- package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.d.ts +123 -0
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +525 -0
- package/dist/api/resources/agents/resources/index.d.ts +6 -2
- package/dist/api/resources/agents/resources/index.js +7 -3
- package/dist/api/resources/agents/resources/{memory → memoryVariables}/client/Client.d.ts +11 -13
- package/dist/api/resources/agents/resources/{memory → memoryVariables}/client/Client.js +15 -25
- package/dist/api/resources/agents/resources/memoryVariables/index.d.ts +2 -0
- package/dist/api/resources/agents/resources/memoryVariables/index.js +18 -0
- package/dist/api/resources/agents/{types/AgentsGetAgentVariablesResponse.d.ts → resources/memoryVariables/types/MemoryVariablesGetResponse.d.ts} +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/types/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/memoryVariables/types/index.js +17 -0
- package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/recallMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/sources/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/templates/client/Client.d.ts +82 -0
- package/{api/resources/agents/resources/memoryBlocks → dist/api/resources/agents/resources/templates}/client/Client.js +126 -45
- package/dist/api/resources/agents/resources/templates/client/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/templates/client/index.js +17 -0
- package/dist/api/resources/agents/{client/requests/AgentsCreateTemplateFromAgentRequest.d.ts → resources/templates/client/requests/TemplatesCreateRequest.d.ts} +1 -1
- package/dist/api/resources/agents/{client/requests/AgentsCreateVersionRequest.d.ts → resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts} +1 -1
- package/dist/api/resources/agents/{client/requests/AgentsMigrateRequest.d.ts → resources/templates/client/requests/TemplatesMigrateRequest.d.ts} +1 -1
- package/dist/api/resources/agents/resources/templates/client/requests/index.d.ts +3 -0
- package/dist/api/resources/agents/resources/templates/client/requests/index.js +2 -0
- package/dist/api/resources/agents/resources/templates/index.d.ts +2 -0
- package/dist/api/resources/agents/resources/templates/index.js +18 -0
- package/dist/api/resources/agents/{types/AgentsMigrateResponse.d.ts → resources/templates/types/TemplatesMigrateResponse.d.ts} +1 -1
- package/dist/api/resources/agents/resources/templates/types/TemplatesMigrateResponse.js +5 -0
- package/dist/api/resources/agents/resources/templates/types/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/templates/types/index.js +17 -0
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/agents/types/AgentsSearchRequestCombinator.d.ts +8 -0
- package/dist/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestCombinator.js → AgentsSearchRequestCombinator.js} +2 -2
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +16 -0
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItem.js +5 -0
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemName.d.ts +8 -0
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemName.js +5 -0
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.d.ts +9 -0
- package/dist/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js → AgentsSearchRequestSearchItemNameOperator.js} +2 -2
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +8 -0
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.js +5 -0
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +8 -0
- package/{api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.js} +2 -2
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +8 -0
- package/{api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js} +2 -2
- package/dist/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts → AgentsSearchRequestSearchItemVersion.d.ts} +1 -1
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemVersion.js +5 -0
- package/dist/api/resources/agents/types/index.d.ts +8 -10
- package/dist/api/resources/agents/types/index.js +8 -10
- package/dist/api/resources/blocks/client/Client.js +7 -7
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.d.ts +86 -0
- package/dist/api/resources/providers/client/Client.js +336 -0
- package/dist/api/resources/providers/client/index.d.ts +1 -0
- package/dist/api/resources/providers/client/index.js +17 -0
- package/dist/api/resources/providers/client/requests/DeleteProviderRequest.d.ts +15 -0
- package/dist/api/resources/providers/client/requests/DeleteProviderRequest.js +5 -0
- package/dist/api/resources/providers/client/requests/ListProvidersRequest.d.ts +11 -0
- package/dist/api/resources/providers/client/requests/ListProvidersRequest.js +5 -0
- package/dist/api/resources/providers/client/requests/ProviderCreate.d.ts +16 -0
- package/dist/api/resources/providers/client/requests/ProviderCreate.js +5 -0
- package/dist/api/resources/providers/client/requests/ProviderUpdate.d.ts +16 -0
- package/dist/api/resources/providers/client/requests/ProviderUpdate.js +5 -0
- package/dist/api/resources/providers/client/requests/index.d.ts +4 -0
- package/dist/api/resources/providers/client/requests/index.js +2 -0
- package/dist/api/resources/sources/client/Client.js +8 -8
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.d.ts +3 -1
- package/dist/api/resources/tools/client/Client.js +15 -13
- package/dist/api/resources/tools/client/requests/ToolRunFromSource.d.ts +7 -3
- package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
- package/dist/api/types/AgentType.d.ts +1 -2
- package/dist/api/types/AgentType.js +0 -1
- package/dist/api/types/LettaSchemasToolTool.d.ts +4 -1
- package/dist/api/types/Provider.d.ts +13 -0
- package/dist/api/types/Provider.js +5 -0
- package/dist/api/types/ToolType.d.ts +9 -0
- package/dist/api/types/ToolType.js +11 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/resources/agents/client/index.d.ts +0 -1
- package/dist/serialization/resources/agents/client/index.js +1 -2
- package/dist/serialization/resources/agents/client/requests/AgentsSearchRequest.d.ts +18 -0
- package/{serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js → dist/serialization/resources/agents/client/requests/AgentsSearchRequest.js} +6 -6
- package/dist/serialization/resources/agents/client/requests/index.d.ts +1 -4
- package/dist/serialization/resources/agents/client/requests/index.js +3 -9
- package/dist/serialization/resources/agents/resources/coreMemory/client/getBlocks.d.ts +11 -0
- package/{serialization/resources/agents/client/getAgentMemoryBlocks.js → dist/serialization/resources/agents/resources/coreMemory/client/getBlocks.js} +2 -2
- package/dist/serialization/resources/agents/resources/{memory/resources/messages → coreMemory}/client/index.d.ts +1 -0
- package/{serialization/resources/agents/resources/memory/resources/messages → dist/serialization/resources/agents/resources/coreMemory}/client/index.js +2 -1
- package/dist/serialization/resources/agents/resources/coreMemory/client/listInContext.d.ts +11 -0
- package/dist/serialization/resources/agents/resources/{memory/resources/messages → coreMemory}/client/listInContext.js +2 -2
- package/dist/serialization/resources/agents/resources/index.d.ts +6 -1
- package/dist/serialization/resources/agents/resources/index.js +7 -2
- package/dist/serialization/resources/agents/resources/memoryVariables/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/memoryVariables/index.js +17 -0
- package/dist/serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.d.ts +12 -0
- package/dist/serialization/resources/agents/{types/AgentsGetAgentVariablesResponse.js → resources/memoryVariables/types/MemoryVariablesGetResponse.js} +3 -3
- package/dist/serialization/resources/agents/resources/memoryVariables/types/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/memoryVariables/types/index.js +17 -0
- package/dist/serialization/resources/agents/resources/templates/client/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/templates/client/index.js +17 -0
- package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +12 -0
- package/{serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.js → dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js} +3 -3
- package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +12 -0
- package/dist/serialization/resources/agents/{client/requests/AgentsCreateVersionRequest.js → resources/templates/client/requests/TemplatesCreateVersionRequest.js} +3 -3
- package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +14 -0
- package/{serialization/resources/agents/client/requests/AgentsMigrateRequest.js → dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js} +3 -3
- package/dist/serialization/resources/agents/resources/templates/client/requests/index.d.ts +3 -0
- package/dist/serialization/resources/agents/resources/templates/client/requests/index.js +9 -0
- package/dist/serialization/resources/agents/resources/templates/index.d.ts +2 -0
- package/dist/serialization/resources/agents/resources/templates/index.js +18 -0
- package/dist/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts +12 -0
- package/dist/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.js +33 -0
- package/dist/serialization/resources/agents/resources/templates/types/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/templates/types/index.js +17 -0
- package/dist/serialization/resources/agents/types/AgentsSearchRequestCombinator.d.ts +10 -0
- package/dist/serialization/resources/agents/types/{AgentsMigrateResponse.js → AgentsSearchRequestCombinator.js} +2 -4
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +22 -0
- package/dist/serialization/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js → AgentsSearchRequestSearchItem.js} +13 -6
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemName.d.ts +14 -0
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemName.js +35 -0
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.d.ts +10 -0
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.js +31 -0
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +15 -0
- package/dist/serialization/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemName.js → AgentsSearchRequestSearchItemOrderBy.js} +6 -5
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +10 -0
- package/dist/serialization/resources/agents/types/{AgentsSearchDeployedAgentsRequestCombinator.js → AgentsSearchRequestSearchItemOrderByDirection.js} +2 -2
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +10 -0
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js +31 -0
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemVersion.d.ts +12 -0
- package/dist/serialization/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemVersion.js → AgentsSearchRequestSearchItemVersion.js} +2 -2
- package/dist/serialization/resources/agents/types/index.d.ts +8 -10
- package/dist/serialization/resources/agents/types/index.js +8 -10
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/index.js +3 -1
- package/dist/serialization/resources/providers/client/index.d.ts +2 -0
- package/dist/serialization/resources/{agents/resources/memory/resources → providers/client}/index.js +6 -2
- package/dist/serialization/resources/{agents/client/getAgentMemoryBlocks.d.ts → providers/client/listProviders.d.ts} +3 -3
- package/{serialization/resources/agents/types/AgentsMigrateResponse.js → dist/serialization/resources/providers/client/listProviders.js} +3 -4
- package/dist/serialization/resources/providers/client/requests/ProviderCreate.d.ts +13 -0
- package/dist/serialization/resources/providers/client/requests/ProviderCreate.js +34 -0
- package/dist/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +13 -0
- package/dist/serialization/resources/providers/client/requests/ProviderUpdate.js +34 -0
- package/dist/serialization/resources/providers/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/providers/client/requests/index.js +7 -0
- package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -1
- package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.js +2 -1
- 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/AgentType.d.ts +1 -1
- package/dist/serialization/types/AgentType.js +1 -7
- package/dist/serialization/types/LettaSchemasToolTool.d.ts +3 -1
- package/dist/serialization/types/LettaSchemasToolTool.js +3 -1
- package/dist/serialization/types/Provider.d.ts +15 -0
- package/dist/serialization/types/Provider.js +36 -0
- package/dist/serialization/types/ToolType.d.ts +10 -0
- package/dist/serialization/types/ToolType.js +35 -0
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +591 -317
- package/serialization/resources/agents/client/index.d.ts +0 -1
- package/serialization/resources/agents/client/index.js +1 -2
- package/serialization/resources/agents/client/requests/AgentsSearchRequest.d.ts +18 -0
- package/{dist/serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js → serialization/resources/agents/client/requests/AgentsSearchRequest.js} +6 -6
- package/serialization/resources/agents/client/requests/index.d.ts +1 -4
- package/serialization/resources/agents/client/requests/index.js +3 -9
- package/serialization/resources/agents/resources/coreMemory/client/getBlocks.d.ts +11 -0
- package/{dist/serialization/resources/agents/client/getAgentMemoryBlocks.js → serialization/resources/agents/resources/coreMemory/client/getBlocks.js} +2 -2
- package/serialization/resources/agents/resources/{memory/resources/messages → coreMemory}/client/index.d.ts +1 -0
- package/{dist/serialization/resources/agents/resources/memory/resources/messages → serialization/resources/agents/resources/coreMemory}/client/index.js +2 -1
- package/serialization/resources/agents/resources/coreMemory/client/listInContext.d.ts +11 -0
- package/serialization/resources/agents/resources/{memory/resources/messages → coreMemory}/client/listInContext.js +2 -2
- package/serialization/resources/agents/resources/coreMemory/index.d.ts +1 -0
- package/serialization/resources/agents/resources/coreMemory/index.js +17 -0
- package/serialization/resources/agents/resources/index.d.ts +6 -1
- package/serialization/resources/agents/resources/index.js +7 -2
- package/serialization/resources/agents/resources/memoryVariables/index.d.ts +1 -0
- package/serialization/resources/agents/resources/memoryVariables/index.js +17 -0
- package/serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.d.ts +12 -0
- package/serialization/resources/agents/{types/AgentsGetAgentVariablesResponse.js → resources/memoryVariables/types/MemoryVariablesGetResponse.js} +3 -3
- package/serialization/resources/agents/resources/memoryVariables/types/index.d.ts +1 -0
- package/serialization/resources/agents/resources/memoryVariables/types/index.js +17 -0
- package/serialization/resources/agents/resources/templates/client/index.d.ts +1 -0
- package/serialization/resources/agents/resources/templates/client/index.js +17 -0
- package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +12 -0
- package/{dist/serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.js → serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js} +3 -3
- package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +12 -0
- package/serialization/resources/agents/{client/requests/AgentsCreateVersionRequest.js → resources/templates/client/requests/TemplatesCreateVersionRequest.js} +3 -3
- package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +14 -0
- package/{dist/serialization/resources/agents/client/requests/AgentsMigrateRequest.js → serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js} +3 -3
- package/serialization/resources/agents/resources/templates/client/requests/index.d.ts +3 -0
- package/serialization/resources/agents/resources/templates/client/requests/index.js +9 -0
- package/serialization/resources/agents/resources/templates/index.d.ts +2 -0
- package/serialization/resources/agents/resources/templates/index.js +18 -0
- package/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts +12 -0
- package/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.js +33 -0
- package/serialization/resources/agents/resources/templates/types/index.d.ts +1 -0
- package/serialization/resources/agents/resources/templates/types/index.js +17 -0
- package/serialization/resources/agents/types/AgentsSearchRequestCombinator.d.ts +10 -0
- package/serialization/resources/agents/types/AgentsSearchRequestCombinator.js +31 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +22 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +43 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemName.d.ts +14 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemName.js +35 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.d.ts +10 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.js +31 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +15 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.js +36 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +10 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.js +31 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +10 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js +31 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemVersion.d.ts +12 -0
- package/serialization/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemVersion.js → AgentsSearchRequestSearchItemVersion.js} +2 -2
- package/serialization/resources/agents/types/index.d.ts +8 -10
- package/serialization/resources/agents/types/index.js +8 -10
- package/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +3 -1
- package/serialization/resources/providers/client/index.d.ts +2 -0
- package/{api/resources/agents/resources/memory/resources → serialization/resources/providers/client}/index.js +6 -2
- package/serialization/resources/{agents/client/getAgentMemoryBlocks.d.ts → providers/client/listProviders.d.ts} +3 -3
- package/serialization/resources/providers/client/listProviders.js +32 -0
- package/serialization/resources/providers/client/requests/ProviderCreate.d.ts +13 -0
- package/serialization/resources/providers/client/requests/ProviderCreate.js +34 -0
- package/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +13 -0
- package/serialization/resources/providers/client/requests/ProviderUpdate.js +34 -0
- package/serialization/resources/providers/client/requests/index.d.ts +2 -0
- package/serialization/resources/providers/client/requests/index.js +7 -0
- package/serialization/resources/providers/index.d.ts +1 -0
- package/serialization/resources/providers/index.js +17 -0
- package/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -1
- package/serialization/resources/tools/client/requests/ToolRunFromSource.js +2 -1
- package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
- package/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
- package/serialization/types/AgentType.d.ts +1 -1
- package/serialization/types/AgentType.js +1 -7
- package/serialization/types/LettaSchemasToolTool.d.ts +3 -1
- package/serialization/types/LettaSchemasToolTool.js +3 -1
- package/serialization/types/Provider.d.ts +15 -0
- package/serialization/types/Provider.js +36 -0
- package/serialization/types/ToolType.d.ts +10 -0
- package/serialization/types/ToolType.js +35 -0
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/agents/resources/memory/index.d.ts +0 -2
- package/api/resources/agents/resources/memory/index.js +0 -18
- package/api/resources/agents/resources/memory/resources/index.d.ts +0 -1
- package/api/resources/agents/resources/memory/resources/messages/client/Client.d.ts +0 -42
- package/api/resources/agents/resources/memory/resources/messages/client/Client.js +0 -124
- package/api/resources/agents/resources/memoryBlocks/client/Client.d.ts +0 -59
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +0 -8
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +0 -16
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +0 -8
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts +0 -9
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +0 -8
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts +0 -8
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts +0 -8
- package/dist/api/resources/agents/resources/memory/index.d.ts +0 -2
- package/dist/api/resources/agents/resources/memory/index.js +0 -18
- package/dist/api/resources/agents/resources/memory/resources/index.d.ts +0 -1
- package/dist/api/resources/agents/resources/memory/resources/index.js +0 -27
- package/dist/api/resources/agents/resources/memory/resources/messages/client/Client.d.ts +0 -42
- package/dist/api/resources/agents/resources/memory/resources/messages/client/Client.js +0 -124
- package/dist/api/resources/agents/resources/memory/resources/messages/client/index.d.ts +0 -1
- package/dist/api/resources/agents/resources/memoryBlocks/client/Client.d.ts +0 -59
- package/dist/api/resources/agents/resources/memoryBlocks/client/index.d.ts +0 -1
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +0 -8
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +0 -16
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +0 -8
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts +0 -9
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +0 -8
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts +0 -8
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts +0 -8
- package/dist/serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +0 -12
- package/dist/serialization/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +0 -12
- package/dist/serialization/resources/agents/client/requests/AgentsMigrateRequest.d.ts +0 -14
- package/dist/serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +0 -18
- package/dist/serialization/resources/agents/resources/memory/index.d.ts +0 -1
- package/dist/serialization/resources/agents/resources/memory/index.js +0 -17
- package/dist/serialization/resources/agents/resources/memory/resources/index.d.ts +0 -1
- package/dist/serialization/resources/agents/resources/memory/resources/messages/client/listInContext.d.ts +0 -11
- package/dist/serialization/resources/agents/types/AgentsGetAgentVariablesResponse.d.ts +0 -12
- package/dist/serialization/resources/agents/types/AgentsMigrateResponse.d.ts +0 -12
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +0 -10
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +0 -22
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.js +0 -43
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +0 -14
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts +0 -10
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js +0 -31
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +0 -15
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts +0 -10
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js +0 -31
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts +0 -10
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js +0 -31
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts +0 -12
- package/serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +0 -12
- package/serialization/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +0 -12
- package/serialization/resources/agents/client/requests/AgentsMigrateRequest.d.ts +0 -14
- package/serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +0 -18
- package/serialization/resources/agents/resources/memory/index.d.ts +0 -1
- package/serialization/resources/agents/resources/memory/index.js +0 -17
- package/serialization/resources/agents/resources/memory/resources/index.d.ts +0 -1
- package/serialization/resources/agents/resources/memory/resources/index.js +0 -27
- package/serialization/resources/agents/resources/memory/resources/messages/client/listInContext.d.ts +0 -11
- package/serialization/resources/agents/types/AgentsGetAgentVariablesResponse.d.ts +0 -12
- package/serialization/resources/agents/types/AgentsMigrateResponse.d.ts +0 -12
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +0 -10
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.js +0 -31
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +0 -22
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.js +0 -43
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +0 -14
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.js +0 -35
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts +0 -10
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js +0 -31
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +0 -15
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js +0 -36
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts +0 -10
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js +0 -31
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts +0 -10
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js +0 -31
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts +0 -12
- /package/api/resources/agents/client/requests/{AgentsCreateTemplateFromAgentRequest.js → AgentsSearchRequest.js} +0 -0
- /package/api/resources/agents/resources/{memory → coreMemory}/client/index.d.ts +0 -0
- /package/api/resources/agents/resources/{memory → coreMemory}/client/index.js +0 -0
- /package/api/resources/agents/resources/{memory/resources/messages → coreMemory}/index.d.ts +0 -0
- /package/api/resources/agents/resources/{memory/resources/messages → coreMemory}/index.js +0 -0
- /package/api/resources/agents/resources/{memory/resources/messages → memoryVariables}/client/index.d.ts +0 -0
- /package/api/resources/agents/resources/{memory/resources/messages → memoryVariables}/client/index.js +0 -0
- /package/api/resources/agents/{client/requests/AgentsCreateVersionRequest.js → resources/memoryVariables/types/MemoryVariablesGetResponse.js} +0 -0
- /package/api/resources/agents/{client/requests/AgentsMigrateRequest.js → resources/templates/client/requests/TemplatesCreateRequest.js} +0 -0
- /package/api/resources/agents/{client/requests/AgentsSearchDeployedAgentsRequest.js → resources/templates/client/requests/TemplatesCreateVersionRequest.js} +0 -0
- /package/api/resources/agents/{types/AgentsGetAgentVariablesResponse.js → resources/templates/client/requests/TemplatesMigrateRequest.js} +0 -0
- /package/api/resources/agents/resources/{memoryBlocks/client → templates/client/requests}/index.js +0 -0
- /package/api/resources/agents/{types/AgentsMigrateResponse.js → resources/templates/types/TemplatesMigrateResponse.js} +0 -0
- /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItem.js → AgentsSearchRequestSearchItem.js} +0 -0
- /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemName.js → AgentsSearchRequestSearchItemName.js} +0 -0
- /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js → AgentsSearchRequestSearchItemOrderBy.js} +0 -0
- /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemVersion.js → AgentsSearchRequestSearchItemVersion.js} +0 -0
- /package/{dist/api/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.js → api/resources/providers/client/requests/DeleteProviderRequest.js} +0 -0
- /package/{dist/api/resources/agents/client/requests/AgentsCreateVersionRequest.js → api/resources/providers/client/requests/ListProvidersRequest.js} +0 -0
- /package/{dist/api/resources/agents/client/requests/AgentsMigrateRequest.js → api/resources/providers/client/requests/ProviderCreate.js} +0 -0
- /package/{dist/api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js → api/resources/providers/client/requests/ProviderUpdate.js} +0 -0
- /package/{dist/api/resources/agents/resources/memory/client → api/resources/providers/client/requests}/index.js +0 -0
- /package/api/resources/{agents/resources/memoryBlocks → providers}/index.d.ts +0 -0
- /package/api/resources/{agents/resources/memoryBlocks → providers}/index.js +0 -0
- /package/{dist/api/resources/agents/types/AgentsGetAgentVariablesResponse.js → api/types/Provider.js} +0 -0
- /package/dist/api/resources/agents/{types/AgentsMigrateResponse.js → client/requests/AgentsSearchRequest.js} +0 -0
- /package/{api/resources/agents/resources/memoryBlocks → dist/api/resources/agents/resources/coreMemory}/client/index.d.ts +0 -0
- /package/dist/api/resources/agents/resources/{memory/resources/messages → coreMemory}/client/index.js +0 -0
- /package/dist/api/resources/agents/resources/{memory/resources/messages → coreMemory}/index.d.ts +0 -0
- /package/dist/api/resources/agents/resources/{memory/resources/messages → coreMemory}/index.js +0 -0
- /package/dist/api/resources/agents/resources/{memory → memoryVariables}/client/index.d.ts +0 -0
- /package/dist/api/resources/agents/resources/{memoryBlocks → memoryVariables}/client/index.js +0 -0
- /package/dist/api/resources/agents/{types/AgentsSearchDeployedAgentsRequestSearchItem.js → resources/memoryVariables/types/MemoryVariablesGetResponse.js} +0 -0
- /package/dist/api/resources/agents/{types/AgentsSearchDeployedAgentsRequestSearchItemName.js → resources/templates/client/requests/TemplatesCreateRequest.js} +0 -0
- /package/dist/api/resources/agents/{types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js → resources/templates/client/requests/TemplatesCreateVersionRequest.js} +0 -0
- /package/dist/api/resources/agents/{types/AgentsSearchDeployedAgentsRequestSearchItemVersion.js → resources/templates/client/requests/TemplatesMigrateRequest.js} +0 -0
- /package/dist/api/resources/{agents/resources/memoryBlocks → providers}/index.d.ts +0 -0
- /package/dist/api/resources/{agents/resources/memoryBlocks → providers}/index.js +0 -0
- /package/dist/serialization/resources/agents/resources/{memory/resources/messages → coreMemory}/index.d.ts +0 -0
- /package/dist/serialization/resources/agents/resources/{memory/resources/messages → coreMemory}/index.js +0 -0
- /package/{serialization/resources/agents/resources/memory/resources/messages → dist/serialization/resources/providers}/index.d.ts +0 -0
- /package/{serialization/resources/agents/resources/memory/resources/messages → dist/serialization/resources/providers}/index.js +0 -0
|
@@ -66,7 +66,7 @@ class Tools {
|
|
|
66
66
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
67
67
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
|
|
68
68
|
method: "GET",
|
|
69
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
69
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
|
|
70
70
|
contentType: "application/json",
|
|
71
71
|
requestType: "json",
|
|
72
72
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -131,7 +131,7 @@ class Tools {
|
|
|
131
131
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
132
132
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
|
|
133
133
|
method: "DELETE",
|
|
134
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
134
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
|
|
135
135
|
contentType: "application/json",
|
|
136
136
|
requestType: "json",
|
|
137
137
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -191,7 +191,7 @@ class Tools {
|
|
|
191
191
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
192
192
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
|
|
193
193
|
method: "PATCH",
|
|
194
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
194
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
|
|
195
195
|
contentType: "application/json",
|
|
196
196
|
requestType: "json",
|
|
197
197
|
body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -257,7 +257,7 @@ class Tools {
|
|
|
257
257
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
258
258
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/tools/name/${encodeURIComponent(toolName)}`),
|
|
259
259
|
method: "GET",
|
|
260
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
260
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
|
|
261
261
|
contentType: "application/json",
|
|
262
262
|
requestType: "json",
|
|
263
263
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -330,7 +330,7 @@ class Tools {
|
|
|
330
330
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
331
331
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
|
|
332
332
|
method: "GET",
|
|
333
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
333
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
|
|
334
334
|
contentType: "application/json",
|
|
335
335
|
queryParameters: _queryParams,
|
|
336
336
|
requestType: "json",
|
|
@@ -398,7 +398,7 @@ class Tools {
|
|
|
398
398
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
399
399
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
|
|
400
400
|
method: "POST",
|
|
401
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
401
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
|
|
402
402
|
contentType: "application/json",
|
|
403
403
|
requestType: "json",
|
|
404
404
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -466,7 +466,7 @@ class Tools {
|
|
|
466
466
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
467
467
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
|
|
468
468
|
method: "PUT",
|
|
469
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
469
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
|
|
470
470
|
contentType: "application/json",
|
|
471
471
|
requestType: "json",
|
|
472
472
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -531,7 +531,7 @@ class Tools {
|
|
|
531
531
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
532
532
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/tools/add-base-tools"),
|
|
533
533
|
method: "POST",
|
|
534
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
534
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
|
|
535
535
|
contentType: "application/json",
|
|
536
536
|
requestType: "json",
|
|
537
537
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -590,7 +590,9 @@ class Tools {
|
|
|
590
590
|
* @example
|
|
591
591
|
* await client.tools.runToolFromSource({
|
|
592
592
|
* sourceCode: "source_code",
|
|
593
|
-
* args:
|
|
593
|
+
* args: {
|
|
594
|
+
* "key": "value"
|
|
595
|
+
* }
|
|
594
596
|
* })
|
|
595
597
|
*/
|
|
596
598
|
runToolFromSource(request, requestOptions) {
|
|
@@ -599,7 +601,7 @@ class Tools {
|
|
|
599
601
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
600
602
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/tools/run"),
|
|
601
603
|
method: "POST",
|
|
602
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
604
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
|
|
603
605
|
contentType: "application/json",
|
|
604
606
|
requestType: "json",
|
|
605
607
|
body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -664,7 +666,7 @@ class Tools {
|
|
|
664
666
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
665
667
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/tools/composio/apps"),
|
|
666
668
|
method: "GET",
|
|
667
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
669
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
|
|
668
670
|
contentType: "application/json",
|
|
669
671
|
requestType: "json",
|
|
670
672
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -729,7 +731,7 @@ class Tools {
|
|
|
729
731
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
730
732
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
|
|
731
733
|
method: "GET",
|
|
732
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
734
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
|
|
733
735
|
contentType: "application/json",
|
|
734
736
|
requestType: "json",
|
|
735
737
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -794,7 +796,7 @@ class Tools {
|
|
|
794
796
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
795
797
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/${encodeURIComponent(composioActionName)}`),
|
|
796
798
|
method: "POST",
|
|
797
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
799
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
|
|
798
800
|
contentType: "application/json",
|
|
799
801
|
requestType: "json",
|
|
800
802
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -5,14 +5,18 @@
|
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
7
|
* sourceCode: "source_code",
|
|
8
|
-
* args:
|
|
8
|
+
* args: {
|
|
9
|
+
* "key": "value"
|
|
10
|
+
* }
|
|
9
11
|
* }
|
|
10
12
|
*/
|
|
11
13
|
export interface ToolRunFromSource {
|
|
12
14
|
/** The source code of the function. */
|
|
13
15
|
sourceCode: string;
|
|
14
|
-
/** The arguments to pass to the tool
|
|
15
|
-
args: string
|
|
16
|
+
/** The arguments to pass to the tool. */
|
|
17
|
+
args: Record<string, string>;
|
|
18
|
+
/** The environment variables to pass to the tool. */
|
|
19
|
+
envVars?: Record<string, string>;
|
|
16
20
|
/** The name of the tool to run. */
|
|
17
21
|
name?: string;
|
|
18
22
|
/** The type of the source code. */
|
|
@@ -20,4 +20,6 @@ export interface ToolUpdate {
|
|
|
20
20
|
sourceType?: string;
|
|
21
21
|
/** The JSON schema of the function (auto-generated from source_code if not provided) */
|
|
22
22
|
jsonSchema?: Record<string, unknown>;
|
|
23
|
+
/** The maximum number of characters in the response. */
|
|
24
|
+
returnCharLimit?: number;
|
|
23
25
|
}
|
package/api/types/AgentType.d.ts
CHANGED
|
@@ -4,11 +4,10 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Enum to represent the type of agent.
|
|
6
6
|
*/
|
|
7
|
-
export declare type AgentType = "memgpt_agent" | "split_thread_agent" | "
|
|
7
|
+
export declare type AgentType = "memgpt_agent" | "split_thread_agent" | "offline_memory_agent" | "chat_only_agent";
|
|
8
8
|
export declare const AgentType: {
|
|
9
9
|
readonly MemgptAgent: "memgpt_agent";
|
|
10
10
|
readonly SplitThreadAgent: "split_thread_agent";
|
|
11
|
-
readonly O1Agent: "o1_agent";
|
|
12
11
|
readonly OfflineMemoryAgent: "offline_memory_agent";
|
|
13
12
|
readonly ChatOnlyAgent: "chat_only_agent";
|
|
14
13
|
};
|
package/api/types/AgentType.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
4
5
|
/**
|
|
5
6
|
* Representation of a tool, which is a function that can be called by the agent.
|
|
6
7
|
*
|
|
@@ -14,6 +15,8 @@
|
|
|
14
15
|
export interface LettaSchemasToolTool {
|
|
15
16
|
/** The human-friendly ID of the Tool */
|
|
16
17
|
id?: string;
|
|
18
|
+
/** The type of the tool. */
|
|
19
|
+
toolType?: Letta.ToolType;
|
|
17
20
|
/** The description of the tool. */
|
|
18
21
|
description?: string;
|
|
19
22
|
/** The type of the source code. */
|
|
@@ -25,7 +28,7 @@ export interface LettaSchemasToolTool {
|
|
|
25
28
|
/** Metadata tags. */
|
|
26
29
|
tags?: string[];
|
|
27
30
|
/** The source code of the function. */
|
|
28
|
-
sourceCode
|
|
31
|
+
sourceCode?: string;
|
|
29
32
|
/** The JSON schema of the function. */
|
|
30
33
|
jsonSchema?: Record<string, unknown>;
|
|
31
34
|
/** The maximum number of characters in the response. */
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface Provider {
|
|
5
|
+
/** The id of the provider, lazily created by the database manager. */
|
|
6
|
+
id?: string;
|
|
7
|
+
/** The name of the provider */
|
|
8
|
+
name: string;
|
|
9
|
+
/** API key used for requests to the provider. */
|
|
10
|
+
apiKey?: string;
|
|
11
|
+
/** The last update timestamp of the provider. */
|
|
12
|
+
updatedAt?: Date;
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type ToolType = "custom" | "letta_core" | "letta_memory_core";
|
|
5
|
+
export declare const ToolType: {
|
|
6
|
+
readonly Custom: "custom";
|
|
7
|
+
readonly LettaCore: "letta_core";
|
|
8
|
+
readonly LettaMemoryCore: "letta_memory_core";
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ToolType = void 0;
|
|
7
|
+
exports.ToolType = {
|
|
8
|
+
Custom: "custom",
|
|
9
|
+
LettaCore: "letta_core",
|
|
10
|
+
LettaMemoryCore: "letta_memory_core",
|
|
11
|
+
};
|
package/api/types/index.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ export * from "./OpenAiAssistant";
|
|
|
65
65
|
export * from "./Organization";
|
|
66
66
|
export * from "./OrganizationCreate";
|
|
67
67
|
export * from "./Passage";
|
|
68
|
+
export * from "./Provider";
|
|
68
69
|
export * from "./ReasoningMessage";
|
|
69
70
|
export * from "./RecallMemorySummary";
|
|
70
71
|
export * from "./ResponseFormat";
|
|
@@ -92,6 +93,7 @@ export * from "./ToolMessage";
|
|
|
92
93
|
export * from "./ToolReturnMessageStatus";
|
|
93
94
|
export * from "./ToolReturnMessage";
|
|
94
95
|
export * from "./ToolRuleType";
|
|
96
|
+
export * from "./ToolType";
|
|
95
97
|
export * from "./UsageStatistics";
|
|
96
98
|
export * from "./User";
|
|
97
99
|
export * from "./UserCreate";
|
package/api/types/index.js
CHANGED
|
@@ -81,6 +81,7 @@ __exportStar(require("./OpenAiAssistant"), exports);
|
|
|
81
81
|
__exportStar(require("./Organization"), exports);
|
|
82
82
|
__exportStar(require("./OrganizationCreate"), exports);
|
|
83
83
|
__exportStar(require("./Passage"), exports);
|
|
84
|
+
__exportStar(require("./Provider"), exports);
|
|
84
85
|
__exportStar(require("./ReasoningMessage"), exports);
|
|
85
86
|
__exportStar(require("./RecallMemorySummary"), exports);
|
|
86
87
|
__exportStar(require("./ResponseFormat"), exports);
|
|
@@ -108,6 +109,7 @@ __exportStar(require("./ToolMessage"), exports);
|
|
|
108
109
|
__exportStar(require("./ToolReturnMessageStatus"), exports);
|
|
109
110
|
__exportStar(require("./ToolReturnMessage"), exports);
|
|
110
111
|
__exportStar(require("./ToolRuleType"), exports);
|
|
112
|
+
__exportStar(require("./ToolType"), exports);
|
|
111
113
|
__exportStar(require("./UsageStatistics"), exports);
|
|
112
114
|
__exportStar(require("./User"), exports);
|
|
113
115
|
__exportStar(require("./UserCreate"), exports);
|
package/dist/Client.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { Models } from "./api/resources/models/client/Client";
|
|
|
10
10
|
import { Blocks } from "./api/resources/blocks/client/Client";
|
|
11
11
|
import { Jobs } from "./api/resources/jobs/client/Client";
|
|
12
12
|
import { Health } from "./api/resources/health/client/Client";
|
|
13
|
+
import { Providers } from "./api/resources/providers/client/Client";
|
|
13
14
|
export declare namespace LettaClient {
|
|
14
15
|
interface Options {
|
|
15
16
|
environment?: core.Supplier<environments.LettaEnvironment | string>;
|
|
@@ -36,6 +37,7 @@ export declare class LettaClient {
|
|
|
36
37
|
protected _blocks: Blocks | undefined;
|
|
37
38
|
protected _jobs: Jobs | undefined;
|
|
38
39
|
protected _health: Health | undefined;
|
|
40
|
+
protected _providers: Providers | undefined;
|
|
39
41
|
constructor(_options?: LettaClient.Options);
|
|
40
42
|
get tools(): Tools;
|
|
41
43
|
get sources(): Sources;
|
|
@@ -44,4 +46,5 @@ export declare class LettaClient {
|
|
|
44
46
|
get blocks(): Blocks;
|
|
45
47
|
get jobs(): Jobs;
|
|
46
48
|
get health(): Health;
|
|
49
|
+
get providers(): Providers;
|
|
47
50
|
}
|
package/dist/Client.js
CHANGED
|
@@ -11,6 +11,7 @@ const Client_4 = require("./api/resources/models/client/Client");
|
|
|
11
11
|
const Client_5 = require("./api/resources/blocks/client/Client");
|
|
12
12
|
const Client_6 = require("./api/resources/jobs/client/Client");
|
|
13
13
|
const Client_7 = require("./api/resources/health/client/Client");
|
|
14
|
+
const Client_8 = require("./api/resources/providers/client/Client");
|
|
14
15
|
class LettaClient {
|
|
15
16
|
constructor(_options = {}) {
|
|
16
17
|
this._options = _options;
|
|
@@ -43,5 +44,9 @@ class LettaClient {
|
|
|
43
44
|
var _a;
|
|
44
45
|
return ((_a = this._health) !== null && _a !== void 0 ? _a : (this._health = new Client_7.Health(this._options)));
|
|
45
46
|
}
|
|
47
|
+
get providers() {
|
|
48
|
+
var _a;
|
|
49
|
+
return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new Client_8.Providers(this._options)));
|
|
50
|
+
}
|
|
46
51
|
}
|
|
47
52
|
exports.LettaClient = LettaClient;
|
|
@@ -7,11 +7,12 @@ import * as Letta from "../../../index";
|
|
|
7
7
|
import { Context } from "../resources/context/client/Client";
|
|
8
8
|
import { Tools } from "../resources/tools/client/Client";
|
|
9
9
|
import { Sources } from "../resources/sources/client/Client";
|
|
10
|
-
import {
|
|
11
|
-
import { MemoryBlocks } from "../resources/memoryBlocks/client/Client";
|
|
10
|
+
import { CoreMemory } from "../resources/coreMemory/client/Client";
|
|
12
11
|
import { RecallMemory } from "../resources/recallMemory/client/Client";
|
|
13
12
|
import { ArchivalMemory } from "../resources/archivalMemory/client/Client";
|
|
14
13
|
import { Messages } from "../resources/messages/client/Client";
|
|
14
|
+
import { Templates } from "../resources/templates/client/Client";
|
|
15
|
+
import { MemoryVariables } from "../resources/memoryVariables/client/Client";
|
|
15
16
|
export declare namespace Agents {
|
|
16
17
|
interface Options {
|
|
17
18
|
environment?: core.Supplier<environments.LettaEnvironment | string>;
|
|
@@ -34,20 +35,22 @@ export declare class Agents {
|
|
|
34
35
|
protected _context: Context | undefined;
|
|
35
36
|
protected _tools: Tools | undefined;
|
|
36
37
|
protected _sources: Sources | undefined;
|
|
37
|
-
protected
|
|
38
|
-
protected _memoryBlocks: MemoryBlocks | undefined;
|
|
38
|
+
protected _coreMemory: CoreMemory | undefined;
|
|
39
39
|
protected _recallMemory: RecallMemory | undefined;
|
|
40
40
|
protected _archivalMemory: ArchivalMemory | undefined;
|
|
41
41
|
protected _messages: Messages | undefined;
|
|
42
|
+
protected _templates: Templates | undefined;
|
|
43
|
+
protected _memoryVariables: MemoryVariables | undefined;
|
|
42
44
|
constructor(_options?: Agents.Options);
|
|
43
45
|
get context(): Context;
|
|
44
46
|
get tools(): Tools;
|
|
45
47
|
get sources(): Sources;
|
|
46
|
-
get
|
|
47
|
-
get memoryBlocks(): MemoryBlocks;
|
|
48
|
+
get coreMemory(): CoreMemory;
|
|
48
49
|
get recallMemory(): RecallMemory;
|
|
49
50
|
get archivalMemory(): ArchivalMemory;
|
|
50
51
|
get messages(): Messages;
|
|
52
|
+
get templates(): Templates;
|
|
53
|
+
get memoryVariables(): MemoryVariables;
|
|
51
54
|
/**
|
|
52
55
|
* List all agents associated with a given user.
|
|
53
56
|
* This endpoint retrieves a list of all agents and their configurations associated with the specified user ID.
|
|
@@ -116,112 +119,17 @@ export declare class Agents {
|
|
|
116
119
|
*/
|
|
117
120
|
update(agentId: string, request?: Letta.UpdateAgent, requestOptions?: Agents.RequestOptions): Promise<Letta.AgentState>;
|
|
118
121
|
/**
|
|
119
|
-
*
|
|
122
|
+
* <Note>This endpoint is only available on Letta Cloud.</Note>
|
|
120
123
|
*
|
|
121
|
-
*
|
|
122
|
-
* @param {string} blockLabel
|
|
123
|
-
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
124
|
-
*
|
|
125
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
126
|
-
*
|
|
127
|
-
* @example
|
|
128
|
-
* await client.agents.getAgentMemoryBlock("agent_id", "block_label")
|
|
129
|
-
*/
|
|
130
|
-
getAgentMemoryBlock(agentId: string, blockLabel: string, requestOptions?: Agents.RequestOptions): Promise<Letta.Block>;
|
|
131
|
-
/**
|
|
132
|
-
* Removes a memory block from an agent by unlnking it. If the block is not linked to any other agent, it is deleted.
|
|
133
|
-
*
|
|
134
|
-
* @param {string} agentId
|
|
135
|
-
* @param {string} blockLabel
|
|
136
|
-
* @param {Letta.BlockUpdate} request
|
|
137
|
-
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
138
|
-
*
|
|
139
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
140
|
-
*
|
|
141
|
-
* @example
|
|
142
|
-
* await client.agents.updateAgentMemoryBlockByLabel("agent_id", "block_label", {})
|
|
143
|
-
*/
|
|
144
|
-
updateAgentMemoryBlockByLabel(agentId: string, blockLabel: string, request: Letta.BlockUpdate, requestOptions?: Agents.RequestOptions): Promise<Letta.Block>;
|
|
145
|
-
/**
|
|
146
|
-
* Retrieve the memory blocks of a specific agent.
|
|
147
|
-
*
|
|
148
|
-
* @param {string} agentId
|
|
149
|
-
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
150
|
-
*
|
|
151
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
152
|
-
*
|
|
153
|
-
* @example
|
|
154
|
-
* await client.agents.getAgentMemoryBlocks("agent_id")
|
|
155
|
-
*/
|
|
156
|
-
getAgentMemoryBlocks(agentId: string, requestOptions?: Agents.RequestOptions): Promise<Letta.Block[]>;
|
|
157
|
-
/**
|
|
158
|
-
* Search deployed agents
|
|
159
|
-
*
|
|
160
|
-
* @param {Letta.AgentsSearchDeployedAgentsRequest} request
|
|
161
|
-
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
162
|
-
*
|
|
163
|
-
* @example
|
|
164
|
-
* await client.agents.searchdeployedagents()
|
|
165
|
-
*/
|
|
166
|
-
searchdeployedagents(request?: Letta.AgentsSearchDeployedAgentsRequest, requestOptions?: Agents.RequestOptions): Promise<void>;
|
|
167
|
-
/**
|
|
168
|
-
* Creates a versioned version of an agent
|
|
124
|
+
* Search deployed agents.
|
|
169
125
|
*
|
|
170
|
-
* @param {
|
|
171
|
-
* @param {Letta.AgentsCreateVersionRequest} request
|
|
126
|
+
* @param {Letta.AgentsSearchRequest} request
|
|
172
127
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
173
128
|
*
|
|
174
|
-
* @throws {@link Letta.NotFoundError}
|
|
175
|
-
* @throws {@link Letta.InternalServerError}
|
|
176
|
-
*
|
|
177
|
-
* @example
|
|
178
|
-
* await client.agents.createVersion("agent_id")
|
|
179
|
-
*/
|
|
180
|
-
createVersion(agentId: string, request?: Letta.AgentsCreateVersionRequest, requestOptions?: Agents.RequestOptions): Promise<void>;
|
|
181
|
-
/**
|
|
182
|
-
* Migrate an agent to a new versioned agent template
|
|
183
|
-
*
|
|
184
|
-
* @param {string} agentId
|
|
185
|
-
* @param {Letta.AgentsMigrateRequest} request
|
|
186
|
-
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
187
|
-
*
|
|
188
|
-
* @throws {@link Letta.NotFoundError}
|
|
189
|
-
* @throws {@link Letta.ConflictError}
|
|
190
|
-
* @throws {@link Letta.InternalServerError}
|
|
191
|
-
*
|
|
192
|
-
* @example
|
|
193
|
-
* await client.agents.migrate("agent_id", {
|
|
194
|
-
* toTemplate: "to_template",
|
|
195
|
-
* preserveCoreMemories: true
|
|
196
|
-
* })
|
|
197
|
-
*/
|
|
198
|
-
migrate(agentId: string, request: Letta.AgentsMigrateRequest, requestOptions?: Agents.RequestOptions): Promise<Letta.AgentsMigrateResponse>;
|
|
199
|
-
/**
|
|
200
|
-
* Create a template from an agent
|
|
201
|
-
*
|
|
202
|
-
* @param {string} agentId
|
|
203
|
-
* @param {Letta.AgentsCreateTemplateFromAgentRequest} request
|
|
204
|
-
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
205
|
-
*
|
|
206
|
-
* @throws {@link Letta.NotFoundError}
|
|
207
|
-
* @throws {@link Letta.InternalServerError}
|
|
208
|
-
*
|
|
209
|
-
* @example
|
|
210
|
-
* await client.agents.createtemplatefromagent("agent_id")
|
|
211
|
-
*/
|
|
212
|
-
createtemplatefromagent(agentId: string, request?: Letta.AgentsCreateTemplateFromAgentRequest, requestOptions?: Agents.RequestOptions): Promise<void>;
|
|
213
|
-
/**
|
|
214
|
-
* Get the variables associated with an agent
|
|
215
|
-
*
|
|
216
|
-
* @param {string} agentId
|
|
217
|
-
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
218
|
-
*
|
|
219
|
-
* @throws {@link Letta.NotFoundError}
|
|
220
|
-
*
|
|
221
129
|
* @example
|
|
222
|
-
* await client.agents.
|
|
130
|
+
* await client.agents.search()
|
|
223
131
|
*/
|
|
224
|
-
|
|
132
|
+
search(request?: Letta.AgentsSearchRequest, requestOptions?: Agents.RequestOptions): Promise<void>;
|
|
225
133
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
226
134
|
Authorization: string;
|
|
227
135
|
}>;
|