@letta-ai/letta-client 0.1.5 → 0.1.8
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 +6 -0
- package/Client.js +10 -0
- package/api/resources/agents/client/Client.d.ts +18 -97
- package/api/resources/agents/client/Client.js +44 -436
- 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 -2
- package/api/resources/agents/client/requests/ResetMessagesRequest.d.ts +13 -0
- package/api/resources/agents/client/requests/index.d.ts +2 -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 +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +6 -6
- 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} +2 -2
- 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 +4 -0
- package/api/resources/index.js +5 -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/runs/client/Client.d.ts +115 -0
- package/api/resources/runs/client/Client.js +500 -0
- package/api/resources/runs/client/index.d.ts +1 -0
- package/api/resources/runs/client/index.js +17 -0
- package/api/resources/runs/client/requests/GetRunMessagesRequest.d.ts +50 -0
- package/api/resources/runs/client/requests/index.d.ts +1 -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 -2
- package/api/types/AgentType.d.ts +1 -2
- package/api/types/AgentType.js +0 -1
- package/api/types/Job.d.ts +2 -0
- package/api/types/JobType.d.ts +8 -0
- package/api/types/JobType.js +10 -0
- package/api/types/LettaSchemasToolTool.d.ts +4 -3
- package/api/types/Provider.d.ts +13 -0
- package/api/types/Run.d.ts +34 -0
- package/api/types/ToolCreate.d.ts +0 -2
- package/api/types/ToolType.d.ts +9 -0
- package/api/types/ToolType.js +11 -0
- package/api/types/index.d.ts +4 -0
- package/api/types/index.js +4 -0
- package/dist/Client.d.ts +6 -0
- package/dist/Client.js +10 -0
- package/dist/api/resources/agents/client/Client.d.ts +18 -97
- package/dist/api/resources/agents/client/Client.js +44 -436
- 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 -2
- package/dist/api/resources/agents/client/requests/ResetMessagesRequest.d.ts +13 -0
- package/dist/api/resources/agents/client/requests/index.d.ts +2 -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/client/index.js +2 -0
- 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/MemoryVariablesGetResponse.js +5 -0
- 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 +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
- 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} +2 -2
- package/dist/api/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js +5 -0
- package/dist/api/resources/agents/{client/requests/AgentsCreateVersionRequest.d.ts → resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts} +1 -1
- package/dist/api/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.js +5 -0
- 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/TemplatesMigrateRequest.js +5 -0
- 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 +4 -0
- package/dist/api/resources/index.js +5 -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/runs/client/Client.d.ts +115 -0
- package/dist/api/resources/runs/client/Client.js +500 -0
- package/dist/api/resources/runs/client/index.d.ts +1 -0
- package/dist/api/resources/runs/client/index.js +17 -0
- package/dist/api/resources/runs/client/requests/GetRunMessagesRequest.d.ts +50 -0
- package/dist/api/resources/runs/client/requests/GetRunMessagesRequest.js +5 -0
- package/dist/api/resources/runs/client/requests/index.d.ts +1 -0
- package/dist/api/resources/runs/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 -2
- package/dist/api/types/AgentType.d.ts +1 -2
- package/dist/api/types/AgentType.js +0 -1
- package/dist/api/types/Job.d.ts +2 -0
- package/dist/api/types/JobType.d.ts +8 -0
- package/dist/api/types/JobType.js +10 -0
- package/dist/api/types/LettaSchemasToolTool.d.ts +4 -3
- package/dist/api/types/Provider.d.ts +13 -0
- package/dist/api/types/Provider.js +5 -0
- package/dist/api/types/Run.d.ts +34 -0
- package/dist/api/types/Run.js +5 -0
- package/dist/api/types/ToolCreate.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/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -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 +1 -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/dist/serialization/resources/agents/resources/coreMemory/client/getBlocks.js +32 -0
- 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/coreMemory/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/coreMemory/index.js +17 -0
- 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/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js +33 -0
- 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 +3 -0
- package/dist/serialization/resources/index.js +4 -1
- package/dist/serialization/resources/providers/client/index.d.ts +2 -0
- package/{api/resources/agents/resources/memory/resources → dist/serialization/resources/providers/client}/index.js +6 -2
- package/dist/serialization/resources/providers/client/listProviders.d.ts +11 -0
- 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/{serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.js → dist/serialization/resources/providers/client/requests/ProviderCreate.js} +4 -3
- package/dist/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +13 -0
- package/dist/serialization/resources/{agents/client/requests/AgentsCreateTemplateFromAgentRequest.js → providers/client/requests/ProviderUpdate.js} +4 -3
- 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/providers/index.d.ts +1 -0
- package/dist/serialization/resources/providers/index.js +17 -0
- package/dist/serialization/resources/runs/client/getRunMessages.d.ts +11 -0
- package/dist/serialization/resources/runs/client/getRunMessages.js +32 -0
- package/dist/serialization/resources/runs/client/index.d.ts +3 -0
- package/dist/{api/resources/agents/resources/memory/resources → serialization/resources/runs/client}/index.js +4 -2
- package/dist/serialization/resources/{agents/client/getAgentMemoryBlocks.d.ts → runs/client/listActiveRuns.d.ts} +3 -3
- package/dist/serialization/resources/{agents/client/getAgentMemoryBlocks.js → runs/client/listActiveRuns.js} +2 -2
- package/{serialization/resources/agents/client/getAgentMemoryBlocks.d.ts → dist/serialization/resources/runs/client/listRuns.d.ts} +3 -3
- package/{serialization/resources/agents/client/getAgentMemoryBlocks.js → dist/serialization/resources/runs/client/listRuns.js} +2 -2
- package/dist/serialization/resources/runs/index.d.ts +1 -0
- package/dist/serialization/resources/runs/index.js +17 -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 -1
- package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +1 -1
- package/dist/serialization/types/AgentType.d.ts +1 -1
- package/dist/serialization/types/AgentType.js +1 -7
- package/dist/serialization/types/Job.d.ts +2 -0
- package/dist/serialization/types/Job.js +2 -0
- package/dist/serialization/types/JobType.d.ts +10 -0
- package/dist/serialization/types/JobType.js +34 -0
- package/dist/serialization/types/LettaSchemasToolTool.d.ts +3 -2
- package/dist/serialization/types/LettaSchemasToolTool.js +3 -2
- package/dist/serialization/types/Provider.d.ts +15 -0
- package/dist/serialization/types/Provider.js +36 -0
- package/dist/serialization/types/Run.d.ts +22 -0
- package/dist/serialization/types/Run.js +43 -0
- package/dist/serialization/types/ToolCreate.d.ts +0 -1
- package/dist/serialization/types/ToolCreate.js +0 -1
- package/dist/serialization/types/ToolType.d.ts +10 -0
- package/dist/serialization/types/ToolType.js +35 -0
- package/dist/serialization/types/index.d.ts +4 -0
- package/dist/serialization/types/index.js +4 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +1048 -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/CreateAgentRequest.d.ts +1 -1
- package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -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/serialization/resources/agents/resources/coreMemory/client/getBlocks.js +32 -0
- 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/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js +33 -0
- 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 +3 -0
- package/serialization/resources/index.js +4 -1
- package/serialization/resources/providers/client/index.d.ts +2 -0
- package/serialization/resources/providers/client/index.js +31 -0
- package/serialization/resources/providers/client/listProviders.d.ts +11 -0
- 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/runs/client/getRunMessages.d.ts +11 -0
- package/serialization/resources/runs/client/getRunMessages.js +32 -0
- package/serialization/resources/runs/client/index.d.ts +3 -0
- package/{dist/serialization/resources/agents/resources/memory/resources → serialization/resources/runs/client}/index.js +4 -2
- package/serialization/resources/runs/client/listActiveRuns.d.ts +11 -0
- package/serialization/resources/runs/client/listActiveRuns.js +32 -0
- package/serialization/resources/runs/client/listRuns.d.ts +11 -0
- package/serialization/resources/runs/client/listRuns.js +32 -0
- package/serialization/resources/runs/index.d.ts +1 -0
- package/serialization/resources/runs/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 -1
- package/serialization/resources/tools/client/requests/ToolUpdate.js +1 -1
- package/serialization/types/AgentType.d.ts +1 -1
- package/serialization/types/AgentType.js +1 -7
- package/serialization/types/Job.d.ts +2 -0
- package/serialization/types/Job.js +2 -0
- package/serialization/types/JobType.d.ts +10 -0
- package/serialization/types/JobType.js +34 -0
- package/serialization/types/LettaSchemasToolTool.d.ts +3 -2
- package/serialization/types/LettaSchemasToolTool.js +3 -2
- package/serialization/types/Provider.d.ts +15 -0
- package/serialization/types/Provider.js +36 -0
- package/serialization/types/Run.d.ts +22 -0
- package/serialization/types/Run.js +43 -0
- package/serialization/types/ToolCreate.d.ts +0 -1
- package/serialization/types/ToolCreate.js +0 -1
- package/serialization/types/ToolType.d.ts +10 -0
- package/serialization/types/ToolType.js +35 -0
- package/serialization/types/index.d.ts +4 -0
- package/serialization/types/index.js +4 -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/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/client/requests/{AgentsCreateVersionRequest.js → ResetMessagesRequest.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/AgentsMigrateRequest.js → resources/memoryVariables/types/MemoryVariablesGetResponse.js} +0 -0
- /package/api/resources/agents/{client/requests/AgentsSearchDeployedAgentsRequest.js → resources/templates/client/requests/TemplatesCreateRequest.js} +0 -0
- /package/api/resources/agents/{types/AgentsGetAgentVariablesResponse.js → resources/templates/client/requests/TemplatesCreateVersionRequest.js} +0 -0
- /package/api/resources/agents/{types/AgentsMigrateResponse.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/AgentsSearchDeployedAgentsRequestSearchItem.js → resources/templates/types/TemplatesMigrateResponse.js} +0 -0
- /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemName.js → AgentsSearchRequestSearchItem.js} +0 -0
- /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js → AgentsSearchRequestSearchItemName.js} +0 -0
- /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemVersion.js → AgentsSearchRequestSearchItemOrderBy.js} +0 -0
- /package/{dist/api/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.js → api/resources/agents/types/AgentsSearchRequestSearchItemVersion.js} +0 -0
- /package/{dist/api/resources/agents/client/requests/AgentsCreateVersionRequest.js → api/resources/providers/client/requests/DeleteProviderRequest.js} +0 -0
- /package/{dist/api/resources/agents/client/requests/AgentsMigrateRequest.js → api/resources/providers/client/requests/ListProvidersRequest.js} +0 -0
- /package/{dist/api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js → api/resources/providers/client/requests/ProviderCreate.js} +0 -0
- /package/{dist/api/resources/agents/types/AgentsGetAgentVariablesResponse.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/AgentsMigrateResponse.js → api/resources/runs/client/requests/GetRunMessagesRequest.js} +0 -0
- /package/{dist/api/resources/agents/resources/memory/resources/messages/client → api/resources/runs/client/requests}/index.js +0 -0
- /package/{dist/api/resources/agents/resources/memory/resources/messages → api/resources/runs}/index.d.ts +0 -0
- /package/{dist/api/resources/agents/resources/memory/resources/messages → api/resources/runs}/index.js +0 -0
- /package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.js → api/types/Provider.js} +0 -0
- /package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.js → api/types/Run.js} +0 -0
- /package/dist/api/resources/agents/{types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js → client/requests/AgentsSearchRequest.js} +0 -0
- /package/dist/api/resources/agents/{types/AgentsSearchDeployedAgentsRequestSearchItemVersion.js → client/requests/ResetMessagesRequest.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/{memoryBlocks → coreMemory}/client/index.js +0 -0
- /package/dist/api/resources/agents/resources/{memoryBlocks → coreMemory}/index.d.ts +0 -0
- /package/dist/api/resources/agents/resources/{memoryBlocks → coreMemory}/index.js +0 -0
- /package/dist/api/resources/agents/resources/{memory → memoryVariables}/client/index.d.ts +0 -0
- /package/dist/{serialization/resources/agents/resources/memory/resources/messages → api/resources/providers}/index.d.ts +0 -0
- /package/dist/{serialization/resources/agents/resources/memory/resources/messages → api/resources/providers}/index.js +0 -0
- /package/{serialization/resources/agents/resources/memory/resources/messages → dist/api/resources/runs}/index.d.ts +0 -0
- /package/{serialization/resources/agents/resources/memory/resources/messages → dist/api/resources/runs}/index.js +0 -0
|
@@ -70,7 +70,7 @@ class Files {
|
|
|
70
70
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
71
71
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/upload`),
|
|
72
72
|
method: "POST",
|
|
73
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
73
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
74
74
|
requestType: "file",
|
|
75
75
|
duplex: _maybeEncodedRequest.duplex,
|
|
76
76
|
body: _maybeEncodedRequest.body,
|
|
@@ -145,7 +145,7 @@ class Files {
|
|
|
145
145
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
146
146
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/files`),
|
|
147
147
|
method: "GET",
|
|
148
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
148
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
|
|
149
149
|
contentType: "application/json",
|
|
150
150
|
queryParameters: _queryParams,
|
|
151
151
|
requestType: "json",
|
|
@@ -212,7 +212,7 @@ class Files {
|
|
|
212
212
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
213
213
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/${encodeURIComponent(fileId)}`),
|
|
214
214
|
method: "DELETE",
|
|
215
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
215
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
|
|
216
216
|
contentType: "application/json",
|
|
217
217
|
requestType: "json",
|
|
218
218
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -66,7 +66,7 @@ class Passages {
|
|
|
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/sources/${encodeURIComponent(sourceId)}/passages`),
|
|
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.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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,
|
|
@@ -135,7 +135,9 @@ export declare class Tools {
|
|
|
135
135
|
* @example
|
|
136
136
|
* await client.tools.runToolFromSource({
|
|
137
137
|
* sourceCode: "source_code",
|
|
138
|
-
* args:
|
|
138
|
+
* args: {
|
|
139
|
+
* "key": "value"
|
|
140
|
+
* }
|
|
139
141
|
* })
|
|
140
142
|
*/
|
|
141
143
|
runToolFromSource(request: Letta.ToolRunFromSource, requestOptions?: Tools.RequestOptions): Promise<Letta.ToolReturnMessage>;
|
|
@@ -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.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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, unknown>;
|
|
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. */
|
|
@@ -13,11 +13,11 @@ export interface ToolUpdate {
|
|
|
13
13
|
/** Metadata tags. */
|
|
14
14
|
tags?: string[];
|
|
15
15
|
/** The source code of the function. */
|
|
16
|
-
module?: string;
|
|
17
|
-
/** The source code of the function. */
|
|
18
16
|
sourceCode?: string;
|
|
19
17
|
/** The type of the source code. */
|
|
20
18
|
sourceType?: string;
|
|
21
19
|
/** The JSON schema of the function (auto-generated from source_code if not provided) */
|
|
22
20
|
jsonSchema?: Record<string, unknown>;
|
|
21
|
+
/** The maximum number of characters in the response. */
|
|
22
|
+
returnCharLimit?: number;
|
|
23
23
|
}
|
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
package/api/types/Job.d.ts
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,18 +15,18 @@
|
|
|
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. */
|
|
20
23
|
sourceType?: string;
|
|
21
|
-
/** The module of the function. */
|
|
22
|
-
module?: string;
|
|
23
24
|
/** The name of the function. */
|
|
24
25
|
name?: string;
|
|
25
26
|
/** Metadata tags. */
|
|
26
27
|
tags?: string[];
|
|
27
28
|
/** The source code of the function. */
|
|
28
|
-
sourceCode
|
|
29
|
+
sourceCode?: string;
|
|
29
30
|
/** The JSON schema of the function. */
|
|
30
31
|
jsonSchema?: Record<string, unknown>;
|
|
31
32
|
/** 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,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* Representation of a run, which is a job with a 'run' prefix in its ID.
|
|
7
|
+
* Inherits all fields and behavior from Job except for the ID prefix.
|
|
8
|
+
*
|
|
9
|
+
* Parameters:
|
|
10
|
+
* id (str): The unique identifier of the run (prefixed with 'run-').
|
|
11
|
+
* status (JobStatus): The status of the run.
|
|
12
|
+
* created_at (datetime): The unix timestamp of when the run was created.
|
|
13
|
+
* completed_at (datetime): The unix timestamp of when the run was completed.
|
|
14
|
+
* user_id (str): The unique identifier of the user associated with the run.
|
|
15
|
+
*/
|
|
16
|
+
export interface Run {
|
|
17
|
+
/** The id of the user that made this object. */
|
|
18
|
+
createdById?: string;
|
|
19
|
+
/** The id of the user that made this object. */
|
|
20
|
+
lastUpdatedById?: string;
|
|
21
|
+
/** The timestamp when the object was created. */
|
|
22
|
+
createdAt?: Date;
|
|
23
|
+
/** The timestamp when the object was last updated. */
|
|
24
|
+
updatedAt?: Date;
|
|
25
|
+
/** The status of the job. */
|
|
26
|
+
status?: Letta.JobStatus;
|
|
27
|
+
/** The unix timestamp of when the job was completed. */
|
|
28
|
+
completedAt?: Date;
|
|
29
|
+
/** The metadata of the job. */
|
|
30
|
+
metadata?: Record<string, unknown>;
|
|
31
|
+
jobType?: Letta.JobType;
|
|
32
|
+
/** The human-friendly ID of the Run */
|
|
33
|
+
id?: string;
|
|
34
|
+
}
|
|
@@ -9,8 +9,6 @@ export interface ToolCreate {
|
|
|
9
9
|
/** Metadata tags. */
|
|
10
10
|
tags?: string[];
|
|
11
11
|
/** The source code of the function. */
|
|
12
|
-
module?: string;
|
|
13
|
-
/** The source code of the function. */
|
|
14
12
|
sourceCode: string;
|
|
15
13
|
/** The source type of the function. */
|
|
16
14
|
sourceType?: string;
|
|
@@ -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
|
@@ -48,6 +48,7 @@ export * from "./Health";
|
|
|
48
48
|
export * from "./InitToolRule";
|
|
49
49
|
export * from "./Job";
|
|
50
50
|
export * from "./JobStatus";
|
|
51
|
+
export * from "./JobType";
|
|
51
52
|
export * from "./LlmConfigModelEndpointType";
|
|
52
53
|
export * from "./LlmConfig";
|
|
53
54
|
export * from "./LettaRequest";
|
|
@@ -65,9 +66,11 @@ export * from "./OpenAiAssistant";
|
|
|
65
66
|
export * from "./Organization";
|
|
66
67
|
export * from "./OrganizationCreate";
|
|
67
68
|
export * from "./Passage";
|
|
69
|
+
export * from "./Provider";
|
|
68
70
|
export * from "./ReasoningMessage";
|
|
69
71
|
export * from "./RecallMemorySummary";
|
|
70
72
|
export * from "./ResponseFormat";
|
|
73
|
+
export * from "./Run";
|
|
71
74
|
export * from "./SandboxConfig";
|
|
72
75
|
export * from "./SandboxConfigCreateConfig";
|
|
73
76
|
export * from "./SandboxConfigCreate";
|
|
@@ -92,6 +95,7 @@ export * from "./ToolMessage";
|
|
|
92
95
|
export * from "./ToolReturnMessageStatus";
|
|
93
96
|
export * from "./ToolReturnMessage";
|
|
94
97
|
export * from "./ToolRuleType";
|
|
98
|
+
export * from "./ToolType";
|
|
95
99
|
export * from "./UsageStatistics";
|
|
96
100
|
export * from "./User";
|
|
97
101
|
export * from "./UserCreate";
|
package/api/types/index.js
CHANGED
|
@@ -64,6 +64,7 @@ __exportStar(require("./Health"), exports);
|
|
|
64
64
|
__exportStar(require("./InitToolRule"), exports);
|
|
65
65
|
__exportStar(require("./Job"), exports);
|
|
66
66
|
__exportStar(require("./JobStatus"), exports);
|
|
67
|
+
__exportStar(require("./JobType"), exports);
|
|
67
68
|
__exportStar(require("./LlmConfigModelEndpointType"), exports);
|
|
68
69
|
__exportStar(require("./LlmConfig"), exports);
|
|
69
70
|
__exportStar(require("./LettaRequest"), exports);
|
|
@@ -81,9 +82,11 @@ __exportStar(require("./OpenAiAssistant"), exports);
|
|
|
81
82
|
__exportStar(require("./Organization"), exports);
|
|
82
83
|
__exportStar(require("./OrganizationCreate"), exports);
|
|
83
84
|
__exportStar(require("./Passage"), exports);
|
|
85
|
+
__exportStar(require("./Provider"), exports);
|
|
84
86
|
__exportStar(require("./ReasoningMessage"), exports);
|
|
85
87
|
__exportStar(require("./RecallMemorySummary"), exports);
|
|
86
88
|
__exportStar(require("./ResponseFormat"), exports);
|
|
89
|
+
__exportStar(require("./Run"), exports);
|
|
87
90
|
__exportStar(require("./SandboxConfig"), exports);
|
|
88
91
|
__exportStar(require("./SandboxConfigCreateConfig"), exports);
|
|
89
92
|
__exportStar(require("./SandboxConfigCreate"), exports);
|
|
@@ -108,6 +111,7 @@ __exportStar(require("./ToolMessage"), exports);
|
|
|
108
111
|
__exportStar(require("./ToolReturnMessageStatus"), exports);
|
|
109
112
|
__exportStar(require("./ToolReturnMessage"), exports);
|
|
110
113
|
__exportStar(require("./ToolRuleType"), exports);
|
|
114
|
+
__exportStar(require("./ToolType"), exports);
|
|
111
115
|
__exportStar(require("./UsageStatistics"), exports);
|
|
112
116
|
__exportStar(require("./User"), exports);
|
|
113
117
|
__exportStar(require("./UserCreate"), exports);
|
package/dist/Client.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ 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";
|
|
14
|
+
import { Runs } from "./api/resources/runs/client/Client";
|
|
13
15
|
export declare namespace LettaClient {
|
|
14
16
|
interface Options {
|
|
15
17
|
environment?: core.Supplier<environments.LettaEnvironment | string>;
|
|
@@ -36,6 +38,8 @@ export declare class LettaClient {
|
|
|
36
38
|
protected _blocks: Blocks | undefined;
|
|
37
39
|
protected _jobs: Jobs | undefined;
|
|
38
40
|
protected _health: Health | undefined;
|
|
41
|
+
protected _providers: Providers | undefined;
|
|
42
|
+
protected _runs: Runs | undefined;
|
|
39
43
|
constructor(_options?: LettaClient.Options);
|
|
40
44
|
get tools(): Tools;
|
|
41
45
|
get sources(): Sources;
|
|
@@ -44,4 +48,6 @@ export declare class LettaClient {
|
|
|
44
48
|
get blocks(): Blocks;
|
|
45
49
|
get jobs(): Jobs;
|
|
46
50
|
get health(): Health;
|
|
51
|
+
get providers(): Providers;
|
|
52
|
+
get runs(): Runs;
|
|
47
53
|
}
|
package/dist/Client.js
CHANGED
|
@@ -11,6 +11,8 @@ 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");
|
|
15
|
+
const Client_9 = require("./api/resources/runs/client/Client");
|
|
14
16
|
class LettaClient {
|
|
15
17
|
constructor(_options = {}) {
|
|
16
18
|
this._options = _options;
|
|
@@ -43,5 +45,13 @@ class LettaClient {
|
|
|
43
45
|
var _a;
|
|
44
46
|
return ((_a = this._health) !== null && _a !== void 0 ? _a : (this._health = new Client_7.Health(this._options)));
|
|
45
47
|
}
|
|
48
|
+
get providers() {
|
|
49
|
+
var _a;
|
|
50
|
+
return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new Client_8.Providers(this._options)));
|
|
51
|
+
}
|
|
52
|
+
get runs() {
|
|
53
|
+
var _a;
|
|
54
|
+
return ((_a = this._runs) !== null && _a !== void 0 ? _a : (this._runs = new Client_9.Runs(this._options)));
|
|
55
|
+
}
|
|
46
56
|
}
|
|
47
57
|
exports.LettaClient = LettaClient;
|