@letta-ai/letta-client 0.1.2 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +2 -2
- package/Client.js +1 -1
- package/README.md +1 -1
- package/api/resources/agents/client/Client.d.ts +8 -25
- package/api/resources/agents/client/Client.js +165 -106
- package/api/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +1 -1
- package/api/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +1 -1
- package/api/resources/agents/client/requests/AgentsListRequest.d.ts +9 -1
- package/api/resources/agents/client/requests/AgentsMigrateRequest.d.ts +4 -4
- package/api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +1 -1
- package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +20 -17
- package/api/resources/agents/client/requests/UpdateAgent.d.ts +10 -8
- package/api/resources/agents/resources/archivalMemory/client/Client.d.ts +5 -3
- package/api/resources/agents/resources/archivalMemory/client/Client.js +59 -15
- package/api/resources/agents/resources/context/client/Client.d.ts +5 -3
- package/api/resources/agents/resources/context/client/Client.js +20 -6
- package/api/resources/agents/resources/memory/client/Client.d.ts +5 -3
- package/api/resources/agents/resources/memory/client/Client.js +20 -6
- package/api/resources/agents/resources/memory/resources/messages/client/Client.d.ts +5 -3
- package/api/resources/agents/resources/memory/resources/messages/client/Client.js +20 -6
- package/api/resources/agents/resources/memoryBlocks/client/Client.d.ts +5 -3
- package/api/resources/agents/resources/memoryBlocks/client/Client.js +36 -10
- package/api/resources/agents/resources/messages/client/Client.d.ts +24 -3
- package/api/resources/agents/resources/messages/client/Client.js +144 -19
- package/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +14 -3
- package/api/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +2 -2
- package/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +3 -3
- package/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +24 -1
- package/api/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +21 -1
- package/api/resources/agents/resources/recallMemory/client/Client.d.ts +5 -3
- package/api/resources/agents/resources/recallMemory/client/Client.js +20 -6
- package/api/resources/agents/resources/sources/client/Client.d.ts +5 -3
- package/api/resources/agents/resources/sources/client/Client.js +20 -6
- package/api/resources/agents/resources/tools/client/Client.d.ts +5 -3
- package/api/resources/agents/resources/tools/client/Client.js +50 -12
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +12 -1
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +8 -0
- package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemOperatorOperator.d.ts → AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts} +2 -2
- package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperatorOperator.js → api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js} +2 -2
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +8 -0
- package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionDirection.d.ts → api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts} +2 -2
- package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionDirection.js → api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js} +2 -2
- package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemDirectionValue.d.ts → AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts} +2 -2
- package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemDirectionValue.js → AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js} +2 -2
- package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemZero.d.ts → api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts} +1 -2
- package/api/resources/agents/types/index.d.ts +6 -6
- package/api/resources/agents/types/index.js +6 -6
- package/api/resources/blocks/client/Client.d.ts +7 -5
- package/api/resources/blocks/client/Client.js +103 -29
- package/api/resources/blocks/client/requests/BlocksListRequest.d.ts +1 -1
- package/api/resources/blocks/client/requests/LinkAgentMemoryBlockRequest.d.ts +2 -2
- package/api/resources/blocks/client/requests/UnlinkAgentMemoryBlockRequest.d.ts +2 -2
- package/api/resources/health/client/Client.d.ts +5 -3
- package/api/resources/health/client/Client.js +13 -5
- package/api/resources/jobs/client/Client.d.ts +5 -3
- package/api/resources/jobs/client/Client.js +66 -16
- package/api/resources/jobs/client/requests/JobsListRequest.d.ts +1 -1
- package/api/resources/models/client/Client.d.ts +5 -3
- package/api/resources/models/client/Client.js +21 -7
- package/api/resources/sources/client/Client.d.ts +7 -5
- package/api/resources/sources/client/Client.js +124 -32
- package/api/resources/sources/client/requests/SourceCreate.d.ts +2 -2
- package/api/resources/sources/client/requests/SourceUpdate.d.ts +2 -2
- package/api/resources/sources/client/requests/SourcesAttachRequest.d.ts +2 -2
- package/api/resources/sources/client/requests/SourcesDetachRequest.d.ts +2 -2
- package/api/resources/sources/resources/files/client/Client.d.ts +5 -3
- package/api/resources/sources/resources/files/client/Client.js +43 -11
- package/api/resources/sources/resources/passages/client/Client.d.ts +5 -3
- package/api/resources/sources/resources/passages/client/Client.js +20 -6
- package/api/resources/tools/client/Client.d.ts +8 -6
- package/api/resources/tools/client/Client.js +185 -45
- package/api/resources/tools/client/requests/ToolRunFromSource.d.ts +3 -3
- package/api/resources/tools/client/requests/ToolUpdate.d.ts +3 -3
- package/api/types/ActionModel.d.ts +1 -1
- package/api/types/AgentEnvironmentVariable.d.ts +23 -0
- package/api/types/AgentState.d.ts +21 -21
- package/api/types/AppAuthScheme.d.ts +8 -8
- package/api/types/AppModel.d.ts +4 -4
- package/api/types/AssistantFile.d.ts +2 -2
- package/api/types/AssistantMessageInput.d.ts +1 -1
- package/api/types/AssistantMessageOutput.d.ts +2 -3
- package/api/types/AuthResponse.d.ts +1 -1
- package/api/types/AuthSchemeField.d.ts +3 -3
- package/api/types/Block.d.ts +13 -15
- package/api/types/BlockUpdate.d.ts +2 -2
- package/api/types/ChatCompletionRequest.d.ts +9 -9
- package/api/types/ChatCompletionResponse.d.ts +2 -2
- package/api/types/ChildToolRule.d.ts +1 -1
- package/api/types/Choice.d.ts +1 -1
- package/api/types/ConditionalToolRule.d.ts +4 -4
- package/api/types/ContextWindowOverview.d.ts +17 -15
- package/api/types/CreateAssistantFileRequest.d.ts +1 -1
- package/api/types/CreateAssistantRequest.d.ts +2 -2
- package/api/types/CreateBlock.d.ts +2 -2
- package/api/types/E2BSandboxConfig.d.ts +1 -1
- package/api/types/EmbeddingConfig.d.ts +16 -16
- package/api/types/FileMetadata.d.ts +10 -12
- package/api/types/InitToolRule.d.ts +1 -1
- package/api/types/Job.d.ts +11 -13
- package/api/types/LettaRequest.d.ts +4 -2
- package/api/types/LettaResponse.d.ts +3 -3
- package/api/types/LettaResponseMessagesItem.d.ts +25 -0
- package/api/types/LettaSchemasLettaMessageToolCall.d.ts +1 -1
- package/api/types/LettaSchemasMessageMessage.d.ts +17 -19
- package/api/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +2 -2
- package/api/types/LettaSchemasToolTool.d.ts +11 -13
- package/api/types/LettaUsageStatistics.d.ts +8 -9
- package/api/types/LlmConfig.d.ts +11 -11
- package/api/types/LocalSandboxConfig.d.ts +3 -3
- package/api/types/Memory.d.ts +1 -1
- package/api/types/MessageContentLogProb.d.ts +1 -1
- package/api/types/OpenAiAssistant.d.ts +2 -2
- package/api/types/Organization.d.ts +1 -1
- package/api/types/Passage.d.ts +18 -20
- package/api/types/ReasoningMessage.d.ts +4 -5
- package/api/types/SandboxConfig.d.ts +4 -6
- package/api/types/SandboxEnvironmentVariable.d.ts +5 -7
- package/api/types/SandboxEnvironmentVariableUpdate.d.ts +0 -3
- package/api/types/Source.d.ts +12 -14
- package/api/types/SystemMessageOutput.d.ts +4 -5
- package/api/types/TerminalToolRule.d.ts +1 -1
- package/api/types/ToolCallDelta.d.ts +1 -1
- package/api/types/ToolCallMessage.d.ts +5 -6
- package/api/types/ToolCreate.d.ts +4 -4
- package/api/types/ToolMessage.d.ts +1 -1
- package/api/types/ToolReturnMessage.d.ts +10 -11
- package/api/types/UsageStatistics.d.ts +3 -3
- package/api/types/User.d.ts +6 -8
- package/api/types/UserCreate.d.ts +0 -2
- package/api/types/UserMessageOutput.d.ts +4 -5
- package/api/types/UserUpdate.d.ts +0 -2
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/core/index.d.ts +1 -1
- package/core/index.js +14 -1
- package/core/schemas/Schema.d.ts +85 -0
- package/core/schemas/Schema.js +22 -0
- package/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/core/schemas/builders/bigint/bigint.js +50 -0
- package/core/schemas/builders/bigint/index.d.ts +1 -0
- package/core/schemas/builders/bigint/index.js +5 -0
- package/core/schemas/builders/date/date.d.ts +2 -0
- package/core/schemas/builders/date/date.js +63 -0
- package/core/schemas/builders/date/index.d.ts +1 -0
- package/core/schemas/builders/date/index.js +5 -0
- package/core/schemas/builders/enum/enum.d.ts +2 -0
- package/core/schemas/builders/enum/enum.js +39 -0
- package/core/schemas/builders/enum/index.d.ts +1 -0
- package/core/schemas/builders/enum/index.js +5 -0
- package/core/schemas/builders/index.d.ts +14 -0
- package/core/schemas/builders/index.js +30 -0
- package/core/schemas/builders/lazy/index.d.ts +3 -0
- package/core/schemas/builders/lazy/index.js +7 -0
- package/core/schemas/builders/lazy/lazy.d.ts +5 -0
- package/core/schemas/builders/lazy/lazy.js +25 -0
- package/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
- package/core/schemas/builders/lazy/lazyObject.js +12 -0
- package/core/schemas/builders/list/index.d.ts +1 -0
- package/core/schemas/builders/list/index.js +5 -0
- package/core/schemas/builders/list/list.d.ts +2 -0
- package/core/schemas/builders/list/list.js +55 -0
- package/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/core/schemas/builders/literals/booleanLiteral.js +29 -0
- package/core/schemas/builders/literals/index.d.ts +2 -0
- package/core/schemas/builders/literals/index.js +7 -0
- package/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
- package/core/schemas/builders/literals/stringLiteral.js +29 -0
- package/core/schemas/builders/object/index.d.ts +6 -0
- package/core/schemas/builders/object/index.js +11 -0
- package/core/schemas/builders/object/object.d.ts +3 -0
- package/core/schemas/builders/object/object.js +261 -0
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
- package/core/schemas/builders/object/property.d.ts +8 -0
- package/core/schemas/builders/object/property.js +16 -0
- package/core/schemas/builders/object/types.d.ts +31 -0
- package/core/schemas/builders/object/types.js +2 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +54 -0
- package/core/schemas/builders/object-like/index.d.ts +2 -0
- package/core/schemas/builders/object-like/index.js +6 -0
- package/core/schemas/builders/object-like/types.d.ts +7 -0
- package/core/schemas/builders/object-like/types.js +2 -0
- package/core/schemas/builders/primitives/any.d.ts +1 -0
- package/core/schemas/builders/primitives/any.js +6 -0
- package/core/schemas/builders/primitives/boolean.d.ts +1 -0
- package/core/schemas/builders/primitives/boolean.js +25 -0
- package/core/schemas/builders/primitives/index.d.ts +5 -0
- package/core/schemas/builders/primitives/index.js +13 -0
- package/core/schemas/builders/primitives/number.d.ts +1 -0
- package/core/schemas/builders/primitives/number.js +25 -0
- package/core/schemas/builders/primitives/string.d.ts +1 -0
- package/core/schemas/builders/primitives/string.js +25 -0
- package/core/schemas/builders/primitives/unknown.d.ts +1 -0
- package/core/schemas/builders/primitives/unknown.js +6 -0
- package/core/schemas/builders/record/index.d.ts +2 -0
- package/core/schemas/builders/record/index.js +5 -0
- package/core/schemas/builders/record/record.d.ts +3 -0
- package/core/schemas/builders/record/record.js +95 -0
- package/core/schemas/builders/record/types.d.ts +4 -0
- package/core/schemas/builders/record/types.js +2 -0
- package/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/core/schemas/builders/schema-utils/JsonError.js +12 -0
- package/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/core/schemas/builders/schema-utils/ParseError.js +12 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +82 -0
- package/core/schemas/builders/schema-utils/index.d.ts +4 -0
- package/core/schemas/builders/schema-utils/index.js +11 -0
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
- package/core/schemas/builders/set/index.d.ts +1 -0
- package/core/schemas/builders/set/index.js +5 -0
- package/core/schemas/builders/set/set.d.ts +2 -0
- package/core/schemas/builders/set/set.js +44 -0
- package/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/core/schemas/builders/undiscriminated-union/types.js +2 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +40 -0
- package/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/core/schemas/builders/union/discriminant.js +10 -0
- package/core/schemas/builders/union/index.d.ts +4 -0
- package/core/schemas/builders/union/index.js +7 -0
- package/core/schemas/builders/union/types.d.ts +13 -0
- package/core/schemas/builders/union/types.js +2 -0
- package/core/schemas/builders/union/union.d.ts +4 -0
- package/core/schemas/builders/union/union.js +130 -0
- package/core/schemas/index.d.ts +2 -0
- package/core/schemas/index.js +17 -0
- package/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/core/schemas/utils/MaybePromise.js +2 -0
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
- package/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
- package/core/schemas/utils/entries.d.ts +1 -0
- package/core/schemas/utils/entries.js +7 -0
- package/core/schemas/utils/filterObject.d.ts +1 -0
- package/core/schemas/utils/filterObject.js +14 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +28 -0
- package/core/schemas/utils/isPlainObject.d.ts +1 -0
- package/core/schemas/utils/isPlainObject.js +18 -0
- package/core/schemas/utils/keys.d.ts +1 -0
- package/core/schemas/utils/keys.js +7 -0
- package/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/core/schemas/utils/maybeSkipValidation.js +28 -0
- package/core/schemas/utils/partition.d.ts +1 -0
- package/core/schemas/utils/partition.js +16 -0
- package/dist/Client.d.ts +2 -2
- package/dist/Client.js +1 -1
- package/dist/api/resources/agents/client/Client.d.ts +8 -25
- package/dist/api/resources/agents/client/Client.js +165 -106
- package/dist/api/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +1 -1
- package/dist/api/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +1 -1
- package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +9 -1
- package/dist/api/resources/agents/client/requests/AgentsMigrateRequest.d.ts +4 -4
- package/dist/api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +1 -1
- package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +20 -17
- package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +10 -8
- package/dist/api/resources/agents/resources/archivalMemory/client/Client.d.ts +5 -3
- package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +59 -15
- package/dist/api/resources/agents/resources/context/client/Client.d.ts +5 -3
- package/dist/api/resources/agents/resources/context/client/Client.js +20 -6
- package/dist/api/resources/agents/resources/memory/client/Client.d.ts +5 -3
- package/dist/api/resources/agents/resources/memory/client/Client.js +20 -6
- package/dist/api/resources/agents/resources/memory/resources/messages/client/Client.d.ts +5 -3
- package/dist/api/resources/agents/resources/memory/resources/messages/client/Client.js +20 -6
- package/dist/api/resources/agents/resources/memoryBlocks/client/Client.d.ts +5 -3
- package/dist/api/resources/agents/resources/memoryBlocks/client/Client.js +36 -10
- package/dist/api/resources/agents/resources/messages/client/Client.d.ts +24 -3
- package/dist/api/resources/agents/resources/messages/client/Client.js +144 -19
- package/dist/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +14 -3
- package/dist/api/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +2 -2
- package/dist/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +3 -3
- package/dist/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +24 -1
- package/dist/api/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +21 -1
- package/dist/api/resources/agents/resources/recallMemory/client/Client.d.ts +5 -3
- package/dist/api/resources/agents/resources/recallMemory/client/Client.js +20 -6
- package/dist/api/resources/agents/resources/sources/client/Client.d.ts +5 -3
- package/dist/api/resources/agents/resources/sources/client/Client.js +20 -6
- package/dist/api/resources/agents/resources/tools/client/Client.d.ts +5 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +50 -12
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +12 -1
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +8 -0
- package/dist/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemOperatorOperator.d.ts → AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts} +2 -2
- package/{api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperatorOperator.js → dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js} +2 -2
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +8 -0
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js +5 -0
- package/{api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionDirection.d.ts → dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts} +2 -2
- package/{api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionDirection.js → dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js} +2 -2
- package/dist/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemDirectionValue.d.ts → AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts} +2 -2
- package/dist/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemDirectionValue.js → AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js} +2 -2
- package/{api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemZero.d.ts → dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts} +1 -2
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.js +5 -0
- package/dist/api/resources/agents/types/index.d.ts +6 -6
- package/dist/api/resources/agents/types/index.js +6 -6
- package/dist/api/resources/blocks/client/Client.d.ts +7 -5
- package/dist/api/resources/blocks/client/Client.js +103 -29
- package/dist/api/resources/blocks/client/requests/BlocksListRequest.d.ts +1 -1
- package/dist/api/resources/blocks/client/requests/LinkAgentMemoryBlockRequest.d.ts +2 -2
- package/dist/api/resources/blocks/client/requests/UnlinkAgentMemoryBlockRequest.d.ts +2 -2
- package/dist/api/resources/health/client/Client.d.ts +5 -3
- package/dist/api/resources/health/client/Client.js +13 -5
- package/dist/api/resources/jobs/client/Client.d.ts +5 -3
- package/dist/api/resources/jobs/client/Client.js +66 -16
- package/dist/api/resources/jobs/client/requests/JobsListRequest.d.ts +1 -1
- package/dist/api/resources/models/client/Client.d.ts +5 -3
- package/dist/api/resources/models/client/Client.js +21 -7
- package/dist/api/resources/sources/client/Client.d.ts +7 -5
- package/dist/api/resources/sources/client/Client.js +124 -32
- package/dist/api/resources/sources/client/requests/SourceCreate.d.ts +2 -2
- package/dist/api/resources/sources/client/requests/SourceUpdate.d.ts +2 -2
- package/dist/api/resources/sources/client/requests/SourcesAttachRequest.d.ts +2 -2
- package/dist/api/resources/sources/client/requests/SourcesDetachRequest.d.ts +2 -2
- package/dist/api/resources/sources/resources/files/client/Client.d.ts +5 -3
- package/dist/api/resources/sources/resources/files/client/Client.js +43 -11
- package/dist/api/resources/sources/resources/passages/client/Client.d.ts +5 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +20 -6
- package/dist/api/resources/tools/client/Client.d.ts +8 -6
- package/dist/api/resources/tools/client/Client.js +185 -45
- package/dist/api/resources/tools/client/requests/ToolRunFromSource.d.ts +3 -3
- package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +3 -3
- package/dist/api/types/ActionModel.d.ts +1 -1
- package/dist/api/types/AgentEnvironmentVariable.d.ts +23 -0
- package/dist/api/types/AgentEnvironmentVariable.js +5 -0
- package/dist/api/types/AgentState.d.ts +21 -21
- package/dist/api/types/AppAuthScheme.d.ts +8 -8
- package/dist/api/types/AppModel.d.ts +4 -4
- package/dist/api/types/AssistantFile.d.ts +2 -2
- package/dist/api/types/AssistantMessageInput.d.ts +1 -1
- package/dist/api/types/AssistantMessageOutput.d.ts +2 -3
- package/dist/api/types/AuthResponse.d.ts +1 -1
- package/dist/api/types/AuthSchemeField.d.ts +3 -3
- package/dist/api/types/Block.d.ts +13 -15
- package/dist/api/types/BlockUpdate.d.ts +2 -2
- package/dist/api/types/ChatCompletionRequest.d.ts +9 -9
- package/dist/api/types/ChatCompletionResponse.d.ts +2 -2
- package/dist/api/types/ChildToolRule.d.ts +1 -1
- package/dist/api/types/Choice.d.ts +1 -1
- package/dist/api/types/ConditionalToolRule.d.ts +4 -4
- package/dist/api/types/ContextWindowOverview.d.ts +17 -15
- package/dist/api/types/CreateAssistantFileRequest.d.ts +1 -1
- package/dist/api/types/CreateAssistantRequest.d.ts +2 -2
- package/dist/api/types/CreateBlock.d.ts +2 -2
- package/dist/api/types/E2BSandboxConfig.d.ts +1 -1
- package/dist/api/types/EmbeddingConfig.d.ts +16 -16
- package/dist/api/types/FileMetadata.d.ts +10 -12
- package/dist/api/types/InitToolRule.d.ts +1 -1
- package/dist/api/types/Job.d.ts +11 -13
- package/dist/api/types/LettaRequest.d.ts +4 -2
- package/dist/api/types/LettaResponse.d.ts +3 -3
- package/dist/api/types/LettaResponseMessagesItem.d.ts +25 -0
- package/dist/api/types/LettaResponseMessagesItem.js +5 -0
- package/dist/api/types/LettaSchemasLettaMessageToolCall.d.ts +1 -1
- package/dist/api/types/LettaSchemasMessageMessage.d.ts +17 -19
- package/dist/api/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +2 -2
- package/dist/api/types/LettaSchemasToolTool.d.ts +11 -13
- package/dist/api/types/LettaUsageStatistics.d.ts +8 -9
- package/dist/api/types/LlmConfig.d.ts +11 -11
- package/dist/api/types/LocalSandboxConfig.d.ts +3 -3
- package/dist/api/types/Memory.d.ts +1 -1
- package/dist/api/types/MessageContentLogProb.d.ts +1 -1
- package/dist/api/types/OpenAiAssistant.d.ts +2 -2
- package/dist/api/types/Organization.d.ts +1 -1
- package/dist/api/types/Passage.d.ts +18 -20
- package/dist/api/types/ReasoningMessage.d.ts +4 -5
- package/dist/api/types/SandboxConfig.d.ts +4 -6
- package/dist/api/types/SandboxEnvironmentVariable.d.ts +5 -7
- package/dist/api/types/SandboxEnvironmentVariableUpdate.d.ts +0 -3
- package/dist/api/types/Source.d.ts +12 -14
- package/dist/api/types/SystemMessageOutput.d.ts +4 -5
- package/dist/api/types/TerminalToolRule.d.ts +1 -1
- package/dist/api/types/ToolCallDelta.d.ts +1 -1
- package/dist/api/types/ToolCallMessage.d.ts +5 -6
- package/dist/api/types/ToolCreate.d.ts +4 -4
- package/dist/api/types/ToolMessage.d.ts +1 -1
- package/dist/api/types/ToolReturnMessage.d.ts +10 -11
- package/dist/api/types/UsageStatistics.d.ts +3 -3
- package/dist/api/types/User.d.ts +6 -8
- package/dist/api/types/UserCreate.d.ts +0 -2
- package/dist/api/types/UserMessageOutput.d.ts +4 -5
- 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/core/index.d.ts +1 -1
- package/dist/core/index.js +14 -1
- package/dist/core/schemas/Schema.d.ts +85 -0
- package/dist/core/schemas/Schema.js +22 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/dist/core/schemas/builders/bigint/bigint.js +50 -0
- package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
- package/dist/core/schemas/builders/bigint/index.js +5 -0
- package/dist/core/schemas/builders/date/date.d.ts +2 -0
- package/dist/core/schemas/builders/date/date.js +63 -0
- package/dist/core/schemas/builders/date/index.d.ts +1 -0
- package/dist/core/schemas/builders/date/index.js +5 -0
- package/dist/core/schemas/builders/enum/enum.d.ts +2 -0
- package/dist/core/schemas/builders/enum/enum.js +39 -0
- package/dist/core/schemas/builders/enum/index.d.ts +1 -0
- package/dist/core/schemas/builders/enum/index.js +5 -0
- package/dist/core/schemas/builders/index.d.ts +14 -0
- package/dist/core/schemas/builders/index.js +30 -0
- package/dist/core/schemas/builders/lazy/index.d.ts +3 -0
- package/dist/core/schemas/builders/lazy/index.js +7 -0
- package/dist/core/schemas/builders/lazy/lazy.d.ts +5 -0
- package/dist/core/schemas/builders/lazy/lazy.js +25 -0
- package/dist/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
- package/dist/core/schemas/builders/lazy/lazyObject.js +12 -0
- package/dist/core/schemas/builders/list/index.d.ts +1 -0
- package/dist/core/schemas/builders/list/index.js +5 -0
- package/dist/core/schemas/builders/list/list.d.ts +2 -0
- package/dist/core/schemas/builders/list/list.js +55 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.js +29 -0
- package/dist/core/schemas/builders/literals/index.d.ts +2 -0
- package/dist/core/schemas/builders/literals/index.js +7 -0
- package/dist/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
- package/dist/core/schemas/builders/literals/stringLiteral.js +29 -0
- package/dist/core/schemas/builders/object/index.d.ts +6 -0
- package/dist/core/schemas/builders/object/index.js +11 -0
- package/dist/core/schemas/builders/object/object.d.ts +3 -0
- package/dist/core/schemas/builders/object/object.js +261 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
- package/dist/core/schemas/builders/object/property.d.ts +8 -0
- package/dist/core/schemas/builders/object/property.js +16 -0
- package/dist/core/schemas/builders/object/types.d.ts +31 -0
- package/dist/core/schemas/builders/object/types.js +2 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +54 -0
- package/dist/core/schemas/builders/object-like/index.d.ts +2 -0
- package/dist/core/schemas/builders/object-like/index.js +6 -0
- package/dist/core/schemas/builders/object-like/types.d.ts +7 -0
- package/dist/core/schemas/builders/object-like/types.js +2 -0
- package/dist/core/schemas/builders/primitives/any.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/any.js +6 -0
- package/dist/core/schemas/builders/primitives/boolean.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/boolean.js +25 -0
- package/dist/core/schemas/builders/primitives/index.d.ts +5 -0
- package/dist/core/schemas/builders/primitives/index.js +13 -0
- package/dist/core/schemas/builders/primitives/number.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/number.js +25 -0
- package/dist/core/schemas/builders/primitives/string.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/string.js +25 -0
- package/dist/core/schemas/builders/primitives/unknown.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/unknown.js +6 -0
- package/dist/core/schemas/builders/record/index.d.ts +2 -0
- package/dist/core/schemas/builders/record/index.js +5 -0
- package/dist/core/schemas/builders/record/record.d.ts +3 -0
- package/dist/core/schemas/builders/record/record.js +95 -0
- package/dist/core/schemas/builders/record/types.d.ts +4 -0
- package/dist/core/schemas/builders/record/types.js +2 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.js +12 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.js +12 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +82 -0
- package/dist/core/schemas/builders/schema-utils/index.d.ts +4 -0
- package/dist/core/schemas/builders/schema-utils/index.js +11 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
- package/dist/core/schemas/builders/set/index.d.ts +1 -0
- package/dist/core/schemas/builders/set/index.js +5 -0
- package/dist/core/schemas/builders/set/set.d.ts +2 -0
- package/dist/core/schemas/builders/set/set.js +44 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.js +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +40 -0
- package/dist/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/dist/core/schemas/builders/union/discriminant.js +10 -0
- package/dist/core/schemas/builders/union/index.d.ts +4 -0
- package/dist/core/schemas/builders/union/index.js +7 -0
- package/dist/core/schemas/builders/union/types.d.ts +13 -0
- package/dist/core/schemas/builders/union/types.js +2 -0
- package/dist/core/schemas/builders/union/union.d.ts +4 -0
- package/dist/core/schemas/builders/union/union.js +130 -0
- package/dist/core/schemas/index.d.ts +2 -0
- package/dist/core/schemas/index.js +17 -0
- package/dist/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/dist/core/schemas/utils/MaybePromise.js +2 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
- package/dist/core/schemas/utils/entries.d.ts +1 -0
- package/dist/core/schemas/utils/entries.js +7 -0
- package/dist/core/schemas/utils/filterObject.d.ts +1 -0
- package/dist/core/schemas/utils/filterObject.js +14 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +28 -0
- package/dist/core/schemas/utils/isPlainObject.d.ts +1 -0
- package/dist/core/schemas/utils/isPlainObject.js +18 -0
- package/dist/core/schemas/utils/keys.d.ts +1 -0
- package/dist/core/schemas/utils/keys.js +7 -0
- package/dist/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/dist/core/schemas/utils/maybeSkipValidation.js +28 -0
- package/dist/core/schemas/utils/partition.d.ts +1 -0
- package/dist/core/schemas/utils/partition.js +16 -0
- package/dist/serialization/index.d.ts +2 -0
- package/dist/serialization/index.js +18 -0
- package/dist/serialization/resources/agents/client/getAgentMemoryBlocks.d.ts +11 -0
- package/dist/serialization/resources/agents/client/getAgentMemoryBlocks.js +32 -0
- package/dist/serialization/resources/agents/client/index.d.ts +3 -0
- package/dist/serialization/resources/agents/client/index.js +32 -0
- package/dist/serialization/resources/agents/client/list.d.ts +11 -0
- package/dist/serialization/resources/agents/client/list.js +32 -0
- package/dist/serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +12 -0
- package/dist/serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.js +33 -0
- package/dist/serialization/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +12 -0
- package/dist/serialization/resources/agents/client/requests/AgentsCreateVersionRequest.js +33 -0
- package/dist/serialization/resources/agents/client/requests/AgentsMigrateRequest.d.ts +14 -0
- package/dist/serialization/resources/agents/client/requests/AgentsMigrateRequest.js +35 -0
- package/dist/serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +18 -0
- package/dist/serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js +39 -0
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +41 -0
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +64 -0
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +27 -0
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +48 -0
- package/dist/serialization/resources/agents/client/requests/index.d.ts +6 -0
- package/dist/serialization/resources/agents/client/requests/index.js +15 -0
- package/dist/serialization/resources/agents/index.d.ts +3 -0
- package/dist/serialization/resources/agents/index.js +19 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/create.d.ts +11 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/create.js +32 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/index.d.ts +3 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/index.js +32 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/list.d.ts +11 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/list.js +32 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.d.ts +12 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.js +33 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/index.js +5 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/index.js +17 -0
- package/dist/serialization/resources/agents/resources/index.d.ts +8 -0
- package/dist/serialization/resources/agents/resources/index.js +37 -0
- package/dist/serialization/resources/agents/resources/memory/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/memory/index.js +17 -0
- package/dist/serialization/resources/agents/resources/memory/resources/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/memory/resources/index.js +27 -0
- package/dist/serialization/resources/agents/resources/memory/resources/messages/client/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/memory/resources/messages/client/index.js +27 -0
- package/dist/serialization/resources/agents/resources/memory/resources/messages/client/listInContext.d.ts +11 -0
- package/dist/serialization/resources/agents/resources/memory/resources/messages/client/listInContext.js +32 -0
- package/dist/serialization/resources/agents/resources/memory/resources/messages/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/memory/resources/messages/index.js +17 -0
- package/dist/serialization/resources/agents/resources/messages/client/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/messages/client/index.js +17 -0
- package/dist/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +17 -0
- package/dist/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.js +38 -0
- package/dist/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +18 -0
- package/dist/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.js +39 -0
- package/dist/serialization/resources/agents/resources/messages/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/agents/resources/messages/client/requests/index.js +7 -0
- package/dist/serialization/resources/agents/resources/messages/index.d.ts +2 -0
- package/dist/serialization/resources/agents/resources/messages/index.js +18 -0
- package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +38 -0
- package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +51 -0
- package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponse.d.ts +12 -0
- package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponse.js +36 -0
- package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +34 -0
- package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.js +49 -0
- package/dist/serialization/resources/agents/resources/messages/types/index.d.ts +3 -0
- package/dist/serialization/resources/agents/resources/messages/types/index.js +19 -0
- package/dist/serialization/resources/agents/resources/sources/client/get.d.ts +11 -0
- package/dist/serialization/resources/agents/resources/sources/client/get.js +32 -0
- package/dist/serialization/resources/agents/resources/sources/client/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/sources/client/index.js +27 -0
- package/dist/serialization/resources/agents/resources/sources/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/sources/index.js +17 -0
- package/dist/serialization/resources/agents/resources/tools/client/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/tools/client/index.js +27 -0
- package/dist/serialization/resources/agents/resources/tools/client/list.d.ts +11 -0
- package/dist/serialization/resources/agents/resources/tools/client/list.js +32 -0
- package/dist/serialization/resources/agents/resources/tools/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/tools/index.js +17 -0
- package/dist/serialization/resources/agents/types/AgentsGetAgentVariablesResponse.d.ts +12 -0
- package/dist/serialization/resources/agents/types/AgentsGetAgentVariablesResponse.js +33 -0
- package/dist/serialization/resources/agents/types/AgentsMigrateResponse.d.ts +12 -0
- package/dist/serialization/resources/agents/types/AgentsMigrateResponse.js +33 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +10 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.js +31 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +22 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.js +43 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +14 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.js +35 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts +10 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js +31 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +15 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js +36 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts +10 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js +31 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts +10 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js +31 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts +12 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.js +33 -0
- package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +14 -0
- package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +35 -0
- package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.d.ts +14 -0
- package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +35 -0
- package/dist/serialization/resources/agents/types/index.d.ts +12 -0
- package/dist/serialization/resources/agents/types/index.js +28 -0
- package/dist/serialization/resources/blocks/client/index.d.ts +1 -0
- package/dist/serialization/resources/blocks/client/index.js +27 -0
- package/dist/serialization/resources/blocks/client/list.d.ts +11 -0
- package/dist/serialization/resources/blocks/client/list.js +32 -0
- package/dist/serialization/resources/blocks/index.d.ts +1 -0
- package/dist/serialization/resources/blocks/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +10 -0
- package/dist/serialization/resources/index.js +39 -0
- package/dist/serialization/resources/jobs/client/index.d.ts +2 -0
- package/dist/serialization/resources/jobs/client/index.js +28 -0
- package/dist/serialization/resources/jobs/client/list.d.ts +11 -0
- package/dist/serialization/resources/jobs/client/list.js +32 -0
- package/dist/serialization/resources/jobs/client/listActive.d.ts +11 -0
- package/dist/serialization/resources/jobs/client/listActive.js +32 -0
- package/dist/serialization/resources/jobs/index.d.ts +1 -0
- package/dist/serialization/resources/jobs/index.js +17 -0
- package/dist/serialization/resources/models/client/index.d.ts +2 -0
- package/dist/serialization/resources/models/client/index.js +28 -0
- package/dist/serialization/resources/models/client/listEmbeddingModels.d.ts +11 -0
- package/dist/serialization/resources/models/client/listEmbeddingModels.js +32 -0
- package/dist/serialization/resources/models/client/listLlms.d.ts +11 -0
- package/dist/serialization/resources/models/client/listLlms.js +32 -0
- package/dist/serialization/resources/models/index.d.ts +1 -0
- package/dist/serialization/resources/models/index.js +17 -0
- package/dist/serialization/resources/sources/client/getByName.d.ts +9 -0
- package/dist/serialization/resources/sources/client/getByName.js +31 -0
- package/dist/serialization/resources/sources/client/index.d.ts +3 -0
- package/dist/serialization/resources/sources/client/index.js +32 -0
- package/dist/serialization/resources/sources/client/list.d.ts +11 -0
- package/dist/serialization/resources/sources/client/list.js +32 -0
- package/dist/serialization/resources/sources/client/requests/SourceCreate.d.ts +16 -0
- package/dist/serialization/resources/sources/client/requests/SourceCreate.js +37 -0
- package/dist/serialization/resources/sources/client/requests/SourceUpdate.d.ts +16 -0
- package/dist/serialization/resources/sources/client/requests/SourceUpdate.js +37 -0
- package/dist/serialization/resources/sources/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/sources/client/requests/index.js +7 -0
- package/dist/serialization/resources/sources/index.d.ts +2 -0
- package/dist/serialization/resources/sources/index.js +18 -0
- package/dist/serialization/resources/sources/resources/files/client/index.d.ts +1 -0
- package/dist/serialization/resources/sources/resources/files/client/index.js +27 -0
- package/dist/serialization/resources/sources/resources/files/client/list.d.ts +11 -0
- package/dist/serialization/resources/sources/resources/files/client/list.js +32 -0
- package/dist/serialization/resources/sources/resources/files/index.d.ts +1 -0
- package/dist/serialization/resources/sources/resources/files/index.js +17 -0
- package/dist/serialization/resources/sources/resources/index.d.ts +2 -0
- package/dist/serialization/resources/sources/resources/index.js +28 -0
- package/dist/serialization/resources/sources/resources/passages/client/index.d.ts +1 -0
- package/dist/serialization/resources/sources/resources/passages/client/index.js +27 -0
- package/dist/serialization/resources/sources/resources/passages/client/list.d.ts +11 -0
- package/dist/serialization/resources/sources/resources/passages/client/list.js +32 -0
- package/dist/serialization/resources/sources/resources/passages/index.d.ts +1 -0
- package/dist/serialization/resources/sources/resources/passages/index.js +17 -0
- package/dist/serialization/resources/tools/client/addBaseTool.d.ts +11 -0
- package/dist/serialization/resources/tools/client/addBaseTool.js +32 -0
- package/dist/serialization/resources/tools/client/getByName.d.ts +9 -0
- package/dist/serialization/resources/tools/client/getByName.js +31 -0
- package/dist/serialization/resources/tools/client/index.d.ts +6 -0
- package/dist/serialization/resources/tools/client/index.js +35 -0
- package/dist/serialization/resources/tools/client/list.d.ts +11 -0
- package/dist/serialization/resources/tools/client/list.js +32 -0
- package/dist/serialization/resources/tools/client/listComposioActionsByApp.d.ts +11 -0
- package/dist/serialization/resources/tools/client/listComposioActionsByApp.js +32 -0
- package/dist/serialization/resources/tools/client/listComposioApps.d.ts +11 -0
- package/dist/serialization/resources/tools/client/listComposioApps.js +32 -0
- package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +15 -0
- package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.js +36 -0
- package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +18 -0
- package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +39 -0
- package/dist/serialization/resources/tools/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/tools/client/requests/index.js +7 -0
- package/dist/serialization/resources/tools/index.d.ts +1 -0
- package/dist/serialization/resources/tools/index.js +17 -0
- package/dist/serialization/types/ActionModel.d.ts +23 -0
- package/dist/serialization/types/ActionModel.js +44 -0
- package/dist/serialization/types/ActionParametersModel.d.ts +15 -0
- package/dist/serialization/types/ActionParametersModel.js +36 -0
- package/dist/serialization/types/ActionResponseModel.d.ts +15 -0
- package/dist/serialization/types/ActionResponseModel.js +36 -0
- package/dist/serialization/types/AgentEnvironmentVariable.d.ts +20 -0
- package/dist/serialization/types/AgentEnvironmentVariable.js +41 -0
- package/dist/serialization/types/AgentState.d.ts +38 -0
- package/dist/serialization/types/AgentState.js +59 -0
- package/dist/serialization/types/AgentStateToolRulesItem.d.ts +14 -0
- package/dist/serialization/types/AgentStateToolRulesItem.js +35 -0
- package/dist/serialization/types/AgentType.d.ts +10 -0
- package/dist/serialization/types/AgentType.js +37 -0
- package/dist/serialization/types/AppAuthScheme.d.ts +23 -0
- package/dist/serialization/types/AppAuthScheme.js +44 -0
- package/dist/serialization/types/AppAuthSchemeAuthMode.d.ts +10 -0
- package/dist/serialization/types/AppAuthSchemeAuthMode.js +31 -0
- package/dist/serialization/types/AppModel.d.ts +28 -0
- package/dist/serialization/types/AppModel.js +51 -0
- package/dist/serialization/types/ArchivalMemorySummary.d.ts +12 -0
- package/dist/serialization/types/ArchivalMemorySummary.js +33 -0
- package/dist/serialization/types/AssistantFile.d.ts +15 -0
- package/dist/serialization/types/AssistantFile.js +36 -0
- package/dist/serialization/types/AssistantMessageInput.d.ts +16 -0
- package/dist/serialization/types/AssistantMessageInput.js +37 -0
- package/dist/serialization/types/AssistantMessageOutput.d.ts +14 -0
- package/dist/serialization/types/AssistantMessageOutput.js +35 -0
- package/dist/serialization/types/AuthRequest.d.ts +12 -0
- package/dist/serialization/types/AuthRequest.js +33 -0
- package/dist/serialization/types/AuthResponse.d.ts +13 -0
- package/dist/serialization/types/AuthResponse.js +34 -0
- package/dist/serialization/types/AuthSchemeField.d.ts +19 -0
- package/dist/serialization/types/AuthSchemeField.js +40 -0
- package/dist/serialization/types/Block.d.ts +21 -0
- package/dist/serialization/types/Block.js +42 -0
- package/dist/serialization/types/BlockUpdate.d.ts +18 -0
- package/dist/serialization/types/BlockUpdate.js +39 -0
- package/dist/serialization/types/ChatCompletionRequest.d.ts +38 -0
- package/dist/serialization/types/ChatCompletionRequest.js +59 -0
- package/dist/serialization/types/ChatCompletionRequestFunctionCall.d.ts +11 -0
- package/dist/serialization/types/ChatCompletionRequestFunctionCall.js +36 -0
- package/dist/serialization/types/ChatCompletionRequestMessagesItem.d.ts +14 -0
- package/dist/serialization/types/ChatCompletionRequestMessagesItem.js +35 -0
- package/dist/serialization/types/ChatCompletionRequestStop.d.ts +10 -0
- package/dist/serialization/types/ChatCompletionRequestStop.js +34 -0
- package/dist/serialization/types/ChatCompletionRequestToolChoice.d.ts +11 -0
- package/dist/serialization/types/ChatCompletionRequestToolChoice.js +37 -0
- package/dist/serialization/types/ChatCompletionResponse.d.ts +20 -0
- package/dist/serialization/types/ChatCompletionResponse.js +41 -0
- package/dist/serialization/types/ChildToolRule.d.ts +15 -0
- package/dist/serialization/types/ChildToolRule.js +36 -0
- package/dist/serialization/types/Choice.d.ts +18 -0
- package/dist/serialization/types/Choice.js +41 -0
- package/dist/serialization/types/ConditionalToolRule.d.ts +17 -0
- package/dist/serialization/types/ConditionalToolRule.js +38 -0
- package/dist/serialization/types/ConflictErrorBody.d.ts +12 -0
- package/dist/serialization/types/ConflictErrorBody.js +33 -0
- package/dist/serialization/types/ContextWindowOverview.d.ts +30 -0
- package/dist/serialization/types/ContextWindowOverview.js +51 -0
- package/dist/serialization/types/CreateAssistantFileRequest.d.ts +12 -0
- package/dist/serialization/types/CreateAssistantFileRequest.js +33 -0
- package/dist/serialization/types/CreateAssistantRequest.d.ts +19 -0
- package/dist/serialization/types/CreateAssistantRequest.js +40 -0
- package/dist/serialization/types/CreateBlock.d.ts +18 -0
- package/dist/serialization/types/CreateBlock.js +39 -0
- package/dist/serialization/types/DeleteAssistantFileResponse.d.ts +14 -0
- package/dist/serialization/types/DeleteAssistantFileResponse.js +35 -0
- package/dist/serialization/types/DeleteAssistantResponse.d.ts +14 -0
- package/dist/serialization/types/DeleteAssistantResponse.js +35 -0
- package/dist/serialization/types/E2BSandboxConfig.d.ts +14 -0
- package/dist/serialization/types/E2BSandboxConfig.js +35 -0
- package/dist/serialization/types/EmbeddingConfig.d.ts +21 -0
- package/dist/serialization/types/EmbeddingConfig.js +42 -0
- package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +10 -0
- package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +49 -0
- package/dist/serialization/types/FileMetadata.d.ts +22 -0
- package/dist/serialization/types/FileMetadata.js +43 -0
- package/dist/serialization/types/FunctionCallInput.d.ts +12 -0
- package/dist/serialization/types/FunctionCallInput.js +33 -0
- package/dist/serialization/types/FunctionCallOutput.d.ts +13 -0
- package/dist/serialization/types/FunctionCallOutput.js +34 -0
- package/dist/serialization/types/FunctionSchema.d.ts +14 -0
- package/dist/serialization/types/FunctionSchema.js +35 -0
- package/dist/serialization/types/Health.d.ts +13 -0
- package/dist/serialization/types/Health.js +34 -0
- package/dist/serialization/types/HttpValidationError.d.ts +13 -0
- package/dist/serialization/types/HttpValidationError.js +34 -0
- package/dist/serialization/types/InitToolRule.d.ts +14 -0
- package/dist/serialization/types/InitToolRule.js +35 -0
- package/dist/serialization/types/InternalServerErrorBody.d.ts +12 -0
- package/dist/serialization/types/InternalServerErrorBody.js +33 -0
- package/dist/serialization/types/Job.d.ts +20 -0
- package/dist/serialization/types/Job.js +41 -0
- package/dist/serialization/types/JobStatus.d.ts +10 -0
- package/dist/serialization/types/JobStatus.js +31 -0
- package/dist/serialization/types/LettaRequest.d.ts +16 -0
- package/dist/serialization/types/LettaRequest.js +37 -0
- package/dist/serialization/types/LettaResponse.d.ts +15 -0
- package/dist/serialization/types/LettaResponse.js +36 -0
- package/dist/serialization/types/LettaResponseMessagesItem.d.ts +34 -0
- package/dist/serialization/types/LettaResponseMessagesItem.js +49 -0
- package/dist/serialization/types/LettaSchemasLettaMessageToolCall.d.ts +14 -0
- package/dist/serialization/types/LettaSchemasLettaMessageToolCall.js +35 -0
- package/dist/serialization/types/LettaSchemasMessageMessage.d.ts +25 -0
- package/dist/serialization/types/LettaSchemasMessageMessage.js +46 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.d.ts +14 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.js +35 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.d.ts +15 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.js +36 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.d.ts +13 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.js +34 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +17 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.js +38 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.d.ts +15 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.js +36 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.d.ts +13 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.js +34 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.d.ts +15 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.js +36 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.d.ts +15 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.js +36 -0
- package/dist/serialization/types/LettaSchemasToolTool.d.ts +22 -0
- package/dist/serialization/types/LettaSchemasToolTool.js +43 -0
- package/dist/serialization/types/LettaUsageStatistics.d.ts +15 -0
- package/dist/serialization/types/LettaUsageStatistics.js +36 -0
- package/dist/serialization/types/LlmConfig.d.ts +19 -0
- package/dist/serialization/types/LlmConfig.js +40 -0
- package/dist/serialization/types/LlmConfigModelEndpointType.d.ts +10 -0
- package/dist/serialization/types/LlmConfigModelEndpointType.js +49 -0
- package/dist/serialization/types/LocalSandboxConfig.d.ts +14 -0
- package/dist/serialization/types/LocalSandboxConfig.js +35 -0
- package/dist/serialization/types/LogProbToken.d.ts +14 -0
- package/dist/serialization/types/LogProbToken.js +35 -0
- package/dist/serialization/types/Memory.d.ts +14 -0
- package/dist/serialization/types/Memory.js +35 -0
- package/dist/serialization/types/MessageContentLogProb.d.ts +16 -0
- package/dist/serialization/types/MessageContentLogProb.js +37 -0
- package/dist/serialization/types/MessageCreate.d.ts +15 -0
- package/dist/serialization/types/MessageCreate.js +36 -0
- package/dist/serialization/types/MessageCreateRole.d.ts +10 -0
- package/dist/serialization/types/MessageCreateRole.js +31 -0
- package/dist/serialization/types/MessageRole.d.ts +10 -0
- package/dist/serialization/types/MessageRole.js +31 -0
- package/dist/serialization/types/NotFoundErrorBody.d.ts +12 -0
- package/dist/serialization/types/NotFoundErrorBody.js +33 -0
- package/dist/serialization/types/NotFoundErrorBodyMessage.d.ts +10 -0
- package/dist/serialization/types/NotFoundErrorBodyMessage.js +34 -0
- package/dist/serialization/types/OpenAiAssistant.d.ts +21 -0
- package/dist/serialization/types/OpenAiAssistant.js +42 -0
- package/dist/serialization/types/Organization.d.ts +14 -0
- package/dist/serialization/types/Organization.js +35 -0
- package/dist/serialization/types/OrganizationCreate.d.ts +12 -0
- package/dist/serialization/types/OrganizationCreate.js +33 -0
- package/dist/serialization/types/Passage.d.ts +25 -0
- package/dist/serialization/types/Passage.js +46 -0
- package/dist/serialization/types/ReasoningMessage.d.ts +14 -0
- package/dist/serialization/types/ReasoningMessage.js +35 -0
- package/dist/serialization/types/RecallMemorySummary.d.ts +12 -0
- package/dist/serialization/types/RecallMemorySummary.js +33 -0
- package/dist/serialization/types/ResponseFormat.d.ts +12 -0
- package/dist/serialization/types/ResponseFormat.js +33 -0
- package/dist/serialization/types/SandboxConfig.d.ts +19 -0
- package/dist/serialization/types/SandboxConfig.js +40 -0
- package/dist/serialization/types/SandboxConfigCreate.d.ts +13 -0
- package/dist/serialization/types/SandboxConfigCreate.js +34 -0
- package/dist/serialization/types/SandboxConfigCreateConfig.d.ts +12 -0
- package/dist/serialization/types/SandboxConfigCreateConfig.js +33 -0
- package/dist/serialization/types/SandboxConfigUpdate.d.ts +13 -0
- package/dist/serialization/types/SandboxConfigUpdate.js +34 -0
- package/dist/serialization/types/SandboxConfigUpdateConfig.d.ts +12 -0
- package/dist/serialization/types/SandboxConfigUpdateConfig.js +33 -0
- package/dist/serialization/types/SandboxEnvironmentVariable.d.ts +20 -0
- package/dist/serialization/types/SandboxEnvironmentVariable.js +41 -0
- package/dist/serialization/types/SandboxEnvironmentVariableCreate.d.ts +14 -0
- package/dist/serialization/types/SandboxEnvironmentVariableCreate.js +35 -0
- package/dist/serialization/types/SandboxEnvironmentVariableUpdate.d.ts +14 -0
- package/dist/serialization/types/SandboxEnvironmentVariableUpdate.js +35 -0
- package/dist/serialization/types/SandboxType.d.ts +10 -0
- package/dist/serialization/types/SandboxType.js +31 -0
- package/dist/serialization/types/Source.d.ts +21 -0
- package/dist/serialization/types/Source.js +42 -0
- package/dist/serialization/types/SystemMessageInput.d.ts +14 -0
- package/dist/serialization/types/SystemMessageInput.js +35 -0
- package/dist/serialization/types/SystemMessageOutput.d.ts +14 -0
- package/dist/serialization/types/SystemMessageOutput.js +35 -0
- package/dist/serialization/types/TerminalToolRule.d.ts +14 -0
- package/dist/serialization/types/TerminalToolRule.js +35 -0
- package/dist/serialization/types/ToolCallDelta.d.ts +14 -0
- package/dist/serialization/types/ToolCallDelta.js +35 -0
- package/dist/serialization/types/ToolCallFunctionOutput.d.ts +13 -0
- package/dist/serialization/types/ToolCallFunctionOutput.js +34 -0
- package/dist/serialization/types/ToolCallMessage.d.ts +15 -0
- package/dist/serialization/types/ToolCallMessage.js +36 -0
- package/dist/serialization/types/ToolCallMessageToolCall.d.ts +12 -0
- package/dist/serialization/types/ToolCallMessageToolCall.js +33 -0
- package/dist/serialization/types/ToolCreate.d.ts +19 -0
- package/dist/serialization/types/ToolCreate.js +40 -0
- package/dist/serialization/types/ToolFunctionChoice.d.ts +14 -0
- package/dist/serialization/types/ToolFunctionChoice.js +35 -0
- package/dist/serialization/types/ToolInput.d.ts +14 -0
- package/dist/serialization/types/ToolInput.js +35 -0
- package/dist/serialization/types/ToolMessage.d.ts +14 -0
- package/dist/serialization/types/ToolMessage.js +35 -0
- package/dist/serialization/types/ToolReturnMessage.d.ts +19 -0
- package/dist/serialization/types/ToolReturnMessage.js +40 -0
- package/dist/serialization/types/ToolReturnMessageStatus.d.ts +10 -0
- package/dist/serialization/types/ToolReturnMessageStatus.js +31 -0
- package/dist/serialization/types/ToolRuleType.d.ts +10 -0
- package/dist/serialization/types/ToolRuleType.js +38 -0
- package/dist/serialization/types/UsageStatistics.d.ts +14 -0
- package/dist/serialization/types/UsageStatistics.js +35 -0
- package/dist/serialization/types/User.d.ts +16 -0
- package/dist/serialization/types/User.js +37 -0
- package/dist/serialization/types/UserCreate.d.ts +12 -0
- package/dist/serialization/types/UserCreate.js +33 -0
- package/dist/serialization/types/UserMessageInput.d.ts +15 -0
- package/dist/serialization/types/UserMessageInput.js +36 -0
- package/dist/serialization/types/UserMessageInputContent.d.ts +10 -0
- package/dist/serialization/types/UserMessageInputContent.js +34 -0
- package/dist/serialization/types/UserMessageOutput.d.ts +14 -0
- package/dist/serialization/types/UserMessageOutput.js +35 -0
- package/dist/serialization/types/UserUpdate.d.ts +13 -0
- package/dist/serialization/types/UserUpdate.js +34 -0
- package/dist/serialization/types/ValidationError.d.ts +15 -0
- package/dist/serialization/types/ValidationError.js +36 -0
- package/dist/serialization/types/ValidationErrorLocItem.d.ts +10 -0
- package/dist/serialization/types/ValidationErrorLocItem.js +31 -0
- package/dist/serialization/types/index.d.ts +114 -0
- package/dist/serialization/types/index.js +130 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -2
- package/reference.md +172 -89
- package/serialization/index.d.ts +2 -0
- package/serialization/index.js +18 -0
- package/serialization/resources/agents/client/getAgentMemoryBlocks.d.ts +11 -0
- package/serialization/resources/agents/client/getAgentMemoryBlocks.js +32 -0
- package/serialization/resources/agents/client/index.d.ts +3 -0
- package/serialization/resources/agents/client/index.js +32 -0
- package/serialization/resources/agents/client/list.d.ts +11 -0
- package/serialization/resources/agents/client/list.js +32 -0
- package/serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +12 -0
- package/serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.js +33 -0
- package/serialization/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +12 -0
- package/serialization/resources/agents/client/requests/AgentsCreateVersionRequest.js +33 -0
- package/serialization/resources/agents/client/requests/AgentsMigrateRequest.d.ts +14 -0
- package/serialization/resources/agents/client/requests/AgentsMigrateRequest.js +35 -0
- package/serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +18 -0
- package/serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js +39 -0
- package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +41 -0
- package/serialization/resources/agents/client/requests/CreateAgentRequest.js +64 -0
- package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +27 -0
- package/serialization/resources/agents/client/requests/UpdateAgent.js +48 -0
- package/serialization/resources/agents/client/requests/index.d.ts +6 -0
- package/serialization/resources/agents/client/requests/index.js +15 -0
- package/serialization/resources/agents/index.d.ts +3 -0
- package/serialization/resources/agents/index.js +19 -0
- package/serialization/resources/agents/resources/archivalMemory/client/create.d.ts +11 -0
- package/serialization/resources/agents/resources/archivalMemory/client/create.js +32 -0
- package/serialization/resources/agents/resources/archivalMemory/client/index.d.ts +3 -0
- package/serialization/resources/agents/resources/archivalMemory/client/index.js +32 -0
- package/serialization/resources/agents/resources/archivalMemory/client/list.d.ts +11 -0
- package/serialization/resources/agents/resources/archivalMemory/client/list.js +32 -0
- package/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.d.ts +12 -0
- package/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.js +33 -0
- package/serialization/resources/agents/resources/archivalMemory/client/requests/index.d.ts +1 -0
- package/serialization/resources/agents/resources/archivalMemory/client/requests/index.js +5 -0
- package/serialization/resources/agents/resources/archivalMemory/index.d.ts +1 -0
- package/serialization/resources/agents/resources/archivalMemory/index.js +17 -0
- package/serialization/resources/agents/resources/index.d.ts +8 -0
- package/serialization/resources/agents/resources/index.js +37 -0
- package/serialization/resources/agents/resources/memory/index.d.ts +1 -0
- package/serialization/resources/agents/resources/memory/index.js +17 -0
- package/serialization/resources/agents/resources/memory/resources/index.d.ts +1 -0
- package/serialization/resources/agents/resources/memory/resources/index.js +27 -0
- package/serialization/resources/agents/resources/memory/resources/messages/client/index.d.ts +1 -0
- package/serialization/resources/agents/resources/memory/resources/messages/client/index.js +27 -0
- package/serialization/resources/agents/resources/memory/resources/messages/client/listInContext.d.ts +11 -0
- package/serialization/resources/agents/resources/memory/resources/messages/client/listInContext.js +32 -0
- package/serialization/resources/agents/resources/memory/resources/messages/index.d.ts +1 -0
- package/serialization/resources/agents/resources/memory/resources/messages/index.js +17 -0
- package/serialization/resources/agents/resources/messages/client/index.d.ts +1 -0
- package/serialization/resources/agents/resources/messages/client/index.js +17 -0
- package/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +17 -0
- package/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.js +38 -0
- package/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +18 -0
- package/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.js +39 -0
- package/serialization/resources/agents/resources/messages/client/requests/index.d.ts +2 -0
- package/serialization/resources/agents/resources/messages/client/requests/index.js +7 -0
- package/serialization/resources/agents/resources/messages/index.d.ts +2 -0
- package/serialization/resources/agents/resources/messages/index.js +18 -0
- package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +38 -0
- package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +51 -0
- package/serialization/resources/agents/resources/messages/types/MessagesListResponse.d.ts +12 -0
- package/serialization/resources/agents/resources/messages/types/MessagesListResponse.js +36 -0
- package/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +34 -0
- package/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.js +49 -0
- package/serialization/resources/agents/resources/messages/types/index.d.ts +3 -0
- package/serialization/resources/agents/resources/messages/types/index.js +19 -0
- package/serialization/resources/agents/resources/sources/client/get.d.ts +11 -0
- package/serialization/resources/agents/resources/sources/client/get.js +32 -0
- package/serialization/resources/agents/resources/sources/client/index.d.ts +1 -0
- package/serialization/resources/agents/resources/sources/client/index.js +27 -0
- package/serialization/resources/agents/resources/sources/index.d.ts +1 -0
- package/serialization/resources/agents/resources/sources/index.js +17 -0
- package/serialization/resources/agents/resources/tools/client/index.d.ts +1 -0
- package/serialization/resources/agents/resources/tools/client/index.js +27 -0
- package/serialization/resources/agents/resources/tools/client/list.d.ts +11 -0
- package/serialization/resources/agents/resources/tools/client/list.js +32 -0
- package/serialization/resources/agents/resources/tools/index.d.ts +1 -0
- package/serialization/resources/agents/resources/tools/index.js +17 -0
- package/serialization/resources/agents/types/AgentsGetAgentVariablesResponse.d.ts +12 -0
- package/serialization/resources/agents/types/AgentsGetAgentVariablesResponse.js +33 -0
- package/serialization/resources/agents/types/AgentsMigrateResponse.d.ts +12 -0
- package/serialization/resources/agents/types/AgentsMigrateResponse.js +33 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +10 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.js +31 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +22 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.js +43 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +14 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.js +35 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts +10 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js +31 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +15 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js +36 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts +10 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js +31 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts +10 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js +31 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts +12 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.js +33 -0
- package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +14 -0
- package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +35 -0
- package/serialization/resources/agents/types/UpdateAgentToolRulesItem.d.ts +14 -0
- package/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +35 -0
- package/serialization/resources/agents/types/index.d.ts +12 -0
- package/serialization/resources/agents/types/index.js +28 -0
- package/serialization/resources/blocks/client/index.d.ts +1 -0
- package/serialization/resources/blocks/client/index.js +27 -0
- package/serialization/resources/blocks/client/list.d.ts +11 -0
- package/serialization/resources/blocks/client/list.js +32 -0
- package/serialization/resources/blocks/index.d.ts +1 -0
- package/serialization/resources/blocks/index.js +17 -0
- package/serialization/resources/index.d.ts +10 -0
- package/serialization/resources/index.js +39 -0
- package/serialization/resources/jobs/client/index.d.ts +2 -0
- package/serialization/resources/jobs/client/index.js +28 -0
- package/serialization/resources/jobs/client/list.d.ts +11 -0
- package/serialization/resources/jobs/client/list.js +32 -0
- package/serialization/resources/jobs/client/listActive.d.ts +11 -0
- package/serialization/resources/jobs/client/listActive.js +32 -0
- package/serialization/resources/jobs/index.d.ts +1 -0
- package/serialization/resources/jobs/index.js +17 -0
- package/serialization/resources/models/client/index.d.ts +2 -0
- package/serialization/resources/models/client/index.js +28 -0
- package/serialization/resources/models/client/listEmbeddingModels.d.ts +11 -0
- package/serialization/resources/models/client/listEmbeddingModels.js +32 -0
- package/serialization/resources/models/client/listLlms.d.ts +11 -0
- package/serialization/resources/models/client/listLlms.js +32 -0
- package/serialization/resources/models/index.d.ts +1 -0
- package/serialization/resources/models/index.js +17 -0
- package/serialization/resources/sources/client/getByName.d.ts +9 -0
- package/serialization/resources/sources/client/getByName.js +31 -0
- package/serialization/resources/sources/client/index.d.ts +3 -0
- package/serialization/resources/sources/client/index.js +32 -0
- package/serialization/resources/sources/client/list.d.ts +11 -0
- package/serialization/resources/sources/client/list.js +32 -0
- package/serialization/resources/sources/client/requests/SourceCreate.d.ts +16 -0
- package/serialization/resources/sources/client/requests/SourceCreate.js +37 -0
- package/serialization/resources/sources/client/requests/SourceUpdate.d.ts +16 -0
- package/serialization/resources/sources/client/requests/SourceUpdate.js +37 -0
- package/serialization/resources/sources/client/requests/index.d.ts +2 -0
- package/serialization/resources/sources/client/requests/index.js +7 -0
- package/serialization/resources/sources/index.d.ts +2 -0
- package/serialization/resources/sources/index.js +18 -0
- package/serialization/resources/sources/resources/files/client/index.d.ts +1 -0
- package/serialization/resources/sources/resources/files/client/index.js +27 -0
- package/serialization/resources/sources/resources/files/client/list.d.ts +11 -0
- package/serialization/resources/sources/resources/files/client/list.js +32 -0
- package/serialization/resources/sources/resources/files/index.d.ts +1 -0
- package/serialization/resources/sources/resources/files/index.js +17 -0
- package/serialization/resources/sources/resources/index.d.ts +2 -0
- package/serialization/resources/sources/resources/index.js +28 -0
- package/serialization/resources/sources/resources/passages/client/index.d.ts +1 -0
- package/serialization/resources/sources/resources/passages/client/index.js +27 -0
- package/serialization/resources/sources/resources/passages/client/list.d.ts +11 -0
- package/serialization/resources/sources/resources/passages/client/list.js +32 -0
- package/serialization/resources/sources/resources/passages/index.d.ts +1 -0
- package/serialization/resources/sources/resources/passages/index.js +17 -0
- package/serialization/resources/tools/client/addBaseTool.d.ts +11 -0
- package/serialization/resources/tools/client/addBaseTool.js +32 -0
- package/serialization/resources/tools/client/getByName.d.ts +9 -0
- package/serialization/resources/tools/client/getByName.js +31 -0
- package/serialization/resources/tools/client/index.d.ts +6 -0
- package/serialization/resources/tools/client/index.js +35 -0
- package/serialization/resources/tools/client/list.d.ts +11 -0
- package/serialization/resources/tools/client/list.js +32 -0
- package/serialization/resources/tools/client/listComposioActionsByApp.d.ts +11 -0
- package/serialization/resources/tools/client/listComposioActionsByApp.js +32 -0
- package/serialization/resources/tools/client/listComposioApps.d.ts +11 -0
- package/serialization/resources/tools/client/listComposioApps.js +32 -0
- package/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +15 -0
- package/serialization/resources/tools/client/requests/ToolRunFromSource.js +36 -0
- package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +18 -0
- package/serialization/resources/tools/client/requests/ToolUpdate.js +39 -0
- package/serialization/resources/tools/client/requests/index.d.ts +2 -0
- package/serialization/resources/tools/client/requests/index.js +7 -0
- package/serialization/resources/tools/index.d.ts +1 -0
- package/serialization/resources/tools/index.js +17 -0
- package/serialization/types/ActionModel.d.ts +23 -0
- package/serialization/types/ActionModel.js +44 -0
- package/serialization/types/ActionParametersModel.d.ts +15 -0
- package/serialization/types/ActionParametersModel.js +36 -0
- package/serialization/types/ActionResponseModel.d.ts +15 -0
- package/serialization/types/ActionResponseModel.js +36 -0
- package/serialization/types/AgentEnvironmentVariable.d.ts +20 -0
- package/serialization/types/AgentEnvironmentVariable.js +41 -0
- package/serialization/types/AgentState.d.ts +38 -0
- package/serialization/types/AgentState.js +59 -0
- package/serialization/types/AgentStateToolRulesItem.d.ts +14 -0
- package/serialization/types/AgentStateToolRulesItem.js +35 -0
- package/serialization/types/AgentType.d.ts +10 -0
- package/serialization/types/AgentType.js +37 -0
- package/serialization/types/AppAuthScheme.d.ts +23 -0
- package/serialization/types/AppAuthScheme.js +44 -0
- package/serialization/types/AppAuthSchemeAuthMode.d.ts +10 -0
- package/serialization/types/AppAuthSchemeAuthMode.js +31 -0
- package/serialization/types/AppModel.d.ts +28 -0
- package/serialization/types/AppModel.js +51 -0
- package/serialization/types/ArchivalMemorySummary.d.ts +12 -0
- package/serialization/types/ArchivalMemorySummary.js +33 -0
- package/serialization/types/AssistantFile.d.ts +15 -0
- package/serialization/types/AssistantFile.js +36 -0
- package/serialization/types/AssistantMessageInput.d.ts +16 -0
- package/serialization/types/AssistantMessageInput.js +37 -0
- package/serialization/types/AssistantMessageOutput.d.ts +14 -0
- package/serialization/types/AssistantMessageOutput.js +35 -0
- package/serialization/types/AuthRequest.d.ts +12 -0
- package/serialization/types/AuthRequest.js +33 -0
- package/serialization/types/AuthResponse.d.ts +13 -0
- package/serialization/types/AuthResponse.js +34 -0
- package/serialization/types/AuthSchemeField.d.ts +19 -0
- package/serialization/types/AuthSchemeField.js +40 -0
- package/serialization/types/Block.d.ts +21 -0
- package/serialization/types/Block.js +42 -0
- package/serialization/types/BlockUpdate.d.ts +18 -0
- package/serialization/types/BlockUpdate.js +39 -0
- package/serialization/types/ChatCompletionRequest.d.ts +38 -0
- package/serialization/types/ChatCompletionRequest.js +59 -0
- package/serialization/types/ChatCompletionRequestFunctionCall.d.ts +11 -0
- package/serialization/types/ChatCompletionRequestFunctionCall.js +36 -0
- package/serialization/types/ChatCompletionRequestMessagesItem.d.ts +14 -0
- package/serialization/types/ChatCompletionRequestMessagesItem.js +35 -0
- package/serialization/types/ChatCompletionRequestStop.d.ts +10 -0
- package/serialization/types/ChatCompletionRequestStop.js +34 -0
- package/serialization/types/ChatCompletionRequestToolChoice.d.ts +11 -0
- package/serialization/types/ChatCompletionRequestToolChoice.js +37 -0
- package/serialization/types/ChatCompletionResponse.d.ts +20 -0
- package/serialization/types/ChatCompletionResponse.js +41 -0
- package/serialization/types/ChildToolRule.d.ts +15 -0
- package/serialization/types/ChildToolRule.js +36 -0
- package/serialization/types/Choice.d.ts +18 -0
- package/serialization/types/Choice.js +41 -0
- package/serialization/types/ConditionalToolRule.d.ts +17 -0
- package/serialization/types/ConditionalToolRule.js +38 -0
- package/serialization/types/ConflictErrorBody.d.ts +12 -0
- package/serialization/types/ConflictErrorBody.js +33 -0
- package/serialization/types/ContextWindowOverview.d.ts +30 -0
- package/serialization/types/ContextWindowOverview.js +51 -0
- package/serialization/types/CreateAssistantFileRequest.d.ts +12 -0
- package/serialization/types/CreateAssistantFileRequest.js +33 -0
- package/serialization/types/CreateAssistantRequest.d.ts +19 -0
- package/serialization/types/CreateAssistantRequest.js +40 -0
- package/serialization/types/CreateBlock.d.ts +18 -0
- package/serialization/types/CreateBlock.js +39 -0
- package/serialization/types/DeleteAssistantFileResponse.d.ts +14 -0
- package/serialization/types/DeleteAssistantFileResponse.js +35 -0
- package/serialization/types/DeleteAssistantResponse.d.ts +14 -0
- package/serialization/types/DeleteAssistantResponse.js +35 -0
- package/serialization/types/E2BSandboxConfig.d.ts +14 -0
- package/serialization/types/E2BSandboxConfig.js +35 -0
- package/serialization/types/EmbeddingConfig.d.ts +21 -0
- package/serialization/types/EmbeddingConfig.js +42 -0
- package/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +10 -0
- package/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +49 -0
- package/serialization/types/FileMetadata.d.ts +22 -0
- package/serialization/types/FileMetadata.js +43 -0
- package/serialization/types/FunctionCallInput.d.ts +12 -0
- package/serialization/types/FunctionCallInput.js +33 -0
- package/serialization/types/FunctionCallOutput.d.ts +13 -0
- package/serialization/types/FunctionCallOutput.js +34 -0
- package/serialization/types/FunctionSchema.d.ts +14 -0
- package/serialization/types/FunctionSchema.js +35 -0
- package/serialization/types/Health.d.ts +13 -0
- package/serialization/types/Health.js +34 -0
- package/serialization/types/HttpValidationError.d.ts +13 -0
- package/serialization/types/HttpValidationError.js +34 -0
- package/serialization/types/InitToolRule.d.ts +14 -0
- package/serialization/types/InitToolRule.js +35 -0
- package/serialization/types/InternalServerErrorBody.d.ts +12 -0
- package/serialization/types/InternalServerErrorBody.js +33 -0
- package/serialization/types/Job.d.ts +20 -0
- package/serialization/types/Job.js +41 -0
- package/serialization/types/JobStatus.d.ts +10 -0
- package/serialization/types/JobStatus.js +31 -0
- package/serialization/types/LettaRequest.d.ts +16 -0
- package/serialization/types/LettaRequest.js +37 -0
- package/serialization/types/LettaResponse.d.ts +15 -0
- package/serialization/types/LettaResponse.js +36 -0
- package/serialization/types/LettaResponseMessagesItem.d.ts +34 -0
- package/serialization/types/LettaResponseMessagesItem.js +49 -0
- package/serialization/types/LettaSchemasLettaMessageToolCall.d.ts +14 -0
- package/serialization/types/LettaSchemasLettaMessageToolCall.js +35 -0
- package/serialization/types/LettaSchemasMessageMessage.d.ts +25 -0
- package/serialization/types/LettaSchemasMessageMessage.js +46 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.d.ts +14 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.js +35 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.d.ts +15 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.js +36 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.d.ts +13 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.js +34 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +17 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.js +38 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.d.ts +15 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.js +36 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.d.ts +13 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.js +34 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.d.ts +15 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.js +36 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.d.ts +15 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.js +36 -0
- package/serialization/types/LettaSchemasToolTool.d.ts +22 -0
- package/serialization/types/LettaSchemasToolTool.js +43 -0
- package/serialization/types/LettaUsageStatistics.d.ts +15 -0
- package/serialization/types/LettaUsageStatistics.js +36 -0
- package/serialization/types/LlmConfig.d.ts +19 -0
- package/serialization/types/LlmConfig.js +40 -0
- package/serialization/types/LlmConfigModelEndpointType.d.ts +10 -0
- package/serialization/types/LlmConfigModelEndpointType.js +49 -0
- package/serialization/types/LocalSandboxConfig.d.ts +14 -0
- package/serialization/types/LocalSandboxConfig.js +35 -0
- package/serialization/types/LogProbToken.d.ts +14 -0
- package/serialization/types/LogProbToken.js +35 -0
- package/serialization/types/Memory.d.ts +14 -0
- package/serialization/types/Memory.js +35 -0
- package/serialization/types/MessageContentLogProb.d.ts +16 -0
- package/serialization/types/MessageContentLogProb.js +37 -0
- package/serialization/types/MessageCreate.d.ts +15 -0
- package/serialization/types/MessageCreate.js +36 -0
- package/serialization/types/MessageCreateRole.d.ts +10 -0
- package/serialization/types/MessageCreateRole.js +31 -0
- package/serialization/types/MessageRole.d.ts +10 -0
- package/serialization/types/MessageRole.js +31 -0
- package/serialization/types/NotFoundErrorBody.d.ts +12 -0
- package/serialization/types/NotFoundErrorBody.js +33 -0
- package/serialization/types/NotFoundErrorBodyMessage.d.ts +10 -0
- package/serialization/types/NotFoundErrorBodyMessage.js +34 -0
- package/serialization/types/OpenAiAssistant.d.ts +21 -0
- package/serialization/types/OpenAiAssistant.js +42 -0
- package/serialization/types/Organization.d.ts +14 -0
- package/serialization/types/Organization.js +35 -0
- package/serialization/types/OrganizationCreate.d.ts +12 -0
- package/serialization/types/OrganizationCreate.js +33 -0
- package/serialization/types/Passage.d.ts +25 -0
- package/serialization/types/Passage.js +46 -0
- package/serialization/types/ReasoningMessage.d.ts +14 -0
- package/serialization/types/ReasoningMessage.js +35 -0
- package/serialization/types/RecallMemorySummary.d.ts +12 -0
- package/serialization/types/RecallMemorySummary.js +33 -0
- package/serialization/types/ResponseFormat.d.ts +12 -0
- package/serialization/types/ResponseFormat.js +33 -0
- package/serialization/types/SandboxConfig.d.ts +19 -0
- package/serialization/types/SandboxConfig.js +40 -0
- package/serialization/types/SandboxConfigCreate.d.ts +13 -0
- package/serialization/types/SandboxConfigCreate.js +34 -0
- package/serialization/types/SandboxConfigCreateConfig.d.ts +12 -0
- package/serialization/types/SandboxConfigCreateConfig.js +33 -0
- package/serialization/types/SandboxConfigUpdate.d.ts +13 -0
- package/serialization/types/SandboxConfigUpdate.js +34 -0
- package/serialization/types/SandboxConfigUpdateConfig.d.ts +12 -0
- package/serialization/types/SandboxConfigUpdateConfig.js +33 -0
- package/serialization/types/SandboxEnvironmentVariable.d.ts +20 -0
- package/serialization/types/SandboxEnvironmentVariable.js +41 -0
- package/serialization/types/SandboxEnvironmentVariableCreate.d.ts +14 -0
- package/serialization/types/SandboxEnvironmentVariableCreate.js +35 -0
- package/serialization/types/SandboxEnvironmentVariableUpdate.d.ts +14 -0
- package/serialization/types/SandboxEnvironmentVariableUpdate.js +35 -0
- package/serialization/types/SandboxType.d.ts +10 -0
- package/serialization/types/SandboxType.js +31 -0
- package/serialization/types/Source.d.ts +21 -0
- package/serialization/types/Source.js +42 -0
- package/serialization/types/SystemMessageInput.d.ts +14 -0
- package/serialization/types/SystemMessageInput.js +35 -0
- package/serialization/types/SystemMessageOutput.d.ts +14 -0
- package/serialization/types/SystemMessageOutput.js +35 -0
- package/serialization/types/TerminalToolRule.d.ts +14 -0
- package/serialization/types/TerminalToolRule.js +35 -0
- package/serialization/types/ToolCallDelta.d.ts +14 -0
- package/serialization/types/ToolCallDelta.js +35 -0
- package/serialization/types/ToolCallFunctionOutput.d.ts +13 -0
- package/serialization/types/ToolCallFunctionOutput.js +34 -0
- package/serialization/types/ToolCallMessage.d.ts +15 -0
- package/serialization/types/ToolCallMessage.js +36 -0
- package/serialization/types/ToolCallMessageToolCall.d.ts +12 -0
- package/serialization/types/ToolCallMessageToolCall.js +33 -0
- package/serialization/types/ToolCreate.d.ts +19 -0
- package/serialization/types/ToolCreate.js +40 -0
- package/serialization/types/ToolFunctionChoice.d.ts +14 -0
- package/serialization/types/ToolFunctionChoice.js +35 -0
- package/serialization/types/ToolInput.d.ts +14 -0
- package/serialization/types/ToolInput.js +35 -0
- package/serialization/types/ToolMessage.d.ts +14 -0
- package/serialization/types/ToolMessage.js +35 -0
- package/serialization/types/ToolReturnMessage.d.ts +19 -0
- package/serialization/types/ToolReturnMessage.js +40 -0
- package/serialization/types/ToolReturnMessageStatus.d.ts +10 -0
- package/serialization/types/ToolReturnMessageStatus.js +31 -0
- package/serialization/types/ToolRuleType.d.ts +10 -0
- package/serialization/types/ToolRuleType.js +38 -0
- package/serialization/types/UsageStatistics.d.ts +14 -0
- package/serialization/types/UsageStatistics.js +35 -0
- package/serialization/types/User.d.ts +16 -0
- package/serialization/types/User.js +37 -0
- package/serialization/types/UserCreate.d.ts +12 -0
- package/serialization/types/UserCreate.js +33 -0
- package/serialization/types/UserMessageInput.d.ts +15 -0
- package/serialization/types/UserMessageInput.js +36 -0
- package/serialization/types/UserMessageInputContent.d.ts +10 -0
- package/serialization/types/UserMessageInputContent.js +34 -0
- package/serialization/types/UserMessageOutput.d.ts +14 -0
- package/serialization/types/UserMessageOutput.js +35 -0
- package/serialization/types/UserUpdate.d.ts +13 -0
- package/serialization/types/UserUpdate.js +34 -0
- package/serialization/types/ValidationError.d.ts +15 -0
- package/serialization/types/ValidationError.js +36 -0
- package/serialization/types/ValidationErrorLocItem.d.ts +10 -0
- package/serialization/types/ValidationErrorLocItem.js +31 -0
- package/serialization/types/index.d.ts +114 -0
- package/serialization/types/index.js +130 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirection.d.ts +0 -9
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperator.d.ts +0 -9
- package/core/auth/BasicAuth.d.ts +0 -8
- package/core/auth/BasicAuth.js +0 -26
- package/core/auth/BearerToken.d.ts +0 -5
- package/core/auth/BearerToken.js +0 -15
- package/core/auth/index.d.ts +0 -2
- package/core/auth/index.js +0 -7
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirection.d.ts +0 -9
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperator.d.ts +0 -9
- package/dist/core/auth/BasicAuth.d.ts +0 -8
- package/dist/core/auth/BasicAuth.js +0 -26
- package/dist/core/auth/BearerToken.d.ts +0 -5
- package/dist/core/auth/BearerToken.js +0 -15
- package/dist/core/auth/index.d.ts +0 -2
- package/dist/core/auth/index.js +0 -7
- /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemDirection.js → AgentsSearchDeployedAgentsRequestSearchItemName.js} +0 -0
- /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemOperator.js → AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js} +0 -0
- /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemZero.js → AgentsSearchDeployedAgentsRequestSearchItemVersion.js} +0 -0
- /package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirection.js → api/types/AgentEnvironmentVariable.js} +0 -0
- /package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperator.js → api/types/LettaResponseMessagesItem.js} +0 -0
- /package/dist/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemZero.js → AgentsSearchDeployedAgentsRequestSearchItemName.js} +0 -0
|
@@ -54,6 +54,7 @@ const environments = __importStar(require("../../../../environments"));
|
|
|
54
54
|
const core = __importStar(require("../../../../core"));
|
|
55
55
|
const Letta = __importStar(require("../../../index"));
|
|
56
56
|
const url_join_1 = __importDefault(require("url-join"));
|
|
57
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
57
58
|
const errors = __importStar(require("../../../../errors/index"));
|
|
58
59
|
const Client_1 = require("../resources/context/client/Client");
|
|
59
60
|
const Client_2 = require("../resources/tools/client/Client");
|
|
@@ -64,7 +65,7 @@ const Client_6 = require("../resources/recallMemory/client/Client");
|
|
|
64
65
|
const Client_7 = require("../resources/archivalMemory/client/Client");
|
|
65
66
|
const Client_8 = require("../resources/messages/client/Client");
|
|
66
67
|
class Agents {
|
|
67
|
-
constructor(_options) {
|
|
68
|
+
constructor(_options = {}) {
|
|
68
69
|
this._options = _options;
|
|
69
70
|
}
|
|
70
71
|
get context() {
|
|
@@ -114,7 +115,7 @@ class Agents {
|
|
|
114
115
|
list(request = {}, requestOptions) {
|
|
115
116
|
var _a, _b;
|
|
116
117
|
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
-
const { name, tags,
|
|
118
|
+
const { name, tags, matchAllTags, cursor, limit } = request;
|
|
118
119
|
const _queryParams = {};
|
|
119
120
|
if (name != null) {
|
|
120
121
|
_queryParams["name"] = name;
|
|
@@ -130,10 +131,16 @@ class Agents {
|
|
|
130
131
|
if (matchAllTags != null) {
|
|
131
132
|
_queryParams["match_all_tags"] = matchAllTags.toString();
|
|
132
133
|
}
|
|
134
|
+
if (cursor != null) {
|
|
135
|
+
_queryParams["cursor"] = cursor.toString();
|
|
136
|
+
}
|
|
137
|
+
if (limit != null) {
|
|
138
|
+
_queryParams["limit"] = limit.toString();
|
|
139
|
+
}
|
|
133
140
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
134
141
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/agents/"),
|
|
135
142
|
method: "GET",
|
|
136
|
-
headers: Object.assign(
|
|
143
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
137
144
|
contentType: "application/json",
|
|
138
145
|
queryParameters: _queryParams,
|
|
139
146
|
requestType: "json",
|
|
@@ -142,12 +149,24 @@ class Agents {
|
|
|
142
149
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
143
150
|
});
|
|
144
151
|
if (_response.ok) {
|
|
145
|
-
return _response.body
|
|
152
|
+
return serializers.agents.list.Response.parseOrThrow(_response.body, {
|
|
153
|
+
unrecognizedObjectKeys: "passthrough",
|
|
154
|
+
allowUnrecognizedUnionMembers: true,
|
|
155
|
+
allowUnrecognizedEnumValues: true,
|
|
156
|
+
skipValidation: true,
|
|
157
|
+
breadcrumbsPrefix: ["response"],
|
|
158
|
+
});
|
|
146
159
|
}
|
|
147
160
|
if (_response.error.reason === "status-code") {
|
|
148
161
|
switch (_response.error.statusCode) {
|
|
149
162
|
case 422:
|
|
150
|
-
throw new Letta.UnprocessableEntityError(_response.error.body
|
|
163
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
164
|
+
unrecognizedObjectKeys: "passthrough",
|
|
165
|
+
allowUnrecognizedUnionMembers: true,
|
|
166
|
+
allowUnrecognizedEnumValues: true,
|
|
167
|
+
skipValidation: true,
|
|
168
|
+
breadcrumbsPrefix: ["response"],
|
|
169
|
+
}));
|
|
151
170
|
default:
|
|
152
171
|
throw new errors.LettaError({
|
|
153
172
|
statusCode: _response.error.statusCode,
|
|
@@ -180,7 +199,7 @@ class Agents {
|
|
|
180
199
|
*
|
|
181
200
|
* @example
|
|
182
201
|
* await client.agents.create({
|
|
183
|
-
*
|
|
202
|
+
* memoryBlocks: [{
|
|
184
203
|
* value: "value",
|
|
185
204
|
* label: "label"
|
|
186
205
|
* }]
|
|
@@ -192,21 +211,33 @@ class Agents {
|
|
|
192
211
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
193
212
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/agents/"),
|
|
194
213
|
method: "POST",
|
|
195
|
-
headers: Object.assign(
|
|
214
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
196
215
|
contentType: "application/json",
|
|
197
216
|
requestType: "json",
|
|
198
|
-
body: request,
|
|
217
|
+
body: serializers.CreateAgentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
199
218
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
200
219
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
201
220
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
202
221
|
});
|
|
203
222
|
if (_response.ok) {
|
|
204
|
-
return _response.body
|
|
223
|
+
return serializers.AgentState.parseOrThrow(_response.body, {
|
|
224
|
+
unrecognizedObjectKeys: "passthrough",
|
|
225
|
+
allowUnrecognizedUnionMembers: true,
|
|
226
|
+
allowUnrecognizedEnumValues: true,
|
|
227
|
+
skipValidation: true,
|
|
228
|
+
breadcrumbsPrefix: ["response"],
|
|
229
|
+
});
|
|
205
230
|
}
|
|
206
231
|
if (_response.error.reason === "status-code") {
|
|
207
232
|
switch (_response.error.statusCode) {
|
|
208
233
|
case 422:
|
|
209
|
-
throw new Letta.UnprocessableEntityError(_response.error.body
|
|
234
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
235
|
+
unrecognizedObjectKeys: "passthrough",
|
|
236
|
+
allowUnrecognizedUnionMembers: true,
|
|
237
|
+
allowUnrecognizedEnumValues: true,
|
|
238
|
+
skipValidation: true,
|
|
239
|
+
breadcrumbsPrefix: ["response"],
|
|
240
|
+
}));
|
|
210
241
|
default:
|
|
211
242
|
throw new errors.LettaError({
|
|
212
243
|
statusCode: _response.error.statusCode,
|
|
@@ -246,7 +277,7 @@ class Agents {
|
|
|
246
277
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
247
278
|
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)}`),
|
|
248
279
|
method: "GET",
|
|
249
|
-
headers: Object.assign(
|
|
280
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
250
281
|
contentType: "application/json",
|
|
251
282
|
requestType: "json",
|
|
252
283
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -254,12 +285,24 @@ class Agents {
|
|
|
254
285
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
255
286
|
});
|
|
256
287
|
if (_response.ok) {
|
|
257
|
-
return _response.body
|
|
288
|
+
return serializers.AgentState.parseOrThrow(_response.body, {
|
|
289
|
+
unrecognizedObjectKeys: "passthrough",
|
|
290
|
+
allowUnrecognizedUnionMembers: true,
|
|
291
|
+
allowUnrecognizedEnumValues: true,
|
|
292
|
+
skipValidation: true,
|
|
293
|
+
breadcrumbsPrefix: ["response"],
|
|
294
|
+
});
|
|
258
295
|
}
|
|
259
296
|
if (_response.error.reason === "status-code") {
|
|
260
297
|
switch (_response.error.statusCode) {
|
|
261
298
|
case 422:
|
|
262
|
-
throw new Letta.UnprocessableEntityError(_response.error.body
|
|
299
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
300
|
+
unrecognizedObjectKeys: "passthrough",
|
|
301
|
+
allowUnrecognizedUnionMembers: true,
|
|
302
|
+
allowUnrecognizedEnumValues: true,
|
|
303
|
+
skipValidation: true,
|
|
304
|
+
breadcrumbsPrefix: ["response"],
|
|
305
|
+
}));
|
|
263
306
|
default:
|
|
264
307
|
throw new errors.LettaError({
|
|
265
308
|
statusCode: _response.error.statusCode,
|
|
@@ -299,7 +342,7 @@ class Agents {
|
|
|
299
342
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
300
343
|
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)}`),
|
|
301
344
|
method: "DELETE",
|
|
302
|
-
headers: Object.assign(
|
|
345
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
303
346
|
contentType: "application/json",
|
|
304
347
|
requestType: "json",
|
|
305
348
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -312,7 +355,13 @@ class Agents {
|
|
|
312
355
|
if (_response.error.reason === "status-code") {
|
|
313
356
|
switch (_response.error.statusCode) {
|
|
314
357
|
case 422:
|
|
315
|
-
throw new Letta.UnprocessableEntityError(_response.error.body
|
|
358
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
359
|
+
unrecognizedObjectKeys: "passthrough",
|
|
360
|
+
allowUnrecognizedUnionMembers: true,
|
|
361
|
+
allowUnrecognizedEnumValues: true,
|
|
362
|
+
skipValidation: true,
|
|
363
|
+
breadcrumbsPrefix: ["response"],
|
|
364
|
+
}));
|
|
316
365
|
default:
|
|
317
366
|
throw new errors.LettaError({
|
|
318
367
|
statusCode: _response.error.statusCode,
|
|
@@ -353,21 +402,33 @@ class Agents {
|
|
|
353
402
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
354
403
|
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)}`),
|
|
355
404
|
method: "PATCH",
|
|
356
|
-
headers: Object.assign(
|
|
405
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
357
406
|
contentType: "application/json",
|
|
358
407
|
requestType: "json",
|
|
359
|
-
body: request,
|
|
408
|
+
body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
360
409
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
361
410
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
362
411
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
363
412
|
});
|
|
364
413
|
if (_response.ok) {
|
|
365
|
-
return _response.body
|
|
414
|
+
return serializers.AgentState.parseOrThrow(_response.body, {
|
|
415
|
+
unrecognizedObjectKeys: "passthrough",
|
|
416
|
+
allowUnrecognizedUnionMembers: true,
|
|
417
|
+
allowUnrecognizedEnumValues: true,
|
|
418
|
+
skipValidation: true,
|
|
419
|
+
breadcrumbsPrefix: ["response"],
|
|
420
|
+
});
|
|
366
421
|
}
|
|
367
422
|
if (_response.error.reason === "status-code") {
|
|
368
423
|
switch (_response.error.statusCode) {
|
|
369
424
|
case 422:
|
|
370
|
-
throw new Letta.UnprocessableEntityError(_response.error.body
|
|
425
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
426
|
+
unrecognizedObjectKeys: "passthrough",
|
|
427
|
+
allowUnrecognizedUnionMembers: true,
|
|
428
|
+
allowUnrecognizedEnumValues: true,
|
|
429
|
+
skipValidation: true,
|
|
430
|
+
breadcrumbsPrefix: ["response"],
|
|
431
|
+
}));
|
|
371
432
|
default:
|
|
372
433
|
throw new errors.LettaError({
|
|
373
434
|
statusCode: _response.error.statusCode,
|
|
@@ -408,7 +469,7 @@ class Agents {
|
|
|
408
469
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
409
470
|
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)}/memory/block/${encodeURIComponent(blockLabel)}`),
|
|
410
471
|
method: "GET",
|
|
411
|
-
headers: Object.assign(
|
|
472
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
412
473
|
contentType: "application/json",
|
|
413
474
|
requestType: "json",
|
|
414
475
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -416,12 +477,24 @@ class Agents {
|
|
|
416
477
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
417
478
|
});
|
|
418
479
|
if (_response.ok) {
|
|
419
|
-
return _response.body
|
|
480
|
+
return serializers.Block.parseOrThrow(_response.body, {
|
|
481
|
+
unrecognizedObjectKeys: "passthrough",
|
|
482
|
+
allowUnrecognizedUnionMembers: true,
|
|
483
|
+
allowUnrecognizedEnumValues: true,
|
|
484
|
+
skipValidation: true,
|
|
485
|
+
breadcrumbsPrefix: ["response"],
|
|
486
|
+
});
|
|
420
487
|
}
|
|
421
488
|
if (_response.error.reason === "status-code") {
|
|
422
489
|
switch (_response.error.statusCode) {
|
|
423
490
|
case 422:
|
|
424
|
-
throw new Letta.UnprocessableEntityError(_response.error.body
|
|
491
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
492
|
+
unrecognizedObjectKeys: "passthrough",
|
|
493
|
+
allowUnrecognizedUnionMembers: true,
|
|
494
|
+
allowUnrecognizedEnumValues: true,
|
|
495
|
+
skipValidation: true,
|
|
496
|
+
breadcrumbsPrefix: ["response"],
|
|
497
|
+
}));
|
|
425
498
|
default:
|
|
426
499
|
throw new errors.LettaError({
|
|
427
500
|
statusCode: _response.error.statusCode,
|
|
@@ -463,21 +536,33 @@ class Agents {
|
|
|
463
536
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
464
537
|
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)}/memory/block/${encodeURIComponent(blockLabel)}`),
|
|
465
538
|
method: "PATCH",
|
|
466
|
-
headers: Object.assign(
|
|
539
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
467
540
|
contentType: "application/json",
|
|
468
541
|
requestType: "json",
|
|
469
|
-
body: request,
|
|
542
|
+
body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
470
543
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
471
544
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
472
545
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
473
546
|
});
|
|
474
547
|
if (_response.ok) {
|
|
475
|
-
return _response.body
|
|
548
|
+
return serializers.Block.parseOrThrow(_response.body, {
|
|
549
|
+
unrecognizedObjectKeys: "passthrough",
|
|
550
|
+
allowUnrecognizedUnionMembers: true,
|
|
551
|
+
allowUnrecognizedEnumValues: true,
|
|
552
|
+
skipValidation: true,
|
|
553
|
+
breadcrumbsPrefix: ["response"],
|
|
554
|
+
});
|
|
476
555
|
}
|
|
477
556
|
if (_response.error.reason === "status-code") {
|
|
478
557
|
switch (_response.error.statusCode) {
|
|
479
558
|
case 422:
|
|
480
|
-
throw new Letta.UnprocessableEntityError(_response.error.body
|
|
559
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
560
|
+
unrecognizedObjectKeys: "passthrough",
|
|
561
|
+
allowUnrecognizedUnionMembers: true,
|
|
562
|
+
allowUnrecognizedEnumValues: true,
|
|
563
|
+
skipValidation: true,
|
|
564
|
+
breadcrumbsPrefix: ["response"],
|
|
565
|
+
}));
|
|
481
566
|
default:
|
|
482
567
|
throw new errors.LettaError({
|
|
483
568
|
statusCode: _response.error.statusCode,
|
|
@@ -517,7 +602,7 @@ class Agents {
|
|
|
517
602
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
518
603
|
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)}/memory/block`),
|
|
519
604
|
method: "GET",
|
|
520
|
-
headers: Object.assign(
|
|
605
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
521
606
|
contentType: "application/json",
|
|
522
607
|
requestType: "json",
|
|
523
608
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -525,12 +610,24 @@ class Agents {
|
|
|
525
610
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
526
611
|
});
|
|
527
612
|
if (_response.ok) {
|
|
528
|
-
return _response.body
|
|
613
|
+
return serializers.agents.getAgentMemoryBlocks.Response.parseOrThrow(_response.body, {
|
|
614
|
+
unrecognizedObjectKeys: "passthrough",
|
|
615
|
+
allowUnrecognizedUnionMembers: true,
|
|
616
|
+
allowUnrecognizedEnumValues: true,
|
|
617
|
+
skipValidation: true,
|
|
618
|
+
breadcrumbsPrefix: ["response"],
|
|
619
|
+
});
|
|
529
620
|
}
|
|
530
621
|
if (_response.error.reason === "status-code") {
|
|
531
622
|
switch (_response.error.statusCode) {
|
|
532
623
|
case 422:
|
|
533
|
-
throw new Letta.UnprocessableEntityError(_response.error.body
|
|
624
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
625
|
+
unrecognizedObjectKeys: "passthrough",
|
|
626
|
+
allowUnrecognizedUnionMembers: true,
|
|
627
|
+
allowUnrecognizedEnumValues: true,
|
|
628
|
+
skipValidation: true,
|
|
629
|
+
breadcrumbsPrefix: ["response"],
|
|
630
|
+
}));
|
|
534
631
|
default:
|
|
535
632
|
throw new errors.LettaError({
|
|
536
633
|
statusCode: _response.error.statusCode,
|
|
@@ -553,67 +650,6 @@ class Agents {
|
|
|
553
650
|
}
|
|
554
651
|
});
|
|
555
652
|
}
|
|
556
|
-
/**
|
|
557
|
-
* Asynchronously process a user message and return a job ID.
|
|
558
|
-
* The actual processing happens in the background, and the status can be checked using the job ID.
|
|
559
|
-
*
|
|
560
|
-
* @param {string} agentId
|
|
561
|
-
* @param {Letta.LettaRequest} request
|
|
562
|
-
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
563
|
-
*
|
|
564
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
565
|
-
*
|
|
566
|
-
* @example
|
|
567
|
-
* await client.agents.createAgentMessageAsync("agent_id", {
|
|
568
|
-
* messages: [{
|
|
569
|
-
* role: "user",
|
|
570
|
-
* text: "text"
|
|
571
|
-
* }]
|
|
572
|
-
* })
|
|
573
|
-
*/
|
|
574
|
-
createAgentMessageAsync(agentId, request, requestOptions) {
|
|
575
|
-
var _a, _b;
|
|
576
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
577
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
578
|
-
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)}/messages/async`),
|
|
579
|
-
method: "POST",
|
|
580
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.2", "User-Agent": "@letta-ai/letta-client/0.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
581
|
-
contentType: "application/json",
|
|
582
|
-
requestType: "json",
|
|
583
|
-
body: request,
|
|
584
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
585
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
586
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
587
|
-
});
|
|
588
|
-
if (_response.ok) {
|
|
589
|
-
return _response.body;
|
|
590
|
-
}
|
|
591
|
-
if (_response.error.reason === "status-code") {
|
|
592
|
-
switch (_response.error.statusCode) {
|
|
593
|
-
case 422:
|
|
594
|
-
throw new Letta.UnprocessableEntityError(_response.error.body);
|
|
595
|
-
default:
|
|
596
|
-
throw new errors.LettaError({
|
|
597
|
-
statusCode: _response.error.statusCode,
|
|
598
|
-
body: _response.error.body,
|
|
599
|
-
});
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
switch (_response.error.reason) {
|
|
603
|
-
case "non-json":
|
|
604
|
-
throw new errors.LettaError({
|
|
605
|
-
statusCode: _response.error.statusCode,
|
|
606
|
-
body: _response.error.rawBody,
|
|
607
|
-
});
|
|
608
|
-
case "timeout":
|
|
609
|
-
throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/agents/{agent_id}/messages/async.");
|
|
610
|
-
case "unknown":
|
|
611
|
-
throw new errors.LettaError({
|
|
612
|
-
message: _response.error.errorMessage,
|
|
613
|
-
});
|
|
614
|
-
}
|
|
615
|
-
});
|
|
616
|
-
}
|
|
617
653
|
/**
|
|
618
654
|
* Search deployed agents
|
|
619
655
|
*
|
|
@@ -629,10 +665,12 @@ class Agents {
|
|
|
629
665
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
630
666
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/agents/search"),
|
|
631
667
|
method: "POST",
|
|
632
|
-
headers: Object.assign(
|
|
668
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
633
669
|
contentType: "application/json",
|
|
634
670
|
requestType: "json",
|
|
635
|
-
body: request,
|
|
671
|
+
body: serializers.AgentsSearchDeployedAgentsRequest.jsonOrThrow(request, {
|
|
672
|
+
unrecognizedObjectKeys: "strip",
|
|
673
|
+
}),
|
|
636
674
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
637
675
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
638
676
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -685,11 +723,11 @@ class Agents {
|
|
|
685
723
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
686
724
|
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`),
|
|
687
725
|
method: "POST",
|
|
688
|
-
headers: Object.assign(
|
|
726
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
689
727
|
contentType: "application/json",
|
|
690
728
|
queryParameters: _queryParams,
|
|
691
729
|
requestType: "json",
|
|
692
|
-
body: _body,
|
|
730
|
+
body: serializers.AgentsCreateVersionRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
693
731
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
694
732
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
695
733
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -738,8 +776,8 @@ class Agents {
|
|
|
738
776
|
*
|
|
739
777
|
* @example
|
|
740
778
|
* await client.agents.migrate("agent_id", {
|
|
741
|
-
*
|
|
742
|
-
*
|
|
779
|
+
* toTemplate: "to_template",
|
|
780
|
+
* preserveCoreMemories: true
|
|
743
781
|
* })
|
|
744
782
|
*/
|
|
745
783
|
migrate(agentId, request, requestOptions) {
|
|
@@ -748,23 +786,35 @@ class Agents {
|
|
|
748
786
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
749
787
|
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`),
|
|
750
788
|
method: "POST",
|
|
751
|
-
headers: Object.assign(
|
|
789
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
752
790
|
contentType: "application/json",
|
|
753
791
|
requestType: "json",
|
|
754
|
-
body: request,
|
|
792
|
+
body: serializers.AgentsMigrateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
755
793
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
756
794
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
757
795
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
758
796
|
});
|
|
759
797
|
if (_response.ok) {
|
|
760
|
-
return _response.body
|
|
798
|
+
return serializers.AgentsMigrateResponse.parseOrThrow(_response.body, {
|
|
799
|
+
unrecognizedObjectKeys: "passthrough",
|
|
800
|
+
allowUnrecognizedUnionMembers: true,
|
|
801
|
+
allowUnrecognizedEnumValues: true,
|
|
802
|
+
skipValidation: true,
|
|
803
|
+
breadcrumbsPrefix: ["response"],
|
|
804
|
+
});
|
|
761
805
|
}
|
|
762
806
|
if (_response.error.reason === "status-code") {
|
|
763
807
|
switch (_response.error.statusCode) {
|
|
764
808
|
case 404:
|
|
765
809
|
throw new Letta.NotFoundError(_response.error.body);
|
|
766
810
|
case 409:
|
|
767
|
-
throw new Letta.ConflictError(_response.error.body
|
|
811
|
+
throw new Letta.ConflictError(serializers.ConflictErrorBody.parseOrThrow(_response.error.body, {
|
|
812
|
+
unrecognizedObjectKeys: "passthrough",
|
|
813
|
+
allowUnrecognizedUnionMembers: true,
|
|
814
|
+
allowUnrecognizedEnumValues: true,
|
|
815
|
+
skipValidation: true,
|
|
816
|
+
breadcrumbsPrefix: ["response"],
|
|
817
|
+
}));
|
|
768
818
|
case 500:
|
|
769
819
|
throw new Letta.InternalServerError(_response.error.body);
|
|
770
820
|
default:
|
|
@@ -808,10 +858,12 @@ class Agents {
|
|
|
808
858
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
809
859
|
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`),
|
|
810
860
|
method: "POST",
|
|
811
|
-
headers: Object.assign(
|
|
861
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
812
862
|
contentType: "application/json",
|
|
813
863
|
requestType: "json",
|
|
814
|
-
body: request,
|
|
864
|
+
body: serializers.AgentsCreateTemplateFromAgentRequest.jsonOrThrow(request, {
|
|
865
|
+
unrecognizedObjectKeys: "strip",
|
|
866
|
+
}),
|
|
815
867
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
816
868
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
817
869
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -864,7 +916,7 @@ class Agents {
|
|
|
864
916
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
865
917
|
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)}/variables`),
|
|
866
918
|
method: "GET",
|
|
867
|
-
headers: Object.assign(
|
|
919
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
868
920
|
contentType: "application/json",
|
|
869
921
|
requestType: "json",
|
|
870
922
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -872,7 +924,13 @@ class Agents {
|
|
|
872
924
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
873
925
|
});
|
|
874
926
|
if (_response.ok) {
|
|
875
|
-
return _response.body
|
|
927
|
+
return serializers.AgentsGetAgentVariablesResponse.parseOrThrow(_response.body, {
|
|
928
|
+
unrecognizedObjectKeys: "passthrough",
|
|
929
|
+
allowUnrecognizedUnionMembers: true,
|
|
930
|
+
allowUnrecognizedEnumValues: true,
|
|
931
|
+
skipValidation: true,
|
|
932
|
+
breadcrumbsPrefix: ["response"],
|
|
933
|
+
});
|
|
876
934
|
}
|
|
877
935
|
if (_response.error.reason === "status-code") {
|
|
878
936
|
switch (_response.error.statusCode) {
|
|
@@ -900,9 +958,10 @@ class Agents {
|
|
|
900
958
|
}
|
|
901
959
|
});
|
|
902
960
|
}
|
|
903
|
-
|
|
961
|
+
_getCustomAuthorizationHeaders() {
|
|
904
962
|
return __awaiter(this, void 0, void 0, function* () {
|
|
905
|
-
|
|
963
|
+
const tokenValue = yield core.Supplier.get(this._options.token);
|
|
964
|
+
return { Authorization: `Bearer ${tokenValue}` };
|
|
906
965
|
});
|
|
907
966
|
}
|
|
908
967
|
}
|
|
@@ -17,5 +17,13 @@ export interface AgentsListRequest {
|
|
|
17
17
|
/**
|
|
18
18
|
* If True, only returns agents that match ALL given tags. Otherwise, return agents that have ANY of the passed in tags.
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
matchAllTags?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Cursor for pagination
|
|
23
|
+
*/
|
|
24
|
+
cursor?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Limit for pagination
|
|
27
|
+
*/
|
|
28
|
+
limit?: number;
|
|
21
29
|
}
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* toTemplate: "to_template",
|
|
8
|
+
* preserveCoreMemories: true
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
11
|
export interface AgentsMigrateRequest {
|
|
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>;
|
|
15
|
-
|
|
15
|
+
preserveCoreMemories: boolean;
|
|
16
16
|
}
|
|
@@ -8,7 +8,7 @@ import * as Letta from "../../../../index";
|
|
|
8
8
|
*/
|
|
9
9
|
export interface AgentsSearchDeployedAgentsRequest {
|
|
10
10
|
search?: Letta.AgentsSearchDeployedAgentsRequestSearchItem[];
|
|
11
|
-
|
|
11
|
+
projectId?: string;
|
|
12
12
|
combinator?: Letta.AgentsSearchDeployedAgentsRequestCombinator;
|
|
13
13
|
limit?: number;
|
|
14
14
|
offset?: number;
|