@letta-ai/letta-client 0.1.4 → 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 -125
- package/api/resources/agents/client/Client.js +31 -568
- 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/CreateAgentRequest.d.ts +2 -1
- 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.d.ts +19 -0
- package/api/resources/agents/resources/messages/client/Client.js +77 -4
- package/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +2 -0
- 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/AgentEnvironmentVariable.d.ts +0 -2
- package/api/types/AgentState.d.ts +1 -3
- package/api/types/AgentType.d.ts +1 -2
- package/api/types/AgentType.js +0 -1
- package/api/types/Block.d.ts +0 -2
- package/api/types/FileMetadata.d.ts +0 -2
- package/api/types/Job.d.ts +0 -2
- package/api/types/LettaRequest.d.ts +2 -0
- package/api/types/LettaSchemasMessageMessage.d.ts +0 -2
- package/api/types/LettaSchemasToolTool.d.ts +4 -3
- package/api/types/Passage.d.ts +0 -2
- package/api/types/Provider.d.ts +13 -0
- package/api/types/SandboxConfig.d.ts +0 -2
- package/api/types/SandboxEnvironmentVariable.d.ts +0 -2
- package/api/types/Source.d.ts +0 -2
- package/api/types/ToolType.d.ts +9 -0
- package/api/types/ToolType.js +11 -0
- package/api/types/User.d.ts +0 -2
- package/api/types/UserCreate.d.ts +0 -2
- package/api/types/UserUpdate.d.ts +0 -2
- 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 -125
- package/dist/api/resources/agents/client/Client.js +31 -568
- 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/CreateAgentRequest.d.ts +2 -1
- 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.d.ts +19 -0
- package/dist/api/resources/agents/resources/messages/client/Client.js +77 -4
- package/dist/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +2 -0
- 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/AgentEnvironmentVariable.d.ts +0 -2
- package/dist/api/types/AgentState.d.ts +1 -3
- package/dist/api/types/AgentType.d.ts +1 -2
- package/dist/api/types/AgentType.js +0 -1
- package/dist/api/types/Block.d.ts +0 -2
- package/dist/api/types/FileMetadata.d.ts +0 -2
- package/dist/api/types/Job.d.ts +0 -2
- package/dist/api/types/LettaRequest.d.ts +2 -0
- package/dist/api/types/LettaSchemasMessageMessage.d.ts +0 -2
- package/dist/api/types/LettaSchemasToolTool.d.ts +4 -3
- package/dist/api/types/Passage.d.ts +0 -2
- package/dist/api/types/Provider.d.ts +13 -0
- package/dist/api/types/Provider.js +5 -0
- package/dist/api/types/SandboxConfig.d.ts +0 -2
- package/dist/api/types/SandboxEnvironmentVariable.d.ts +0 -2
- package/dist/api/types/Source.d.ts +0 -2
- package/dist/api/types/ToolType.d.ts +9 -0
- package/dist/api/types/ToolType.js +11 -0
- package/dist/api/types/User.d.ts +0 -2
- package/dist/api/types/UserCreate.d.ts +0 -2
- package/dist/api/types/UserUpdate.d.ts +0 -2
- 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/CreateAgentRequest.d.ts +1 -1
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +3 -1
- 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/messages/client/requests/LettaStreamingRequest.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.js +1 -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/AgentEnvironmentVariable.d.ts +0 -1
- package/dist/serialization/types/AgentEnvironmentVariable.js +0 -1
- package/dist/serialization/types/AgentState.d.ts +1 -2
- package/dist/serialization/types/AgentState.js +1 -2
- package/dist/serialization/types/AgentType.d.ts +1 -1
- package/dist/serialization/types/AgentType.js +1 -7
- package/dist/serialization/types/Block.d.ts +0 -1
- package/dist/serialization/types/Block.js +0 -1
- package/dist/serialization/types/FileMetadata.d.ts +0 -1
- package/dist/serialization/types/FileMetadata.js +0 -1
- package/dist/serialization/types/Job.d.ts +0 -1
- package/dist/serialization/types/Job.js +0 -1
- package/dist/serialization/types/LettaRequest.d.ts +1 -0
- package/dist/serialization/types/LettaRequest.js +1 -0
- package/dist/serialization/types/LettaSchemasMessageMessage.d.ts +0 -1
- package/dist/serialization/types/LettaSchemasMessageMessage.js +0 -1
- package/dist/serialization/types/LettaSchemasToolTool.d.ts +3 -2
- package/dist/serialization/types/LettaSchemasToolTool.js +3 -2
- package/dist/serialization/types/Passage.d.ts +0 -1
- package/dist/serialization/types/Passage.js +0 -1
- package/dist/serialization/types/Provider.d.ts +15 -0
- package/dist/serialization/types/Provider.js +36 -0
- package/dist/serialization/types/SandboxConfig.d.ts +0 -1
- package/dist/serialization/types/SandboxConfig.js +0 -1
- package/dist/serialization/types/SandboxEnvironmentVariable.d.ts +0 -1
- package/dist/serialization/types/SandboxEnvironmentVariable.js +0 -1
- package/dist/serialization/types/Source.d.ts +0 -1
- package/dist/serialization/types/Source.js +0 -1
- package/dist/serialization/types/ToolType.d.ts +10 -0
- package/dist/serialization/types/ToolType.js +35 -0
- package/dist/serialization/types/User.d.ts +0 -1
- package/dist/serialization/types/User.js +0 -1
- package/dist/serialization/types/UserCreate.d.ts +0 -1
- package/dist/serialization/types/UserCreate.js +0 -1
- package/dist/serialization/types/UserUpdate.d.ts +0 -1
- package/dist/serialization/types/UserUpdate.js +0 -1
- 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 +589 -315
- 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/CreateAgentRequest.d.ts +1 -1
- package/serialization/resources/agents/client/requests/CreateAgentRequest.js +3 -1
- 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/messages/client/requests/LettaStreamingRequest.d.ts +1 -0
- package/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.js +1 -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/AgentEnvironmentVariable.d.ts +0 -1
- package/serialization/types/AgentEnvironmentVariable.js +0 -1
- package/serialization/types/AgentState.d.ts +1 -2
- package/serialization/types/AgentState.js +1 -2
- package/serialization/types/AgentType.d.ts +1 -1
- package/serialization/types/AgentType.js +1 -7
- package/serialization/types/Block.d.ts +0 -1
- package/serialization/types/Block.js +0 -1
- package/serialization/types/FileMetadata.d.ts +0 -1
- package/serialization/types/FileMetadata.js +0 -1
- package/serialization/types/Job.d.ts +0 -1
- package/serialization/types/Job.js +0 -1
- package/serialization/types/LettaRequest.d.ts +1 -0
- package/serialization/types/LettaRequest.js +1 -0
- package/serialization/types/LettaSchemasMessageMessage.d.ts +0 -1
- package/serialization/types/LettaSchemasMessageMessage.js +0 -1
- package/serialization/types/LettaSchemasToolTool.d.ts +3 -2
- package/serialization/types/LettaSchemasToolTool.js +3 -2
- package/serialization/types/Passage.d.ts +0 -1
- package/serialization/types/Passage.js +0 -1
- package/serialization/types/Provider.d.ts +15 -0
- package/serialization/types/Provider.js +36 -0
- package/serialization/types/SandboxConfig.d.ts +0 -1
- package/serialization/types/SandboxConfig.js +0 -1
- package/serialization/types/SandboxEnvironmentVariable.d.ts +0 -1
- package/serialization/types/SandboxEnvironmentVariable.js +0 -1
- package/serialization/types/Source.d.ts +0 -1
- package/serialization/types/Source.js +0 -1
- package/serialization/types/ToolType.d.ts +10 -0
- package/serialization/types/ToolType.js +35 -0
- package/serialization/types/User.d.ts +0 -1
- package/serialization/types/User.js +0 -1
- package/serialization/types/UserCreate.d.ts +0 -1
- package/serialization/types/UserCreate.js +0 -1
- package/serialization/types/UserUpdate.d.ts +0 -1
- package/serialization/types/UserUpdate.js +0 -1
- 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
|
@@ -34,65 +34,78 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
34
34
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
38
|
+
var t = {};
|
|
39
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
40
|
+
t[p] = s[p];
|
|
41
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
42
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
43
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
44
|
+
t[p[i]] = s[p[i]];
|
|
45
|
+
}
|
|
46
|
+
return t;
|
|
47
|
+
};
|
|
37
48
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
38
49
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
50
|
};
|
|
40
51
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
-
exports.
|
|
52
|
+
exports.Templates = void 0;
|
|
42
53
|
const environments = __importStar(require("../../../../../../environments"));
|
|
43
54
|
const core = __importStar(require("../../../../../../core"));
|
|
44
55
|
const Letta = __importStar(require("../../../../../index"));
|
|
45
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
46
56
|
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
57
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
47
58
|
const errors = __importStar(require("../../../../../../errors/index"));
|
|
48
|
-
class
|
|
59
|
+
class Templates {
|
|
49
60
|
constructor(_options = {}) {
|
|
50
61
|
this._options = _options;
|
|
51
62
|
}
|
|
52
63
|
/**
|
|
53
|
-
*
|
|
64
|
+
* <Note>This endpoint is only available on Letta Cloud.</Note>
|
|
54
65
|
*
|
|
55
|
-
*
|
|
56
|
-
* @param {string} blockLabel
|
|
57
|
-
* @param {MemoryBlocks.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
|
+
* Creates a new version of the template version of the agent.
|
|
58
67
|
*
|
|
59
|
-
* @
|
|
68
|
+
* @param {string} agentId - The agent ID of the agent to migrate, if this agent is not a template, it will create a agent template from the agent provided as well
|
|
69
|
+
* @param {Letta.agents.TemplatesCreateVersionRequest} request
|
|
70
|
+
* @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link Letta.NotFoundError}
|
|
73
|
+
* @throws {@link Letta.InternalServerError}
|
|
60
74
|
*
|
|
61
75
|
* @example
|
|
62
|
-
* await client.agents.
|
|
76
|
+
* await client.agents.templates.createVersion("agent_id")
|
|
63
77
|
*/
|
|
64
|
-
|
|
78
|
+
createVersion(agentId, request = {}, requestOptions) {
|
|
65
79
|
var _a, _b;
|
|
66
80
|
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
const { returnAgentState } = request, _body = __rest(request, ["returnAgentState"]);
|
|
82
|
+
const _queryParams = {};
|
|
83
|
+
if (returnAgentState != null) {
|
|
84
|
+
_queryParams["returnAgentState"] = returnAgentState.toString();
|
|
85
|
+
}
|
|
67
86
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
68
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/
|
|
69
|
-
method: "
|
|
70
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
87
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/version-template`),
|
|
88
|
+
method: "POST",
|
|
89
|
+
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),
|
|
71
90
|
contentType: "application/json",
|
|
91
|
+
queryParameters: _queryParams,
|
|
72
92
|
requestType: "json",
|
|
93
|
+
body: serializers.agents.TemplatesCreateVersionRequest.jsonOrThrow(_body, {
|
|
94
|
+
unrecognizedObjectKeys: "strip",
|
|
95
|
+
}),
|
|
73
96
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
74
97
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
75
98
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
76
99
|
});
|
|
77
100
|
if (_response.ok) {
|
|
78
|
-
return
|
|
79
|
-
unrecognizedObjectKeys: "passthrough",
|
|
80
|
-
allowUnrecognizedUnionMembers: true,
|
|
81
|
-
allowUnrecognizedEnumValues: true,
|
|
82
|
-
skipValidation: true,
|
|
83
|
-
breadcrumbsPrefix: ["response"],
|
|
84
|
-
});
|
|
101
|
+
return;
|
|
85
102
|
}
|
|
86
103
|
if (_response.error.reason === "status-code") {
|
|
87
104
|
switch (_response.error.statusCode) {
|
|
88
|
-
case
|
|
89
|
-
throw new Letta.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
allowUnrecognizedEnumValues: true,
|
|
93
|
-
skipValidation: true,
|
|
94
|
-
breadcrumbsPrefix: ["response"],
|
|
95
|
-
}));
|
|
105
|
+
case 404:
|
|
106
|
+
throw new Letta.NotFoundError(_response.error.body);
|
|
107
|
+
case 500:
|
|
108
|
+
throw new Letta.InternalServerError(_response.error.body);
|
|
96
109
|
default:
|
|
97
110
|
throw new errors.LettaError({
|
|
98
111
|
statusCode: _response.error.statusCode,
|
|
@@ -107,7 +120,7 @@ class MemoryBlocks {
|
|
|
107
120
|
body: _response.error.rawBody,
|
|
108
121
|
});
|
|
109
122
|
case "timeout":
|
|
110
|
-
throw new errors.LettaTimeoutError("Timeout exceeded when calling
|
|
123
|
+
throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/agents/{agent_id}/version-template.");
|
|
111
124
|
case "unknown":
|
|
112
125
|
throw new errors.LettaError({
|
|
113
126
|
message: _response.error.errorMessage,
|
|
@@ -116,36 +129,40 @@ class MemoryBlocks {
|
|
|
116
129
|
});
|
|
117
130
|
}
|
|
118
131
|
/**
|
|
119
|
-
*
|
|
132
|
+
* <Note>This endpoint is only available on Letta Cloud.</Note>
|
|
133
|
+
*
|
|
134
|
+
* Migrate an agent to a new versioned agent template.
|
|
120
135
|
*
|
|
121
136
|
* @param {string} agentId
|
|
122
|
-
* @param {Letta.
|
|
123
|
-
* @param {
|
|
137
|
+
* @param {Letta.agents.TemplatesMigrateRequest} request
|
|
138
|
+
* @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
|
|
124
139
|
*
|
|
125
|
-
* @throws {@link Letta.
|
|
140
|
+
* @throws {@link Letta.NotFoundError}
|
|
141
|
+
* @throws {@link Letta.ConflictError}
|
|
142
|
+
* @throws {@link Letta.InternalServerError}
|
|
126
143
|
*
|
|
127
144
|
* @example
|
|
128
|
-
* await client.agents.
|
|
129
|
-
*
|
|
130
|
-
*
|
|
145
|
+
* await client.agents.templates.migrate("agent_id", {
|
|
146
|
+
* toTemplate: "to_template",
|
|
147
|
+
* preserveCoreMemories: true
|
|
131
148
|
* })
|
|
132
149
|
*/
|
|
133
|
-
|
|
150
|
+
migrate(agentId, request, requestOptions) {
|
|
134
151
|
var _a, _b;
|
|
135
152
|
return __awaiter(this, void 0, void 0, function* () {
|
|
136
153
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
137
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/
|
|
154
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/migrate`),
|
|
138
155
|
method: "POST",
|
|
139
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
156
|
+
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),
|
|
140
157
|
contentType: "application/json",
|
|
141
158
|
requestType: "json",
|
|
142
|
-
body: serializers.
|
|
159
|
+
body: serializers.agents.TemplatesMigrateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
143
160
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
144
161
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
145
162
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
146
163
|
});
|
|
147
164
|
if (_response.ok) {
|
|
148
|
-
return serializers.
|
|
165
|
+
return serializers.agents.TemplatesMigrateResponse.parseOrThrow(_response.body, {
|
|
149
166
|
unrecognizedObjectKeys: "passthrough",
|
|
150
167
|
allowUnrecognizedUnionMembers: true,
|
|
151
168
|
allowUnrecognizedEnumValues: true,
|
|
@@ -155,14 +172,78 @@ class MemoryBlocks {
|
|
|
155
172
|
}
|
|
156
173
|
if (_response.error.reason === "status-code") {
|
|
157
174
|
switch (_response.error.statusCode) {
|
|
158
|
-
case
|
|
159
|
-
throw new Letta.
|
|
175
|
+
case 404:
|
|
176
|
+
throw new Letta.NotFoundError(_response.error.body);
|
|
177
|
+
case 409:
|
|
178
|
+
throw new Letta.ConflictError(serializers.ConflictErrorBody.parseOrThrow(_response.error.body, {
|
|
160
179
|
unrecognizedObjectKeys: "passthrough",
|
|
161
180
|
allowUnrecognizedUnionMembers: true,
|
|
162
181
|
allowUnrecognizedEnumValues: true,
|
|
163
182
|
skipValidation: true,
|
|
164
183
|
breadcrumbsPrefix: ["response"],
|
|
165
184
|
}));
|
|
185
|
+
case 500:
|
|
186
|
+
throw new Letta.InternalServerError(_response.error.body);
|
|
187
|
+
default:
|
|
188
|
+
throw new errors.LettaError({
|
|
189
|
+
statusCode: _response.error.statusCode,
|
|
190
|
+
body: _response.error.body,
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
switch (_response.error.reason) {
|
|
195
|
+
case "non-json":
|
|
196
|
+
throw new errors.LettaError({
|
|
197
|
+
statusCode: _response.error.statusCode,
|
|
198
|
+
body: _response.error.rawBody,
|
|
199
|
+
});
|
|
200
|
+
case "timeout":
|
|
201
|
+
throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/agents/{agent_id}/migrate.");
|
|
202
|
+
case "unknown":
|
|
203
|
+
throw new errors.LettaError({
|
|
204
|
+
message: _response.error.errorMessage,
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* <Note>This endpoint is only available on Letta Cloud.</Note>
|
|
211
|
+
*
|
|
212
|
+
* Creates a template from an agent.
|
|
213
|
+
*
|
|
214
|
+
* @param {string} agentId
|
|
215
|
+
* @param {Letta.agents.TemplatesCreateRequest} request
|
|
216
|
+
* @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
|
|
217
|
+
*
|
|
218
|
+
* @throws {@link Letta.NotFoundError}
|
|
219
|
+
* @throws {@link Letta.InternalServerError}
|
|
220
|
+
*
|
|
221
|
+
* @example
|
|
222
|
+
* await client.agents.templates.create("agent_id")
|
|
223
|
+
*/
|
|
224
|
+
create(agentId, request = {}, requestOptions) {
|
|
225
|
+
var _a, _b;
|
|
226
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
227
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
228
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/template`),
|
|
229
|
+
method: "POST",
|
|
230
|
+
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),
|
|
231
|
+
contentType: "application/json",
|
|
232
|
+
requestType: "json",
|
|
233
|
+
body: serializers.agents.TemplatesCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
234
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
235
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
236
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
237
|
+
});
|
|
238
|
+
if (_response.ok) {
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
if (_response.error.reason === "status-code") {
|
|
242
|
+
switch (_response.error.statusCode) {
|
|
243
|
+
case 404:
|
|
244
|
+
throw new Letta.NotFoundError(_response.error.body);
|
|
245
|
+
case 500:
|
|
246
|
+
throw new Letta.InternalServerError(_response.error.body);
|
|
166
247
|
default:
|
|
167
248
|
throw new errors.LettaError({
|
|
168
249
|
statusCode: _response.error.statusCode,
|
|
@@ -177,7 +258,7 @@ class MemoryBlocks {
|
|
|
177
258
|
body: _response.error.rawBody,
|
|
178
259
|
});
|
|
179
260
|
case "timeout":
|
|
180
|
-
throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/agents/{agent_id}/
|
|
261
|
+
throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/agents/{agent_id}/template.");
|
|
181
262
|
case "unknown":
|
|
182
263
|
throw new errors.LettaError({
|
|
183
264
|
message: _response.error.errorMessage,
|
|
@@ -192,4 +273,4 @@ class MemoryBlocks {
|
|
|
192
273
|
});
|
|
193
274
|
}
|
|
194
275
|
}
|
|
195
|
-
exports.
|
|
276
|
+
exports.Templates = Templates;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* preserveCoreMemories: true
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
|
-
export interface
|
|
11
|
+
export interface TemplatesMigrateRequest {
|
|
12
12
|
toTemplate: string;
|
|
13
13
|
/** If you chose to not preserve core memories, you should provide the new variables for the core memories */
|
|
14
14
|
variables?: Record<string, string>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./TemplatesMigrateResponse";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./TemplatesMigrateResponse"), exports);
|
|
@@ -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/agents/${encodeURIComponent(agentId)}/tools`),
|
|
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,
|
|
@@ -132,7 +132,7 @@ class Tools {
|
|
|
132
132
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
133
133
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/add-tool/${encodeURIComponent(toolId)}`),
|
|
134
134
|
method: "PATCH",
|
|
135
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
135
|
+
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),
|
|
136
136
|
contentType: "application/json",
|
|
137
137
|
requestType: "json",
|
|
138
138
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -198,7 +198,7 @@ class Tools {
|
|
|
198
198
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
199
199
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/remove-tool/${encodeURIComponent(toolId)}`),
|
|
200
200
|
method: "PATCH",
|
|
201
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
201
|
+
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),
|
|
202
202
|
contentType: "application/json",
|
|
203
203
|
requestType: "json",
|
|
204
204
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
6
|
+
exports.AgentsSearchRequestCombinator = void 0;
|
|
7
|
+
exports.AgentsSearchRequestCombinator = {
|
|
8
8
|
And: "AND",
|
|
9
9
|
Or: "OR",
|
|
10
10
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../../../index";
|
|
5
|
+
export declare type AgentsSearchRequestSearchItem = Letta.AgentsSearchRequestSearchItem.Version | Letta.AgentsSearchRequestSearchItem.Name | Letta.AgentsSearchRequestSearchItem.OrderBy;
|
|
6
|
+
export declare namespace AgentsSearchRequestSearchItem {
|
|
7
|
+
interface Version extends Letta.AgentsSearchRequestSearchItemVersion {
|
|
8
|
+
field: "version";
|
|
9
|
+
}
|
|
10
|
+
interface Name extends Letta.AgentsSearchRequestSearchItemName {
|
|
11
|
+
field: "name";
|
|
12
|
+
}
|
|
13
|
+
interface OrderBy extends Letta.AgentsSearchRequestSearchItemOrderBy {
|
|
14
|
+
field: "order_by";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type AgentsSearchRequestSearchItemNameOperator = "eq" | "neq" | "contains";
|
|
5
|
+
export declare const AgentsSearchRequestSearchItemNameOperator: {
|
|
6
|
+
readonly Eq: "eq";
|
|
7
|
+
readonly Neq: "neq";
|
|
8
|
+
readonly Contains: "contains";
|
|
9
|
+
};
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
6
|
+
exports.AgentsSearchRequestSearchItemNameOperator = void 0;
|
|
7
|
+
exports.AgentsSearchRequestSearchItemNameOperator = {
|
|
8
8
|
Eq: "eq",
|
|
9
9
|
Neq: "neq",
|
|
10
10
|
Contains: "contains",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../../../index";
|
|
5
|
+
export interface AgentsSearchRequestSearchItemOrderBy {
|
|
6
|
+
value: Letta.AgentsSearchRequestSearchItemOrderByValue;
|
|
7
|
+
direction: Letta.AgentsSearchRequestSearchItemOrderByDirection;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type AgentsSearchRequestSearchItemOrderByDirection = "asc" | "desc";
|
|
5
|
+
export declare const AgentsSearchRequestSearchItemOrderByDirection: {
|
|
6
|
+
readonly Asc: "asc";
|
|
7
|
+
readonly Desc: "desc";
|
|
8
|
+
};
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
6
|
+
exports.AgentsSearchRequestSearchItemOrderByDirection = void 0;
|
|
7
|
+
exports.AgentsSearchRequestSearchItemOrderByDirection = {
|
|
8
8
|
Asc: "asc",
|
|
9
9
|
Desc: "desc",
|
|
10
10
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type AgentsSearchRequestSearchItemOrderByValue = "created_at" | "updated_at";
|
|
5
|
+
export declare const AgentsSearchRequestSearchItemOrderByValue: {
|
|
6
|
+
readonly CreatedAt: "created_at";
|
|
7
|
+
readonly UpdatedAt: "updated_at";
|
|
8
|
+
};
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
6
|
+
exports.AgentsSearchRequestSearchItemOrderByValue = void 0;
|
|
7
|
+
exports.AgentsSearchRequestSearchItemOrderByValue = {
|
|
8
8
|
CreatedAt: "created_at",
|
|
9
9
|
UpdatedAt: "updated_at",
|
|
10
10
|
};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
export * from "./CreateAgentRequestToolRulesItem";
|
|
2
2
|
export * from "./UpdateAgentToolRulesItem";
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./
|
|
11
|
-
export * from "./AgentsMigrateResponse";
|
|
12
|
-
export * from "./AgentsGetAgentVariablesResponse";
|
|
3
|
+
export * from "./AgentsSearchRequestSearchItemVersion";
|
|
4
|
+
export * from "./AgentsSearchRequestSearchItemNameOperator";
|
|
5
|
+
export * from "./AgentsSearchRequestSearchItemName";
|
|
6
|
+
export * from "./AgentsSearchRequestSearchItemOrderByValue";
|
|
7
|
+
export * from "./AgentsSearchRequestSearchItemOrderByDirection";
|
|
8
|
+
export * from "./AgentsSearchRequestSearchItemOrderBy";
|
|
9
|
+
export * from "./AgentsSearchRequestSearchItem";
|
|
10
|
+
export * from "./AgentsSearchRequestCombinator";
|