@letta-ai/letta-client 0.1.8 → 0.1.11
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 +5 -0
- package/Client.js +5 -0
- package/README.md +9 -9
- package/api/errors/ConflictError.js +17 -7
- package/api/errors/InternalServerError.js +17 -7
- package/api/errors/NotFoundError.js +17 -7
- package/api/errors/UnprocessableEntityError.js +17 -7
- package/api/resources/agents/client/Client.d.ts +4 -7
- package/api/resources/agents/client/Client.js +54 -46
- package/api/resources/agents/client/requests/AgentsListRequest.d.ts +5 -1
- package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +7 -8
- package/api/resources/agents/resources/archivalMemory/client/Client.d.ts +2 -0
- package/api/resources/agents/resources/archivalMemory/client/Client.js +31 -21
- package/api/resources/agents/resources/context/client/Client.d.ts +2 -0
- package/api/resources/agents/resources/context/client/Client.js +20 -10
- package/api/resources/agents/resources/coreMemory/client/Client.d.ts +2 -0
- package/api/resources/agents/resources/coreMemory/client/Client.js +38 -28
- package/api/resources/agents/resources/index.js +17 -7
- package/api/resources/agents/resources/memoryVariables/client/Client.d.ts +2 -0
- package/api/resources/agents/resources/memoryVariables/client/Client.js +20 -10
- package/api/resources/agents/resources/messages/client/Client.d.ts +8 -6
- package/api/resources/agents/resources/messages/client/Client.js +42 -32
- package/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +2 -6
- package/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +1 -1
- package/api/resources/agents/resources/messages/types/MessagesListResponse.d.ts +1 -1
- package/api/resources/agents/resources/messages/types/index.d.ts +0 -1
- package/api/resources/agents/resources/messages/types/index.js +0 -1
- package/api/resources/agents/resources/recallMemory/client/Client.d.ts +2 -0
- package/api/resources/agents/resources/recallMemory/client/Client.js +20 -10
- package/api/resources/agents/resources/sources/client/Client.d.ts +2 -0
- package/api/resources/agents/resources/sources/client/Client.js +20 -10
- package/api/resources/agents/resources/templates/client/Client.d.ts +2 -0
- package/api/resources/agents/resources/templates/client/Client.js +30 -20
- package/api/resources/agents/resources/tools/client/Client.d.ts +2 -0
- package/api/resources/agents/resources/tools/client/Client.js +26 -16
- package/api/resources/agents/types/AgentsSearchRequestCombinator.d.ts +1 -1
- package/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +4 -1
- package/api/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.d.ts +1 -1
- package/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +1 -1
- package/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +1 -1
- package/api/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts +7 -0
- package/api/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +1 -1
- package/api/resources/agents/types/UpdateAgentToolRulesItem.d.ts +1 -1
- package/api/resources/agents/types/index.d.ts +1 -0
- package/api/resources/agents/types/index.js +1 -0
- package/api/resources/blocks/client/Client.d.ts +2 -0
- package/api/resources/blocks/client/Client.js +40 -30
- package/api/resources/health/client/Client.d.ts +2 -0
- package/api/resources/health/client/Client.js +20 -10
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +20 -8
- package/api/resources/jobs/client/Client.d.ts +2 -0
- package/api/resources/jobs/client/Client.js +31 -21
- package/api/resources/models/client/Client.d.ts +2 -0
- package/api/resources/models/client/Client.js +23 -13
- package/api/resources/providers/client/Client.d.ts +2 -0
- package/api/resources/providers/client/Client.js +31 -21
- package/api/resources/runs/client/Client.d.ts +8 -8
- package/api/resources/runs/client/Client.js +43 -58
- package/api/resources/runs/client/requests/GetRunMessagesRequest.d.ts +1 -25
- package/api/resources/sources/client/Client.d.ts +2 -0
- package/api/resources/sources/client/Client.js +43 -33
- package/api/resources/sources/resources/files/client/Client.d.ts +2 -1
- package/api/resources/sources/resources/files/client/Client.js +28 -18
- package/api/resources/sources/resources/index.js +17 -7
- package/api/resources/sources/resources/passages/client/Client.d.ts +2 -0
- package/api/resources/sources/resources/passages/client/Client.js +20 -10
- package/api/resources/tag/client/Client.d.ts +44 -0
- package/api/resources/tag/client/Client.js +146 -0
- package/api/resources/tag/client/index.d.ts +1 -0
- package/api/resources/tag/client/index.js +17 -0
- package/api/resources/tag/client/requests/ListTagsRequest.d.ts +12 -0
- package/api/resources/tag/client/requests/index.d.ts +1 -0
- package/api/resources/tag/client/requests/index.js +2 -0
- package/api/resources/tag/index.d.ts +1 -0
- package/api/resources/tag/index.js +17 -0
- package/api/resources/tools/client/Client.d.ts +2 -0
- package/api/resources/tools/client/Client.js +57 -47
- package/api/types/AgentStateToolRulesItem.d.ts +1 -1
- package/api/types/AgentType.d.ts +1 -1
- package/api/types/AppAuthSchemeAuthMode.d.ts +1 -1
- package/api/types/ChatCompletionRequestFunctionCall.d.ts +1 -1
- package/api/types/ChatCompletionRequestMessagesItem.d.ts +1 -1
- package/api/types/ChatCompletionRequestStop.d.ts +1 -1
- package/api/types/ChatCompletionRequestToolChoice.d.ts +1 -1
- package/api/types/EmbeddingConfigEmbeddingEndpointType.d.ts +2 -1
- package/api/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
- package/api/types/JobStatus.d.ts +1 -1
- package/api/types/JobType.d.ts +1 -1
- package/api/types/{LettaResponseMessagesItem.d.ts → LettaMessageUnion.d.ts} +2 -2
- package/api/types/LettaRequest.d.ts +2 -6
- package/api/types/LettaRequestConfig.d.ts +11 -0
- package/api/types/LettaResponse.d.ts +1 -1
- package/api/types/LlmConfigModelEndpointType.d.ts +2 -1
- package/api/types/LlmConfigModelEndpointType.js +1 -0
- package/api/types/MessageCreateRole.d.ts +1 -1
- package/api/types/MessageRole.d.ts +1 -1
- package/api/types/NotFoundErrorBodyMessage.d.ts +1 -1
- package/api/types/Run.d.ts +2 -0
- package/api/types/SandboxConfigCreateConfig.d.ts +1 -1
- package/api/types/SandboxConfigUpdateConfig.d.ts +1 -1
- package/api/types/SandboxType.d.ts +1 -1
- package/api/types/ToolCallMessageToolCall.d.ts +1 -1
- package/api/types/ToolReturnMessageStatus.d.ts +1 -1
- package/api/types/ToolRuleType.d.ts +1 -1
- package/api/types/ToolType.d.ts +2 -1
- package/api/types/ToolType.js +1 -0
- package/api/types/UserMessageInputContent.d.ts +1 -1
- package/api/types/ValidationErrorLocItem.d.ts +1 -1
- package/api/types/index.d.ts +2 -1
- package/api/types/index.js +2 -1
- package/core/fetcher/APIResponse.d.ts +1 -1
- package/core/fetcher/Fetcher.d.ts +1 -1
- package/core/fetcher/Fetcher.js +2 -2
- package/core/fetcher/Supplier.d.ts +1 -1
- package/core/fetcher/createRequestUrl.js +1 -2
- package/core/fetcher/getFetchFn.js +18 -9
- package/core/fetcher/getHeader.js +1 -2
- package/core/fetcher/getRequestBody.js +3 -4
- package/core/fetcher/getResponseBody.js +1 -2
- package/core/fetcher/makeRequest.d.ts +1 -1
- package/core/fetcher/requestWithRetries.js +3 -4
- package/core/fetcher/signals.d.ts +0 -1
- package/core/fetcher/signals.js +2 -3
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
- package/core/form-data-utils/FormDataWrapper.d.ts +4 -4
- package/core/form-data-utils/FormDataWrapper.js +22 -12
- package/core/index.js +17 -7
- package/core/runtime/runtime.d.ts +1 -1
- package/core/runtime/runtime.js +51 -41
- package/core/schemas/Schema.d.ts +5 -5
- package/core/schemas/builders/bigint/bigint.js +1 -2
- package/core/schemas/builders/date/date.js +1 -2
- package/core/schemas/builders/enum/enum.js +1 -2
- package/core/schemas/builders/lazy/lazy.d.ts +1 -1
- package/core/schemas/builders/lazy/lazy.js +3 -4
- package/core/schemas/builders/lazy/lazyObject.js +1 -2
- package/core/schemas/builders/list/list.js +1 -2
- package/core/schemas/builders/literals/booleanLiteral.js +1 -2
- package/core/schemas/builders/literals/stringLiteral.js +1 -2
- package/core/schemas/builders/object/object.d.ts +1 -1
- package/core/schemas/builders/object/object.js +2 -3
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
- package/core/schemas/builders/object/property.js +2 -3
- package/core/schemas/builders/object/types.d.ts +11 -11
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
- package/core/schemas/builders/object-like/types.d.ts +1 -1
- package/core/schemas/builders/record/record.js +1 -2
- package/core/schemas/builders/record/types.d.ts +2 -2
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +3 -4
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
- package/core/schemas/builders/set/set.js +1 -2
- package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
- package/core/schemas/builders/union/discriminant.js +1 -2
- package/core/schemas/builders/union/types.d.ts +6 -6
- package/core/schemas/builders/union/union.d.ts +1 -1
- package/core/schemas/builders/union/union.js +1 -2
- package/core/schemas/utils/MaybePromise.d.ts +1 -1
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +3 -3
- package/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
- package/core/schemas/utils/entries.d.ts +1 -1
- package/core/schemas/utils/entries.js +1 -2
- package/core/schemas/utils/filterObject.d.ts +1 -1
- package/core/schemas/utils/filterObject.js +1 -2
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +1 -2
- package/core/schemas/utils/isPlainObject.js +1 -2
- package/core/schemas/utils/keys.d.ts +1 -1
- package/core/schemas/utils/keys.js +1 -2
- package/core/schemas/utils/maybeSkipValidation.js +1 -2
- package/core/schemas/utils/partition.js +1 -2
- package/core/streaming-fetcher/Stream.d.ts +0 -1
- package/core/streaming-fetcher/Stream.js +20 -21
- package/dist/Client.d.ts +5 -0
- package/dist/Client.js +5 -0
- package/dist/api/errors/ConflictError.js +17 -7
- package/dist/api/errors/InternalServerError.js +17 -7
- package/dist/api/errors/NotFoundError.js +17 -7
- package/dist/api/errors/UnprocessableEntityError.js +17 -7
- package/dist/api/resources/agents/client/Client.d.ts +4 -7
- package/dist/api/resources/agents/client/Client.js +54 -46
- package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +5 -1
- package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +7 -8
- package/dist/api/resources/agents/resources/archivalMemory/client/Client.d.ts +2 -0
- package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +31 -21
- package/dist/api/resources/agents/resources/context/client/Client.d.ts +2 -0
- package/dist/api/resources/agents/resources/context/client/Client.js +20 -10
- package/dist/api/resources/agents/resources/coreMemory/client/Client.d.ts +2 -0
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +38 -28
- package/dist/api/resources/agents/resources/index.js +17 -7
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.d.ts +2 -0
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +20 -10
- package/dist/api/resources/agents/resources/messages/client/Client.d.ts +8 -6
- package/dist/api/resources/agents/resources/messages/client/Client.js +42 -32
- package/dist/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +2 -6
- package/dist/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +1 -1
- package/dist/api/resources/agents/resources/messages/types/MessagesListResponse.d.ts +1 -1
- package/dist/api/resources/agents/resources/messages/types/index.d.ts +0 -1
- package/dist/api/resources/agents/resources/messages/types/index.js +0 -1
- package/dist/api/resources/agents/resources/recallMemory/client/Client.d.ts +2 -0
- package/dist/api/resources/agents/resources/recallMemory/client/Client.js +20 -10
- package/dist/api/resources/agents/resources/sources/client/Client.d.ts +2 -0
- package/dist/api/resources/agents/resources/sources/client/Client.js +20 -10
- package/dist/api/resources/agents/resources/templates/client/Client.d.ts +2 -0
- package/dist/api/resources/agents/resources/templates/client/Client.js +30 -20
- package/dist/api/resources/agents/resources/tools/client/Client.d.ts +2 -0
- package/dist/api/resources/agents/resources/tools/client/Client.js +26 -16
- package/dist/api/resources/agents/types/AgentsSearchRequestCombinator.d.ts +1 -1
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +4 -1
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.d.ts +1 -1
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +1 -1
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +1 -1
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts +7 -0
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemTags.js +5 -0
- package/dist/api/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +1 -1
- package/dist/api/resources/agents/types/UpdateAgentToolRulesItem.d.ts +1 -1
- package/dist/api/resources/agents/types/index.d.ts +1 -0
- package/dist/api/resources/agents/types/index.js +1 -0
- package/dist/api/resources/blocks/client/Client.d.ts +2 -0
- package/dist/api/resources/blocks/client/Client.js +40 -30
- package/dist/api/resources/health/client/Client.d.ts +2 -0
- package/dist/api/resources/health/client/Client.js +20 -10
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +20 -8
- package/dist/api/resources/jobs/client/Client.d.ts +2 -0
- package/dist/api/resources/jobs/client/Client.js +31 -21
- package/dist/api/resources/models/client/Client.d.ts +2 -0
- package/dist/api/resources/models/client/Client.js +23 -13
- package/dist/api/resources/providers/client/Client.d.ts +2 -0
- package/dist/api/resources/providers/client/Client.js +31 -21
- package/dist/api/resources/runs/client/Client.d.ts +8 -8
- package/dist/api/resources/runs/client/Client.js +43 -58
- package/dist/api/resources/runs/client/requests/GetRunMessagesRequest.d.ts +1 -25
- package/dist/api/resources/sources/client/Client.d.ts +2 -0
- package/dist/api/resources/sources/client/Client.js +43 -33
- package/dist/api/resources/sources/resources/files/client/Client.d.ts +2 -1
- package/dist/api/resources/sources/resources/files/client/Client.js +28 -18
- package/dist/api/resources/sources/resources/index.js +17 -7
- package/dist/api/resources/sources/resources/passages/client/Client.d.ts +2 -0
- package/dist/api/resources/sources/resources/passages/client/Client.js +20 -10
- package/dist/api/resources/tag/client/Client.d.ts +44 -0
- package/dist/api/resources/tag/client/Client.js +146 -0
- package/dist/api/resources/tag/client/index.d.ts +1 -0
- package/dist/api/resources/tag/client/index.js +17 -0
- package/dist/api/resources/tag/client/requests/ListTagsRequest.d.ts +12 -0
- package/dist/api/resources/tag/client/requests/ListTagsRequest.js +5 -0
- package/dist/api/resources/tag/client/requests/index.d.ts +1 -0
- package/dist/api/resources/tag/client/requests/index.js +2 -0
- package/dist/api/resources/tag/index.d.ts +1 -0
- package/dist/api/resources/tag/index.js +17 -0
- package/dist/api/resources/tools/client/Client.d.ts +2 -0
- package/dist/api/resources/tools/client/Client.js +57 -47
- package/dist/api/types/AgentStateToolRulesItem.d.ts +1 -1
- package/dist/api/types/AgentType.d.ts +1 -1
- package/dist/api/types/AppAuthSchemeAuthMode.d.ts +1 -1
- package/dist/api/types/ChatCompletionRequestFunctionCall.d.ts +1 -1
- package/dist/api/types/ChatCompletionRequestMessagesItem.d.ts +1 -1
- package/dist/api/types/ChatCompletionRequestStop.d.ts +1 -1
- package/dist/api/types/ChatCompletionRequestToolChoice.d.ts +1 -1
- package/dist/api/types/EmbeddingConfigEmbeddingEndpointType.d.ts +2 -1
- package/dist/api/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
- package/dist/api/types/JobStatus.d.ts +1 -1
- package/dist/api/types/JobType.d.ts +1 -1
- package/dist/api/types/{LettaResponseMessagesItem.d.ts → LettaMessageUnion.d.ts} +2 -2
- package/dist/api/types/LettaMessageUnion.js +5 -0
- package/dist/api/types/LettaRequest.d.ts +2 -6
- package/dist/api/types/LettaRequestConfig.d.ts +11 -0
- package/dist/api/types/LettaRequestConfig.js +5 -0
- package/dist/api/types/LettaResponse.d.ts +1 -1
- package/dist/api/types/LlmConfigModelEndpointType.d.ts +2 -1
- package/dist/api/types/LlmConfigModelEndpointType.js +1 -0
- package/dist/api/types/MessageCreateRole.d.ts +1 -1
- package/dist/api/types/MessageRole.d.ts +1 -1
- package/dist/api/types/NotFoundErrorBodyMessage.d.ts +1 -1
- package/dist/api/types/Run.d.ts +2 -0
- package/dist/api/types/SandboxConfigCreateConfig.d.ts +1 -1
- package/dist/api/types/SandboxConfigUpdateConfig.d.ts +1 -1
- package/dist/api/types/SandboxType.d.ts +1 -1
- package/dist/api/types/ToolCallMessageToolCall.d.ts +1 -1
- package/dist/api/types/ToolReturnMessageStatus.d.ts +1 -1
- package/dist/api/types/ToolRuleType.d.ts +1 -1
- package/dist/api/types/ToolType.d.ts +2 -1
- package/dist/api/types/ToolType.js +1 -0
- package/dist/api/types/UserMessageInputContent.d.ts +1 -1
- package/dist/api/types/ValidationErrorLocItem.d.ts +1 -1
- package/dist/api/types/index.d.ts +2 -1
- package/dist/api/types/index.js +2 -1
- package/dist/core/fetcher/APIResponse.d.ts +1 -1
- package/dist/core/fetcher/Fetcher.d.ts +1 -1
- package/dist/core/fetcher/Fetcher.js +2 -2
- package/dist/core/fetcher/Supplier.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.js +1 -2
- package/dist/core/fetcher/getFetchFn.js +18 -9
- package/dist/core/fetcher/getHeader.js +1 -2
- package/dist/core/fetcher/getRequestBody.js +3 -4
- package/dist/core/fetcher/getResponseBody.js +1 -2
- package/dist/core/fetcher/makeRequest.d.ts +1 -1
- package/dist/core/fetcher/requestWithRetries.js +3 -4
- package/dist/core/fetcher/signals.d.ts +0 -1
- package/dist/core/fetcher/signals.js +2 -3
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
- package/dist/core/form-data-utils/FormDataWrapper.d.ts +4 -4
- package/dist/core/form-data-utils/FormDataWrapper.js +22 -12
- package/dist/core/index.js +17 -7
- package/dist/core/runtime/runtime.d.ts +1 -1
- package/dist/core/runtime/runtime.js +51 -41
- package/dist/core/schemas/Schema.d.ts +5 -5
- package/dist/core/schemas/builders/bigint/bigint.js +1 -2
- package/dist/core/schemas/builders/date/date.js +1 -2
- package/dist/core/schemas/builders/enum/enum.js +1 -2
- package/dist/core/schemas/builders/lazy/lazy.d.ts +1 -1
- package/dist/core/schemas/builders/lazy/lazy.js +3 -4
- package/dist/core/schemas/builders/lazy/lazyObject.js +1 -2
- package/dist/core/schemas/builders/list/list.js +1 -2
- package/dist/core/schemas/builders/literals/booleanLiteral.js +1 -2
- package/dist/core/schemas/builders/literals/stringLiteral.js +1 -2
- package/dist/core/schemas/builders/object/object.d.ts +1 -1
- package/dist/core/schemas/builders/object/object.js +2 -3
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
- package/dist/core/schemas/builders/object/property.js +2 -3
- package/dist/core/schemas/builders/object/types.d.ts +11 -11
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
- package/dist/core/schemas/builders/object-like/types.d.ts +1 -1
- package/dist/core/schemas/builders/record/record.js +1 -2
- package/dist/core/schemas/builders/record/types.d.ts +2 -2
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +3 -4
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
- package/dist/core/schemas/builders/set/set.js +1 -2
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
- package/dist/core/schemas/builders/union/discriminant.js +1 -2
- package/dist/core/schemas/builders/union/types.d.ts +6 -6
- package/dist/core/schemas/builders/union/union.d.ts +1 -1
- package/dist/core/schemas/builders/union/union.js +1 -2
- package/dist/core/schemas/utils/MaybePromise.d.ts +1 -1
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +3 -3
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
- package/dist/core/schemas/utils/entries.d.ts +1 -1
- package/dist/core/schemas/utils/entries.js +1 -2
- package/dist/core/schemas/utils/filterObject.d.ts +1 -1
- package/dist/core/schemas/utils/filterObject.js +1 -2
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +1 -2
- package/dist/core/schemas/utils/isPlainObject.js +1 -2
- package/dist/core/schemas/utils/keys.d.ts +1 -1
- package/dist/core/schemas/utils/keys.js +1 -2
- package/dist/core/schemas/utils/maybeSkipValidation.js +1 -2
- package/dist/core/schemas/utils/partition.js +1 -2
- package/dist/core/streaming-fetcher/Stream.d.ts +0 -1
- package/dist/core/streaming-fetcher/Stream.js +20 -21
- package/dist/environments.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +19 -8
- package/dist/serialization/resources/agents/client/index.js +17 -7
- package/dist/serialization/resources/agents/client/list.js +17 -7
- package/dist/serialization/resources/agents/client/requests/AgentsSearchRequest.js +17 -7
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -1
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +20 -8
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +17 -7
- package/dist/serialization/resources/agents/resources/archivalMemory/client/create.js +17 -7
- package/dist/serialization/resources/agents/resources/archivalMemory/client/index.js +17 -7
- package/dist/serialization/resources/agents/resources/archivalMemory/client/list.js +17 -7
- package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.js +17 -7
- package/dist/serialization/resources/agents/resources/coreMemory/client/getBlocks.js +17 -7
- package/dist/serialization/resources/agents/resources/coreMemory/client/index.js +17 -7
- package/dist/serialization/resources/agents/resources/coreMemory/client/listInContext.js +17 -7
- package/dist/serialization/resources/agents/resources/index.js +17 -7
- package/dist/serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.js +17 -7
- package/dist/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +2 -3
- package/dist/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.js +19 -10
- package/dist/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.js +17 -7
- package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +17 -7
- package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponse.d.ts +2 -2
- package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponse.js +19 -9
- package/dist/serialization/resources/agents/resources/messages/types/index.d.ts +0 -1
- package/dist/serialization/resources/agents/resources/messages/types/index.js +0 -1
- package/dist/serialization/resources/agents/resources/sources/client/get.js +17 -7
- package/dist/serialization/resources/agents/resources/sources/client/index.js +17 -7
- package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js +17 -7
- package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.js +17 -7
- package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js +17 -7
- package/dist/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.js +17 -7
- package/dist/serialization/resources/agents/resources/tools/client/index.js +17 -7
- package/dist/serialization/resources/agents/resources/tools/client/list.js +17 -7
- package/dist/serialization/resources/agents/types/AgentsSearchRequestCombinator.js +17 -7
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +5 -1
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +19 -7
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemName.js +17 -7
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.js +17 -7
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.js +17 -7
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.js +17 -7
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js +17 -7
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts +13 -0
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemTags.js +44 -0
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemVersion.js +17 -7
- package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +17 -7
- package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +17 -7
- package/dist/serialization/resources/agents/types/index.d.ts +1 -0
- package/dist/serialization/resources/agents/types/index.js +1 -0
- package/dist/serialization/resources/blocks/client/index.js +17 -7
- package/dist/serialization/resources/blocks/client/list.js +17 -7
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +19 -8
- package/dist/serialization/resources/jobs/client/index.js +17 -7
- package/dist/serialization/resources/jobs/client/list.js +17 -7
- package/dist/serialization/resources/jobs/client/listActive.js +17 -7
- package/dist/serialization/resources/models/client/index.js +17 -7
- package/dist/serialization/resources/models/client/listEmbeddingModels.js +17 -7
- package/dist/serialization/resources/models/client/listLlms.js +17 -7
- package/dist/serialization/resources/providers/client/index.js +17 -7
- package/dist/serialization/resources/providers/client/listProviders.js +17 -7
- package/dist/serialization/resources/providers/client/requests/ProviderCreate.js +17 -7
- package/dist/serialization/resources/providers/client/requests/ProviderUpdate.js +17 -7
- package/dist/serialization/resources/runs/client/getRunMessages.d.ts +3 -3
- package/dist/serialization/resources/runs/client/getRunMessages.js +19 -9
- package/dist/serialization/resources/runs/client/index.js +17 -7
- package/dist/serialization/resources/runs/client/listActiveRuns.js +17 -7
- package/dist/serialization/resources/runs/client/listRuns.js +17 -7
- package/dist/serialization/resources/sources/client/getByName.js +17 -7
- package/dist/serialization/resources/sources/client/index.js +17 -7
- package/dist/serialization/resources/sources/client/list.js +17 -7
- package/dist/serialization/resources/sources/client/requests/SourceCreate.js +17 -7
- package/dist/serialization/resources/sources/client/requests/SourceUpdate.js +17 -7
- package/dist/serialization/resources/sources/resources/files/client/index.js +17 -7
- package/dist/serialization/resources/sources/resources/files/client/list.js +17 -7
- package/dist/serialization/resources/sources/resources/index.js +17 -7
- package/dist/serialization/resources/sources/resources/passages/client/index.js +17 -7
- package/dist/serialization/resources/sources/resources/passages/client/list.js +17 -7
- package/dist/serialization/resources/tag/client/index.d.ts +1 -0
- package/dist/serialization/resources/tag/client/index.js +37 -0
- package/dist/serialization/resources/tag/client/listTags.d.ts +9 -0
- package/dist/serialization/resources/tag/client/listTags.js +41 -0
- package/dist/serialization/resources/tag/index.d.ts +1 -0
- package/dist/serialization/resources/tag/index.js +17 -0
- package/dist/serialization/resources/tools/client/addBaseTool.js +17 -7
- package/dist/serialization/resources/tools/client/getByName.js +17 -7
- package/dist/serialization/resources/tools/client/index.js +17 -7
- package/dist/serialization/resources/tools/client/list.js +17 -7
- package/dist/serialization/resources/tools/client/listComposioActionsByApp.js +17 -7
- package/dist/serialization/resources/tools/client/listComposioApps.js +17 -7
- package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.js +17 -7
- package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +17 -7
- package/dist/serialization/types/ActionModel.js +17 -7
- package/dist/serialization/types/ActionParametersModel.js +17 -7
- package/dist/serialization/types/ActionResponseModel.js +17 -7
- package/dist/serialization/types/AgentEnvironmentVariable.js +17 -7
- package/dist/serialization/types/AgentState.js +17 -7
- package/dist/serialization/types/AgentStateToolRulesItem.js +17 -7
- package/dist/serialization/types/AgentType.js +17 -7
- package/dist/serialization/types/AppAuthScheme.js +17 -7
- package/dist/serialization/types/AppAuthSchemeAuthMode.js +17 -7
- package/dist/serialization/types/AppModel.js +17 -7
- package/dist/serialization/types/ArchivalMemorySummary.js +17 -7
- package/dist/serialization/types/AssistantFile.js +17 -7
- package/dist/serialization/types/AssistantMessageInput.js +17 -7
- package/dist/serialization/types/AssistantMessageOutput.js +17 -7
- package/dist/serialization/types/AuthRequest.js +17 -7
- package/dist/serialization/types/AuthResponse.js +17 -7
- package/dist/serialization/types/AuthSchemeField.js +17 -7
- package/dist/serialization/types/Block.js +17 -7
- package/dist/serialization/types/BlockUpdate.js +17 -7
- package/dist/serialization/types/ChatCompletionRequest.js +17 -7
- package/dist/serialization/types/ChatCompletionRequestFunctionCall.js +17 -7
- package/dist/serialization/types/ChatCompletionRequestMessagesItem.js +17 -7
- package/dist/serialization/types/ChatCompletionRequestStop.js +17 -7
- package/dist/serialization/types/ChatCompletionRequestToolChoice.js +17 -7
- package/dist/serialization/types/ChatCompletionResponse.js +17 -7
- package/dist/serialization/types/ChildToolRule.js +17 -7
- package/dist/serialization/types/Choice.js +17 -7
- package/dist/serialization/types/ConditionalToolRule.js +17 -7
- package/dist/serialization/types/ConflictErrorBody.js +17 -7
- package/dist/serialization/types/ContextWindowOverview.js +17 -7
- package/dist/serialization/types/CreateAssistantFileRequest.js +17 -7
- package/dist/serialization/types/CreateAssistantRequest.js +17 -7
- package/dist/serialization/types/CreateBlock.js +17 -7
- package/dist/serialization/types/DeleteAssistantFileResponse.js +17 -7
- package/dist/serialization/types/DeleteAssistantResponse.js +17 -7
- package/dist/serialization/types/E2BSandboxConfig.js +17 -7
- package/dist/serialization/types/EmbeddingConfig.js +17 -7
- package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -1
- package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +18 -7
- package/dist/serialization/types/FileMetadata.js +17 -7
- package/dist/serialization/types/FunctionCallInput.js +17 -7
- package/dist/serialization/types/FunctionCallOutput.js +17 -7
- package/dist/serialization/types/FunctionSchema.js +17 -7
- package/dist/serialization/types/Health.js +17 -7
- package/dist/serialization/types/HttpValidationError.js +17 -7
- package/dist/serialization/types/InitToolRule.js +17 -7
- package/dist/serialization/types/InternalServerErrorBody.js +17 -7
- package/dist/serialization/types/Job.js +17 -7
- package/dist/serialization/types/JobStatus.js +17 -7
- package/dist/serialization/types/JobType.js +17 -7
- package/dist/serialization/types/{LettaResponseMessagesItem.d.ts → LettaMessageUnion.d.ts} +3 -3
- package/{serialization/types/LettaResponseMessagesItem.js → dist/serialization/types/LettaMessageUnion.js} +19 -9
- package/dist/serialization/types/LettaRequest.d.ts +2 -3
- package/dist/serialization/types/LettaRequest.js +19 -10
- package/dist/serialization/types/LettaRequestConfig.d.ts +14 -0
- package/dist/serialization/types/LettaRequestConfig.js +45 -0
- package/dist/serialization/types/LettaResponse.d.ts +2 -2
- package/dist/serialization/types/LettaResponse.js +19 -9
- package/dist/serialization/types/LettaSchemasLettaMessageToolCall.js +17 -7
- package/dist/serialization/types/LettaSchemasMessageMessage.js +17 -7
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.js +17 -7
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.js +17 -7
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.js +17 -7
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.js +17 -7
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.js +17 -7
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.js +17 -7
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.js +17 -7
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.js +17 -7
- package/dist/serialization/types/LettaSchemasToolTool.js +17 -7
- package/dist/serialization/types/LettaUsageStatistics.js +17 -7
- package/dist/serialization/types/LlmConfig.js +17 -7
- package/dist/serialization/types/LlmConfigModelEndpointType.d.ts +1 -1
- package/dist/serialization/types/LlmConfigModelEndpointType.js +18 -7
- package/dist/serialization/types/LocalSandboxConfig.js +17 -7
- package/dist/serialization/types/LogProbToken.js +17 -7
- package/dist/serialization/types/Memory.js +17 -7
- package/dist/serialization/types/MessageContentLogProb.js +17 -7
- package/dist/serialization/types/MessageCreate.js +17 -7
- package/dist/serialization/types/MessageCreateRole.js +17 -7
- package/dist/serialization/types/MessageRole.js +17 -7
- package/dist/serialization/types/NotFoundErrorBody.js +17 -7
- package/dist/serialization/types/NotFoundErrorBodyMessage.js +17 -7
- package/dist/serialization/types/OpenAiAssistant.js +17 -7
- package/dist/serialization/types/Organization.js +17 -7
- package/dist/serialization/types/OrganizationCreate.js +17 -7
- package/dist/serialization/types/Passage.js +17 -7
- package/dist/serialization/types/Provider.js +17 -7
- package/dist/serialization/types/ReasoningMessage.js +17 -7
- package/dist/serialization/types/RecallMemorySummary.js +17 -7
- package/dist/serialization/types/ResponseFormat.js +17 -7
- package/dist/serialization/types/Run.d.ts +2 -0
- package/dist/serialization/types/Run.js +19 -7
- package/dist/serialization/types/SandboxConfig.js +17 -7
- package/dist/serialization/types/SandboxConfigCreate.js +17 -7
- package/dist/serialization/types/SandboxConfigCreateConfig.js +17 -7
- package/dist/serialization/types/SandboxConfigUpdate.js +17 -7
- package/dist/serialization/types/SandboxConfigUpdateConfig.js +17 -7
- package/dist/serialization/types/SandboxEnvironmentVariable.js +17 -7
- package/dist/serialization/types/SandboxEnvironmentVariableCreate.js +17 -7
- package/dist/serialization/types/SandboxEnvironmentVariableUpdate.js +17 -7
- package/dist/serialization/types/SandboxType.js +17 -7
- package/dist/serialization/types/Source.js +17 -7
- package/dist/serialization/types/SystemMessageInput.js +17 -7
- package/dist/serialization/types/SystemMessageOutput.js +17 -7
- package/dist/serialization/types/TerminalToolRule.js +17 -7
- package/dist/serialization/types/ToolCallDelta.js +17 -7
- package/dist/serialization/types/ToolCallFunctionOutput.js +17 -7
- package/dist/serialization/types/ToolCallMessage.js +17 -7
- package/dist/serialization/types/ToolCallMessageToolCall.js +17 -7
- package/dist/serialization/types/ToolCreate.js +17 -7
- package/dist/serialization/types/ToolFunctionChoice.js +17 -7
- package/dist/serialization/types/ToolInput.js +17 -7
- package/dist/serialization/types/ToolMessage.js +17 -7
- package/dist/serialization/types/ToolReturnMessage.js +17 -7
- package/dist/serialization/types/ToolReturnMessageStatus.js +17 -7
- package/dist/serialization/types/ToolRuleType.js +17 -7
- package/dist/serialization/types/ToolType.d.ts +1 -1
- package/dist/serialization/types/ToolType.js +18 -7
- package/dist/serialization/types/UsageStatistics.js +17 -7
- package/dist/serialization/types/User.js +17 -7
- package/dist/serialization/types/UserCreate.js +17 -7
- package/dist/serialization/types/UserMessageInput.js +17 -7
- package/dist/serialization/types/UserMessageInputContent.js +17 -7
- package/dist/serialization/types/UserMessageOutput.js +17 -7
- package/dist/serialization/types/UserUpdate.js +17 -7
- package/dist/serialization/types/ValidationError.js +17 -7
- package/dist/serialization/types/ValidationErrorLocItem.js +17 -7
- package/dist/serialization/types/index.d.ts +2 -1
- package/dist/serialization/types/index.js +2 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/environments.d.ts +1 -1
- package/index.d.ts +1 -0
- package/index.js +19 -8
- package/{jest.config.js → jest.config.mjs} +4 -1
- package/package.json +17 -16
- package/reference.md +78 -22
- package/scripts/rename-to-esm-files.js +115 -0
- package/serialization/resources/agents/client/index.js +17 -7
- package/serialization/resources/agents/client/list.js +17 -7
- package/serialization/resources/agents/client/requests/AgentsSearchRequest.js +17 -7
- package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -1
- package/serialization/resources/agents/client/requests/CreateAgentRequest.js +20 -8
- package/serialization/resources/agents/client/requests/UpdateAgent.js +17 -7
- package/serialization/resources/agents/resources/archivalMemory/client/create.js +17 -7
- package/serialization/resources/agents/resources/archivalMemory/client/index.js +17 -7
- package/serialization/resources/agents/resources/archivalMemory/client/list.js +17 -7
- package/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.js +17 -7
- package/serialization/resources/agents/resources/coreMemory/client/getBlocks.js +17 -7
- package/serialization/resources/agents/resources/coreMemory/client/index.js +17 -7
- package/serialization/resources/agents/resources/coreMemory/client/listInContext.js +17 -7
- package/serialization/resources/agents/resources/index.js +17 -7
- package/serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.js +17 -7
- package/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +2 -3
- package/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.js +19 -10
- package/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.js +17 -7
- package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +17 -7
- package/serialization/resources/agents/resources/messages/types/MessagesListResponse.d.ts +2 -2
- package/serialization/resources/agents/resources/messages/types/MessagesListResponse.js +19 -9
- package/serialization/resources/agents/resources/messages/types/index.d.ts +0 -1
- package/serialization/resources/agents/resources/messages/types/index.js +0 -1
- package/serialization/resources/agents/resources/sources/client/get.js +17 -7
- package/serialization/resources/agents/resources/sources/client/index.js +17 -7
- package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js +17 -7
- package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.js +17 -7
- package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js +17 -7
- package/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.js +17 -7
- package/serialization/resources/agents/resources/tools/client/index.js +17 -7
- package/serialization/resources/agents/resources/tools/client/list.js +17 -7
- package/serialization/resources/agents/types/AgentsSearchRequestCombinator.js +17 -7
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +5 -1
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +19 -7
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemName.js +17 -7
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.js +17 -7
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.js +17 -7
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.js +17 -7
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js +17 -7
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts +13 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemTags.js +44 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemVersion.js +17 -7
- package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +17 -7
- package/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +17 -7
- package/serialization/resources/agents/types/index.d.ts +1 -0
- package/serialization/resources/agents/types/index.js +1 -0
- package/serialization/resources/blocks/client/index.js +17 -7
- package/serialization/resources/blocks/client/list.js +17 -7
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +19 -8
- package/serialization/resources/jobs/client/index.js +17 -7
- package/serialization/resources/jobs/client/list.js +17 -7
- package/serialization/resources/jobs/client/listActive.js +17 -7
- package/serialization/resources/models/client/index.js +17 -7
- package/serialization/resources/models/client/listEmbeddingModels.js +17 -7
- package/serialization/resources/models/client/listLlms.js +17 -7
- package/serialization/resources/providers/client/index.js +17 -7
- package/serialization/resources/providers/client/listProviders.js +17 -7
- package/serialization/resources/providers/client/requests/ProviderCreate.js +17 -7
- package/serialization/resources/providers/client/requests/ProviderUpdate.js +17 -7
- package/serialization/resources/runs/client/getRunMessages.d.ts +3 -3
- package/serialization/resources/runs/client/getRunMessages.js +19 -9
- package/serialization/resources/runs/client/index.js +17 -7
- package/serialization/resources/runs/client/listActiveRuns.js +17 -7
- package/serialization/resources/runs/client/listRuns.js +17 -7
- package/serialization/resources/sources/client/getByName.js +17 -7
- package/serialization/resources/sources/client/index.js +17 -7
- package/serialization/resources/sources/client/list.js +17 -7
- package/serialization/resources/sources/client/requests/SourceCreate.js +17 -7
- package/serialization/resources/sources/client/requests/SourceUpdate.js +17 -7
- package/serialization/resources/sources/resources/files/client/index.js +17 -7
- package/serialization/resources/sources/resources/files/client/list.js +17 -7
- package/serialization/resources/sources/resources/index.js +17 -7
- package/serialization/resources/sources/resources/passages/client/index.js +17 -7
- package/serialization/resources/sources/resources/passages/client/list.js +17 -7
- package/serialization/resources/tag/client/index.d.ts +1 -0
- package/serialization/resources/tag/client/index.js +37 -0
- package/serialization/resources/tag/client/listTags.d.ts +9 -0
- package/serialization/resources/tag/client/listTags.js +41 -0
- package/serialization/resources/tag/index.d.ts +1 -0
- package/serialization/resources/tag/index.js +17 -0
- package/serialization/resources/tools/client/addBaseTool.js +17 -7
- package/serialization/resources/tools/client/getByName.js +17 -7
- package/serialization/resources/tools/client/index.js +17 -7
- package/serialization/resources/tools/client/list.js +17 -7
- package/serialization/resources/tools/client/listComposioActionsByApp.js +17 -7
- package/serialization/resources/tools/client/listComposioApps.js +17 -7
- package/serialization/resources/tools/client/requests/ToolRunFromSource.js +17 -7
- package/serialization/resources/tools/client/requests/ToolUpdate.js +17 -7
- package/serialization/types/ActionModel.js +17 -7
- package/serialization/types/ActionParametersModel.js +17 -7
- package/serialization/types/ActionResponseModel.js +17 -7
- package/serialization/types/AgentEnvironmentVariable.js +17 -7
- package/serialization/types/AgentState.js +17 -7
- package/serialization/types/AgentStateToolRulesItem.js +17 -7
- package/serialization/types/AgentType.js +17 -7
- package/serialization/types/AppAuthScheme.js +17 -7
- package/serialization/types/AppAuthSchemeAuthMode.js +17 -7
- package/serialization/types/AppModel.js +17 -7
- package/serialization/types/ArchivalMemorySummary.js +17 -7
- package/serialization/types/AssistantFile.js +17 -7
- package/serialization/types/AssistantMessageInput.js +17 -7
- package/serialization/types/AssistantMessageOutput.js +17 -7
- package/serialization/types/AuthRequest.js +17 -7
- package/serialization/types/AuthResponse.js +17 -7
- package/serialization/types/AuthSchemeField.js +17 -7
- package/serialization/types/Block.js +17 -7
- package/serialization/types/BlockUpdate.js +17 -7
- package/serialization/types/ChatCompletionRequest.js +17 -7
- package/serialization/types/ChatCompletionRequestFunctionCall.js +17 -7
- package/serialization/types/ChatCompletionRequestMessagesItem.js +17 -7
- package/serialization/types/ChatCompletionRequestStop.js +17 -7
- package/serialization/types/ChatCompletionRequestToolChoice.js +17 -7
- package/serialization/types/ChatCompletionResponse.js +17 -7
- package/serialization/types/ChildToolRule.js +17 -7
- package/serialization/types/Choice.js +17 -7
- package/serialization/types/ConditionalToolRule.js +17 -7
- package/serialization/types/ConflictErrorBody.js +17 -7
- package/serialization/types/ContextWindowOverview.js +17 -7
- package/serialization/types/CreateAssistantFileRequest.js +17 -7
- package/serialization/types/CreateAssistantRequest.js +17 -7
- package/serialization/types/CreateBlock.js +17 -7
- package/serialization/types/DeleteAssistantFileResponse.js +17 -7
- package/serialization/types/DeleteAssistantResponse.js +17 -7
- package/serialization/types/E2BSandboxConfig.js +17 -7
- package/serialization/types/EmbeddingConfig.js +17 -7
- package/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -1
- package/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +18 -7
- package/serialization/types/FileMetadata.js +17 -7
- package/serialization/types/FunctionCallInput.js +17 -7
- package/serialization/types/FunctionCallOutput.js +17 -7
- package/serialization/types/FunctionSchema.js +17 -7
- package/serialization/types/Health.js +17 -7
- package/serialization/types/HttpValidationError.js +17 -7
- package/serialization/types/InitToolRule.js +17 -7
- package/serialization/types/InternalServerErrorBody.js +17 -7
- package/serialization/types/Job.js +17 -7
- package/serialization/types/JobStatus.js +17 -7
- package/serialization/types/JobType.js +17 -7
- package/serialization/types/{LettaResponseMessagesItem.d.ts → LettaMessageUnion.d.ts} +3 -3
- package/{dist/serialization/types/LettaResponseMessagesItem.js → serialization/types/LettaMessageUnion.js} +19 -9
- package/serialization/types/LettaRequest.d.ts +2 -3
- package/serialization/types/LettaRequest.js +19 -10
- package/serialization/types/LettaRequestConfig.d.ts +14 -0
- package/serialization/types/LettaRequestConfig.js +45 -0
- package/serialization/types/LettaResponse.d.ts +2 -2
- package/serialization/types/LettaResponse.js +19 -9
- package/serialization/types/LettaSchemasLettaMessageToolCall.js +17 -7
- package/serialization/types/LettaSchemasMessageMessage.js +17 -7
- package/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.js +17 -7
- package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.js +17 -7
- package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.js +17 -7
- package/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.js +17 -7
- package/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.js +17 -7
- package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.js +17 -7
- package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.js +17 -7
- package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.js +17 -7
- package/serialization/types/LettaSchemasToolTool.js +17 -7
- package/serialization/types/LettaUsageStatistics.js +17 -7
- package/serialization/types/LlmConfig.js +17 -7
- package/serialization/types/LlmConfigModelEndpointType.d.ts +1 -1
- package/serialization/types/LlmConfigModelEndpointType.js +18 -7
- package/serialization/types/LocalSandboxConfig.js +17 -7
- package/serialization/types/LogProbToken.js +17 -7
- package/serialization/types/Memory.js +17 -7
- package/serialization/types/MessageContentLogProb.js +17 -7
- package/serialization/types/MessageCreate.js +17 -7
- package/serialization/types/MessageCreateRole.js +17 -7
- package/serialization/types/MessageRole.js +17 -7
- package/serialization/types/NotFoundErrorBody.js +17 -7
- package/serialization/types/NotFoundErrorBodyMessage.js +17 -7
- package/serialization/types/OpenAiAssistant.js +17 -7
- package/serialization/types/Organization.js +17 -7
- package/serialization/types/OrganizationCreate.js +17 -7
- package/serialization/types/Passage.js +17 -7
- package/serialization/types/Provider.js +17 -7
- package/serialization/types/ReasoningMessage.js +17 -7
- package/serialization/types/RecallMemorySummary.js +17 -7
- package/serialization/types/ResponseFormat.js +17 -7
- package/serialization/types/Run.d.ts +2 -0
- package/serialization/types/Run.js +19 -7
- package/serialization/types/SandboxConfig.js +17 -7
- package/serialization/types/SandboxConfigCreate.js +17 -7
- package/serialization/types/SandboxConfigCreateConfig.js +17 -7
- package/serialization/types/SandboxConfigUpdate.js +17 -7
- package/serialization/types/SandboxConfigUpdateConfig.js +17 -7
- package/serialization/types/SandboxEnvironmentVariable.js +17 -7
- package/serialization/types/SandboxEnvironmentVariableCreate.js +17 -7
- package/serialization/types/SandboxEnvironmentVariableUpdate.js +17 -7
- package/serialization/types/SandboxType.js +17 -7
- package/serialization/types/Source.js +17 -7
- package/serialization/types/SystemMessageInput.js +17 -7
- package/serialization/types/SystemMessageOutput.js +17 -7
- package/serialization/types/TerminalToolRule.js +17 -7
- package/serialization/types/ToolCallDelta.js +17 -7
- package/serialization/types/ToolCallFunctionOutput.js +17 -7
- package/serialization/types/ToolCallMessage.js +17 -7
- package/serialization/types/ToolCallMessageToolCall.js +17 -7
- package/serialization/types/ToolCreate.js +17 -7
- package/serialization/types/ToolFunctionChoice.js +17 -7
- package/serialization/types/ToolInput.js +17 -7
- package/serialization/types/ToolMessage.js +17 -7
- package/serialization/types/ToolReturnMessage.js +17 -7
- package/serialization/types/ToolReturnMessageStatus.js +17 -7
- package/serialization/types/ToolRuleType.js +17 -7
- package/serialization/types/ToolType.d.ts +1 -1
- package/serialization/types/ToolType.js +18 -7
- package/serialization/types/UsageStatistics.js +17 -7
- package/serialization/types/User.js +17 -7
- package/serialization/types/UserCreate.js +17 -7
- package/serialization/types/UserMessageInput.js +17 -7
- package/serialization/types/UserMessageInputContent.js +17 -7
- package/serialization/types/UserMessageOutput.js +17 -7
- package/serialization/types/UserUpdate.js +17 -7
- package/serialization/types/ValidationError.js +17 -7
- package/serialization/types/ValidationErrorLocItem.js +17 -7
- package/serialization/types/index.d.ts +2 -1
- package/serialization/types/index.js +2 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +0 -25
- package/dist/api/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +0 -25
- package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +0 -34
- package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.js +0 -49
- package/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +0 -34
- package/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.js +0 -49
- /package/api/resources/agents/{resources/messages/types/MessagesListResponseItem.js → types/AgentsSearchRequestSearchItemTags.js} +0 -0
- /package/api/{types/LettaResponseMessagesItem.js → resources/tag/client/requests/ListTagsRequest.js} +0 -0
- /package/{dist/api/resources/agents/resources/messages/types/MessagesListResponseItem.js → api/types/LettaMessageUnion.js} +0 -0
- /package/{dist/api/types/LettaResponseMessagesItem.js → api/types/LettaRequestConfig.js} +0 -0
|
@@ -19,8 +19,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __
|
|
|
19
19
|
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
20
20
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
21
21
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
22
|
-
return i =
|
|
23
|
-
function
|
|
22
|
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
23
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
24
|
+
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
24
25
|
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
25
26
|
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
26
27
|
function fulfill(value) { resume("next", value); }
|
|
@@ -28,7 +29,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar
|
|
|
28
29
|
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
29
30
|
};
|
|
30
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
exports.
|
|
32
|
+
exports.Stream = void 0;
|
|
33
|
+
exports.readableStreamAsyncIterable = readableStreamAsyncIterable;
|
|
32
34
|
const runtime_1 = require("../runtime");
|
|
33
35
|
const DATA_PREFIX = "data:";
|
|
34
36
|
class Stream {
|
|
@@ -48,26 +50,24 @@ class Stream {
|
|
|
48
50
|
}
|
|
49
51
|
iterMessages() {
|
|
50
52
|
return __asyncGenerator(this, arguments, function* iterMessages_1() {
|
|
51
|
-
var e_1,
|
|
53
|
+
var _a, e_1, _b, _c;
|
|
52
54
|
this.controller.signal;
|
|
53
55
|
const stream = readableStreamAsyncIterable(this.stream);
|
|
54
56
|
let buf = "";
|
|
55
57
|
let prefixSeen = false;
|
|
56
58
|
try {
|
|
57
|
-
for (var stream_1 = __asyncValues(stream), stream_1_1; stream_1_1 = yield __await(stream_1.next()),
|
|
58
|
-
|
|
59
|
+
for (var _d = true, stream_1 = __asyncValues(stream), stream_1_1; stream_1_1 = yield __await(stream_1.next()), _a = stream_1_1.done, !_a; _d = true) {
|
|
60
|
+
_c = stream_1_1.value;
|
|
61
|
+
_d = false;
|
|
62
|
+
const chunk = _c;
|
|
59
63
|
buf += this.decodeChunk(chunk);
|
|
60
64
|
let terminatorIndex;
|
|
61
|
-
// Parse the chunk into as many messages as possible
|
|
62
65
|
while ((terminatorIndex = buf.indexOf(this.messageTerminator)) >= 0) {
|
|
63
|
-
// Extract the line from the buffer
|
|
64
66
|
let line = buf.slice(0, terminatorIndex + 1);
|
|
65
|
-
buf = buf.slice(terminatorIndex +
|
|
66
|
-
|
|
67
|
-
if (line.length === 0) {
|
|
67
|
+
buf = buf.slice(terminatorIndex + this.messageTerminator.length);
|
|
68
|
+
if (!line.trim()) {
|
|
68
69
|
continue;
|
|
69
70
|
}
|
|
70
|
-
// Skip the chunk until the prefix is found
|
|
71
71
|
if (!prefixSeen && this.prefix != null) {
|
|
72
72
|
const prefixIndex = line.indexOf(this.prefix);
|
|
73
73
|
if (prefixIndex === -1) {
|
|
@@ -76,11 +76,9 @@ class Stream {
|
|
|
76
76
|
prefixSeen = true;
|
|
77
77
|
line = line.slice(prefixIndex + this.prefix.length);
|
|
78
78
|
}
|
|
79
|
-
// If the stream terminator is present, return
|
|
80
79
|
if (this.streamTerminator != null && line.includes(this.streamTerminator)) {
|
|
81
80
|
return yield __await(void 0);
|
|
82
81
|
}
|
|
83
|
-
// Otherwise, yield message from the prefix to the terminator
|
|
84
82
|
const message = yield __await(this.parse(JSON.parse(line)));
|
|
85
83
|
yield yield __await(message);
|
|
86
84
|
prefixSeen = false;
|
|
@@ -90,7 +88,7 @@ class Stream {
|
|
|
90
88
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
91
89
|
finally {
|
|
92
90
|
try {
|
|
93
|
-
if (
|
|
91
|
+
if (!_d && !_a && (_b = stream_1.return)) yield __await(_b.call(stream_1));
|
|
94
92
|
}
|
|
95
93
|
finally { if (e_1) throw e_1.error; }
|
|
96
94
|
}
|
|
@@ -98,17 +96,19 @@ class Stream {
|
|
|
98
96
|
}
|
|
99
97
|
[Symbol.asyncIterator]() {
|
|
100
98
|
return __asyncGenerator(this, arguments, function* _a() {
|
|
101
|
-
var e_2,
|
|
99
|
+
var _b, e_2, _c, _d;
|
|
102
100
|
try {
|
|
103
|
-
for (var
|
|
104
|
-
|
|
101
|
+
for (var _e = true, _f = __asyncValues(this.iterMessages()), _g; _g = yield __await(_f.next()), _b = _g.done, !_b; _e = true) {
|
|
102
|
+
_d = _g.value;
|
|
103
|
+
_e = false;
|
|
104
|
+
const message = _d;
|
|
105
105
|
yield yield __await(message);
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
109
109
|
finally {
|
|
110
110
|
try {
|
|
111
|
-
if (
|
|
111
|
+
if (!_e && !_b && (_c = _f.return)) yield __await(_c.call(_f));
|
|
112
112
|
}
|
|
113
113
|
finally { if (e_2) throw e_2.error; }
|
|
114
114
|
}
|
|
@@ -122,7 +122,7 @@ class Stream {
|
|
|
122
122
|
decoded += decoder.decode(chunk);
|
|
123
123
|
}
|
|
124
124
|
// Buffer is present in Node.js environment
|
|
125
|
-
else if (runtime_1.RUNTIME.type === "node" && typeof chunk
|
|
125
|
+
else if (runtime_1.RUNTIME.type === "node" && typeof chunk !== "undefined") {
|
|
126
126
|
decoded += Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
|
|
127
127
|
}
|
|
128
128
|
return decoded;
|
|
@@ -167,4 +167,3 @@ function readableStreamAsyncIterable(stream) {
|
|
|
167
167
|
},
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
|
-
exports.readableStreamAsyncIterable = readableStreamAsyncIterable;
|
package/dist/environments.d.ts
CHANGED
|
@@ -5,4 +5,4 @@ export declare const LettaEnvironment: {
|
|
|
5
5
|
readonly LettaCloud: "https://app.letta.com";
|
|
6
6
|
readonly SelfHosted: "http://localhost:8283";
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type LettaEnvironment = typeof LettaEnvironment.LettaCloud | typeof LettaEnvironment.SelfHosted;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -15,15 +15,25 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.LettaTimeoutError = exports.LettaError = exports.LettaEnvironment = exports.LettaClient = exports.Letta = void 0;
|
|
36
|
+
exports.serialization = exports.LettaTimeoutError = exports.LettaError = exports.LettaEnvironment = exports.LettaClient = exports.Letta = void 0;
|
|
27
37
|
exports.Letta = __importStar(require("./api"));
|
|
28
38
|
var Client_1 = require("./Client");
|
|
29
39
|
Object.defineProperty(exports, "LettaClient", { enumerable: true, get: function () { return Client_1.LettaClient; } });
|
|
@@ -32,3 +42,4 @@ Object.defineProperty(exports, "LettaEnvironment", { enumerable: true, get: func
|
|
|
32
42
|
var errors_1 = require("./errors");
|
|
33
43
|
Object.defineProperty(exports, "LettaError", { enumerable: true, get: function () { return errors_1.LettaError; } });
|
|
34
44
|
Object.defineProperty(exports, "LettaTimeoutError", { enumerable: true, get: function () { return errors_1.LettaTimeoutError; } });
|
|
45
|
+
exports.serialization = __importStar(require("./serialization"));
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
37
|
};
|
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.Response = void 0;
|
|
30
40
|
const core = __importStar(require("../../../../core"));
|
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.AgentsSearchRequest = void 0;
|
|
30
40
|
const core = __importStar(require("../../../../../core"));
|
|
@@ -14,7 +14,7 @@ export declare const CreateAgentRequest: core.serialization.Schema<serializers.C
|
|
|
14
14
|
export declare namespace CreateAgentRequest {
|
|
15
15
|
interface Raw {
|
|
16
16
|
name?: string | null;
|
|
17
|
-
memory_blocks
|
|
17
|
+
memory_blocks?: CreateBlock.Raw[] | null;
|
|
18
18
|
tools?: string[] | null;
|
|
19
19
|
tool_ids?: string[] | null;
|
|
20
20
|
source_ids?: string[] | null;
|
|
@@ -27,6 +27,7 @@ export declare namespace CreateAgentRequest {
|
|
|
27
27
|
embedding_config?: EmbeddingConfig.Raw | null;
|
|
28
28
|
initial_message_sequence?: MessageCreate.Raw[] | null;
|
|
29
29
|
include_base_tools?: boolean | null;
|
|
30
|
+
include_multi_agent_tools?: boolean | null;
|
|
30
31
|
description?: string | null;
|
|
31
32
|
metadata_?: Record<string, unknown> | null;
|
|
32
33
|
llm?: string | null;
|
|
@@ -34,6 +35,7 @@ export declare namespace CreateAgentRequest {
|
|
|
34
35
|
context_window_limit?: number | null;
|
|
35
36
|
embedding_chunk_size?: number | null;
|
|
36
37
|
from_template?: string | null;
|
|
38
|
+
template?: boolean | null;
|
|
37
39
|
project?: string | null;
|
|
38
40
|
tool_exec_environment_variables?: Record<string, string | null | undefined> | null;
|
|
39
41
|
variables?: Record<string, string | null | undefined> | null;
|
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.CreateAgentRequest = void 0;
|
|
30
40
|
const core = __importStar(require("../../../../../core"));
|
|
@@ -36,7 +46,7 @@ const EmbeddingConfig_1 = require("../../../../types/EmbeddingConfig");
|
|
|
36
46
|
const MessageCreate_1 = require("../../../../types/MessageCreate");
|
|
37
47
|
exports.CreateAgentRequest = core.serialization.object({
|
|
38
48
|
name: core.serialization.string().optional(),
|
|
39
|
-
memoryBlocks: core.serialization.property("memory_blocks", core.serialization.list(CreateBlock_1.CreateBlock)),
|
|
49
|
+
memoryBlocks: core.serialization.property("memory_blocks", core.serialization.list(CreateBlock_1.CreateBlock).optional()),
|
|
40
50
|
tools: core.serialization.list(core.serialization.string()).optional(),
|
|
41
51
|
toolIds: core.serialization.property("tool_ids", core.serialization.list(core.serialization.string()).optional()),
|
|
42
52
|
sourceIds: core.serialization.property("source_ids", core.serialization.list(core.serialization.string()).optional()),
|
|
@@ -49,6 +59,7 @@ exports.CreateAgentRequest = core.serialization.object({
|
|
|
49
59
|
embeddingConfig: core.serialization.property("embedding_config", EmbeddingConfig_1.EmbeddingConfig.optional()),
|
|
50
60
|
initialMessageSequence: core.serialization.property("initial_message_sequence", core.serialization.list(MessageCreate_1.MessageCreate).optional()),
|
|
51
61
|
includeBaseTools: core.serialization.property("include_base_tools", core.serialization.boolean().optional()),
|
|
62
|
+
includeMultiAgentTools: core.serialization.property("include_multi_agent_tools", core.serialization.boolean().optional()),
|
|
52
63
|
description: core.serialization.string().optional(),
|
|
53
64
|
metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
54
65
|
llm: core.serialization.string().optional(),
|
|
@@ -56,6 +67,7 @@ exports.CreateAgentRequest = core.serialization.object({
|
|
|
56
67
|
contextWindowLimit: core.serialization.property("context_window_limit", core.serialization.number().optional()),
|
|
57
68
|
embeddingChunkSize: core.serialization.property("embedding_chunk_size", core.serialization.number().optional()),
|
|
58
69
|
fromTemplate: core.serialization.property("from_template", core.serialization.string().optional()),
|
|
70
|
+
template: core.serialization.boolean().optional(),
|
|
59
71
|
project: core.serialization.string().optional(),
|
|
60
72
|
toolExecEnvironmentVariables: core.serialization.property("tool_exec_environment_variables", core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional()),
|
|
61
73
|
variables: core.serialization
|
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.UpdateAgent = void 0;
|
|
30
40
|
const core = __importStar(require("../../../../../core"));
|
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.Response = void 0;
|
|
30
40
|
const core = __importStar(require("../../../../../../core"));
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
37
|
};
|
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.Response = void 0;
|
|
30
40
|
const core = __importStar(require("../../../../../../core"));
|
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.CreateArchivalMemory = void 0;
|
|
30
40
|
const core = __importStar(require("../../../../../../../core"));
|
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.Response = void 0;
|
|
30
40
|
const core = __importStar(require("../../../../../../core"));
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.getBlocks = exports.listInContext = void 0;
|
|
27
37
|
exports.listInContext = __importStar(require("./listInContext"));
|
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.Response = void 0;
|
|
30
40
|
const core = __importStar(require("../../../../../../core"));
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
37
|
};
|