@letta-ai/letta-client 0.1.8 → 0.1.9
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 +49 -44
- package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +4 -7
- 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 +2 -0
- package/api/resources/agents/resources/messages/client/Client.js +36 -26
- 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/MessagesListResponseItem.d.ts +1 -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 +1 -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/CreateAgentRequestToolRulesItem.d.ts +1 -1
- package/api/resources/agents/types/UpdateAgentToolRulesItem.d.ts +1 -1
- 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 +2 -0
- package/api/resources/runs/client/Client.js +37 -27
- 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/ListTagsRequest.js +5 -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 +1 -1
- package/api/types/JobStatus.d.ts +1 -1
- package/api/types/JobType.d.ts +1 -1
- package/api/types/LettaResponseMessagesItem.d.ts +1 -1
- package/api/types/LlmConfigModelEndpointType.d.ts +1 -1
- 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/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 +1 -1
- package/api/types/UserMessageInputContent.d.ts +1 -1
- package/api/types/ValidationErrorLocItem.d.ts +1 -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 +49 -44
- package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +4 -7
- 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 +2 -0
- package/dist/api/resources/agents/resources/messages/client/Client.js +36 -26
- 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/MessagesListResponseItem.d.ts +1 -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 +1 -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/CreateAgentRequestToolRulesItem.d.ts +1 -1
- package/dist/api/resources/agents/types/UpdateAgentToolRulesItem.d.ts +1 -1
- 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 +2 -0
- package/dist/api/resources/runs/client/Client.js +37 -27
- 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 +1 -1
- 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 +1 -1
- package/dist/api/types/LlmConfigModelEndpointType.d.ts +1 -1
- 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/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 +1 -1
- package/dist/api/types/UserMessageInputContent.d.ts +1 -1
- package/dist/api/types/ValidationErrorLocItem.d.ts +1 -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 +2 -1
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +19 -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.js +17 -7
- 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.js +17 -7
- package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.js +17 -7
- 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.js +17 -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/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/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.js +17 -7
- 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.js +17 -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/LettaRequest.js +17 -7
- package/dist/serialization/types/LettaResponse.js +17 -7
- package/dist/serialization/types/LettaResponseMessagesItem.js +17 -7
- 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.js +17 -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.js +17 -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.js +17 -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/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 +66 -8
- 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 +2 -1
- package/serialization/resources/agents/client/requests/CreateAgentRequest.js +19 -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.js +17 -7
- 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.js +17 -7
- package/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.js +17 -7
- 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.js +17 -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/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/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.js +17 -7
- 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.js +17 -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/LettaRequest.js +17 -7
- package/serialization/types/LettaResponse.js +17 -7
- package/serialization/types/LettaResponseMessagesItem.js +17 -7
- 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.js +17 -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.js +17 -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.js +17 -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/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -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.ConflictError = void 0;
|
|
30
40
|
const errors = __importStar(require("../../errors/index"));
|
|
@@ -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.InternalServerError = void 0;
|
|
30
40
|
const errors = __importStar(require("../../errors/index"));
|
|
@@ -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.NotFoundError = void 0;
|
|
30
40
|
const errors = __importStar(require("../../errors/index"));
|
|
@@ -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.UnprocessableEntityError = void 0;
|
|
30
40
|
const errors = __importStar(require("../../errors/index"));
|
|
@@ -16,6 +16,8 @@ import { MemoryVariables } from "../resources/memoryVariables/client/Client";
|
|
|
16
16
|
export declare namespace Agents {
|
|
17
17
|
interface Options {
|
|
18
18
|
environment?: core.Supplier<environments.LettaEnvironment | string>;
|
|
19
|
+
/** Specify a custom URL to connect the client to. */
|
|
20
|
+
baseUrl?: core.Supplier<string>;
|
|
19
21
|
token?: core.Supplier<string | undefined>;
|
|
20
22
|
fetcher?: core.FetchFunction;
|
|
21
23
|
}
|
|
@@ -73,14 +75,9 @@ export declare class Agents {
|
|
|
73
75
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
74
76
|
*
|
|
75
77
|
* @example
|
|
76
|
-
* await client.agents.create(
|
|
77
|
-
* memoryBlocks: [{
|
|
78
|
-
* value: "value",
|
|
79
|
-
* label: "label"
|
|
80
|
-
* }]
|
|
81
|
-
* })
|
|
78
|
+
* await client.agents.create()
|
|
82
79
|
*/
|
|
83
|
-
create(request
|
|
80
|
+
create(request?: Letta.CreateAgentRequest, requestOptions?: Agents.RequestOptions): Promise<Letta.AgentState>;
|
|
84
81
|
/**
|
|
85
82
|
* Get the state of the agent.
|
|
86
83
|
*
|
|
@@ -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
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
39
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
40
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -106,9 +116,9 @@ class Agents {
|
|
|
106
116
|
* @example
|
|
107
117
|
* await client.agents.list()
|
|
108
118
|
*/
|
|
109
|
-
list(
|
|
110
|
-
|
|
111
|
-
|
|
119
|
+
list() {
|
|
120
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
121
|
+
var _a, _b, _c;
|
|
112
122
|
const { name, tags, matchAllTags, cursor, limit } = request;
|
|
113
123
|
const _queryParams = {};
|
|
114
124
|
if (name != null) {
|
|
@@ -132,9 +142,9 @@ class Agents {
|
|
|
132
142
|
_queryParams["limit"] = limit.toString();
|
|
133
143
|
}
|
|
134
144
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
135
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
145
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/agents/"),
|
|
136
146
|
method: "GET",
|
|
137
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
147
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
|
|
138
148
|
contentType: "application/json",
|
|
139
149
|
queryParameters: _queryParams,
|
|
140
150
|
requestType: "json",
|
|
@@ -192,20 +202,15 @@ class Agents {
|
|
|
192
202
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
193
203
|
*
|
|
194
204
|
* @example
|
|
195
|
-
* await client.agents.create(
|
|
196
|
-
* memoryBlocks: [{
|
|
197
|
-
* value: "value",
|
|
198
|
-
* label: "label"
|
|
199
|
-
* }]
|
|
200
|
-
* })
|
|
205
|
+
* await client.agents.create()
|
|
201
206
|
*/
|
|
202
|
-
create(
|
|
203
|
-
|
|
204
|
-
|
|
207
|
+
create() {
|
|
208
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
209
|
+
var _a, _b, _c;
|
|
205
210
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
206
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
211
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/agents/"),
|
|
207
212
|
method: "POST",
|
|
208
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
213
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
|
|
209
214
|
contentType: "application/json",
|
|
210
215
|
requestType: "json",
|
|
211
216
|
body: serializers.CreateAgentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -266,12 +271,12 @@ class Agents {
|
|
|
266
271
|
* await client.agents.get("agent_id")
|
|
267
272
|
*/
|
|
268
273
|
get(agentId, requestOptions) {
|
|
269
|
-
var _a, _b;
|
|
270
274
|
return __awaiter(this, void 0, void 0, function* () {
|
|
275
|
+
var _a, _b, _c;
|
|
271
276
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
272
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
277
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}`),
|
|
273
278
|
method: "GET",
|
|
274
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
279
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
|
|
275
280
|
contentType: "application/json",
|
|
276
281
|
requestType: "json",
|
|
277
282
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -331,12 +336,12 @@ class Agents {
|
|
|
331
336
|
* await client.agents.delete("agent_id")
|
|
332
337
|
*/
|
|
333
338
|
delete(agentId, requestOptions) {
|
|
334
|
-
var _a, _b;
|
|
335
339
|
return __awaiter(this, void 0, void 0, function* () {
|
|
340
|
+
var _a, _b, _c;
|
|
336
341
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
337
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
342
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}`),
|
|
338
343
|
method: "DELETE",
|
|
339
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
344
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
|
|
340
345
|
contentType: "application/json",
|
|
341
346
|
requestType: "json",
|
|
342
347
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -390,13 +395,13 @@ class Agents {
|
|
|
390
395
|
* @example
|
|
391
396
|
* await client.agents.update("agent_id")
|
|
392
397
|
*/
|
|
393
|
-
update(
|
|
394
|
-
|
|
395
|
-
|
|
398
|
+
update(agentId_1) {
|
|
399
|
+
return __awaiter(this, arguments, void 0, function* (agentId, request = {}, requestOptions) {
|
|
400
|
+
var _a, _b, _c;
|
|
396
401
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
397
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
402
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}`),
|
|
398
403
|
method: "PATCH",
|
|
399
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
404
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
|
|
400
405
|
contentType: "application/json",
|
|
401
406
|
requestType: "json",
|
|
402
407
|
body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -457,18 +462,18 @@ class Agents {
|
|
|
457
462
|
* @example
|
|
458
463
|
* await client.agents.resetMessages("agent_id")
|
|
459
464
|
*/
|
|
460
|
-
resetMessages(
|
|
461
|
-
|
|
462
|
-
|
|
465
|
+
resetMessages(agentId_1) {
|
|
466
|
+
return __awaiter(this, arguments, void 0, function* (agentId, request = {}, requestOptions) {
|
|
467
|
+
var _a, _b, _c;
|
|
463
468
|
const { addDefaultInitialMessages } = request;
|
|
464
469
|
const _queryParams = {};
|
|
465
470
|
if (addDefaultInitialMessages != null) {
|
|
466
471
|
_queryParams["add_default_initial_messages"] = addDefaultInitialMessages.toString();
|
|
467
472
|
}
|
|
468
473
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
469
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
474
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/reset-messages`),
|
|
470
475
|
method: "PATCH",
|
|
471
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
476
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
|
|
472
477
|
contentType: "application/json",
|
|
473
478
|
queryParameters: _queryParams,
|
|
474
479
|
requestType: "json",
|
|
@@ -528,13 +533,13 @@ class Agents {
|
|
|
528
533
|
* @example
|
|
529
534
|
* await client.agents.search()
|
|
530
535
|
*/
|
|
531
|
-
search(
|
|
532
|
-
|
|
533
|
-
|
|
536
|
+
search() {
|
|
537
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
538
|
+
var _a, _b, _c;
|
|
534
539
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
535
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
540
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/agents/search"),
|
|
536
541
|
method: "POST",
|
|
537
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
542
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
|
|
538
543
|
contentType: "application/json",
|
|
539
544
|
requestType: "json",
|
|
540
545
|
body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -4,18 +4,13 @@
|
|
|
4
4
|
import * as Letta from "../../../../index";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
|
-
* {
|
|
8
|
-
* memoryBlocks: [{
|
|
9
|
-
* value: "value",
|
|
10
|
-
* label: "label"
|
|
11
|
-
* }]
|
|
12
|
-
* }
|
|
7
|
+
* {}
|
|
13
8
|
*/
|
|
14
9
|
export interface CreateAgentRequest {
|
|
15
10
|
/** The name of the agent. */
|
|
16
11
|
name?: string;
|
|
17
12
|
/** The blocks to create in the agent's in-context memory. */
|
|
18
|
-
memoryBlocks
|
|
13
|
+
memoryBlocks?: Letta.CreateBlock[];
|
|
19
14
|
/** The tools used by the agent. */
|
|
20
15
|
tools?: string[];
|
|
21
16
|
/** The ids of the tools used by the agent. */
|
|
@@ -54,6 +49,8 @@ export interface CreateAgentRequest {
|
|
|
54
49
|
embeddingChunkSize?: number;
|
|
55
50
|
/** The template id used to configure the agent */
|
|
56
51
|
fromTemplate?: string;
|
|
52
|
+
/** Whether the agent is a template */
|
|
53
|
+
template?: boolean;
|
|
57
54
|
/** The project slug that the agent will be associated with. */
|
|
58
55
|
project?: string;
|
|
59
56
|
/** The environment variables for tool execution specific to this agent. */
|
|
@@ -7,6 +7,8 @@ import * as Letta from "../../../../../index";
|
|
|
7
7
|
export declare namespace ArchivalMemory {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.LettaEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
10
12
|
token?: core.Supplier<string | undefined>;
|
|
11
13
|
fetcher?: core.FetchFunction;
|
|
12
14
|
}
|
|
@@ -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
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
39
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
40
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -61,12 +71,12 @@ class ArchivalMemory {
|
|
|
61
71
|
* await client.agents.archivalMemory.getSummary("agent_id")
|
|
62
72
|
*/
|
|
63
73
|
getSummary(agentId, requestOptions) {
|
|
64
|
-
var _a, _b;
|
|
65
74
|
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
var _a, _b, _c;
|
|
66
76
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
67
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
77
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/memory/archival`),
|
|
68
78
|
method: "GET",
|
|
69
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
79
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
70
80
|
contentType: "application/json",
|
|
71
81
|
requestType: "json",
|
|
72
82
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -126,9 +136,9 @@ class ArchivalMemory {
|
|
|
126
136
|
* @example
|
|
127
137
|
* await client.agents.archivalMemory.list("agent_id")
|
|
128
138
|
*/
|
|
129
|
-
list(
|
|
130
|
-
|
|
131
|
-
|
|
139
|
+
list(agentId_1) {
|
|
140
|
+
return __awaiter(this, arguments, void 0, function* (agentId, request = {}, requestOptions) {
|
|
141
|
+
var _a, _b, _c;
|
|
132
142
|
const { after, before, limit } = request;
|
|
133
143
|
const _queryParams = {};
|
|
134
144
|
if (after != null) {
|
|
@@ -141,9 +151,9 @@ class ArchivalMemory {
|
|
|
141
151
|
_queryParams["limit"] = limit.toString();
|
|
142
152
|
}
|
|
143
153
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
144
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
154
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/archival`),
|
|
145
155
|
method: "GET",
|
|
146
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
156
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
|
|
147
157
|
contentType: "application/json",
|
|
148
158
|
queryParameters: _queryParams,
|
|
149
159
|
requestType: "json",
|
|
@@ -207,12 +217,12 @@ class ArchivalMemory {
|
|
|
207
217
|
* })
|
|
208
218
|
*/
|
|
209
219
|
create(agentId, request, requestOptions) {
|
|
210
|
-
var _a, _b;
|
|
211
220
|
return __awaiter(this, void 0, void 0, function* () {
|
|
221
|
+
var _a, _b, _c;
|
|
212
222
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
213
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
223
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/archival`),
|
|
214
224
|
method: "POST",
|
|
215
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
225
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
216
226
|
contentType: "application/json",
|
|
217
227
|
requestType: "json",
|
|
218
228
|
body: serializers.agents.CreateArchivalMemory.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -274,12 +284,12 @@ class ArchivalMemory {
|
|
|
274
284
|
* await client.agents.archivalMemory.delete("agent_id", "memory_id")
|
|
275
285
|
*/
|
|
276
286
|
delete(agentId, memoryId, requestOptions) {
|
|
277
|
-
var _a, _b;
|
|
278
287
|
return __awaiter(this, void 0, void 0, function* () {
|
|
288
|
+
var _a, _b, _c;
|
|
279
289
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
280
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
290
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/archival/${encodeURIComponent(memoryId)}`),
|
|
281
291
|
method: "DELETE",
|
|
282
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
292
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
|
|
283
293
|
contentType: "application/json",
|
|
284
294
|
requestType: "json",
|
|
285
295
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -7,6 +7,8 @@ import * as Letta from "../../../../../index";
|
|
|
7
7
|
export declare namespace Context {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.LettaEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
10
12
|
token?: core.Supplier<string | undefined>;
|
|
11
13
|
fetcher?: core.FetchFunction;
|
|
12
14
|
}
|
|
@@ -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
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
39
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
40
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -61,12 +71,12 @@ class Context {
|
|
|
61
71
|
* await client.agents.context.get("agent_id")
|
|
62
72
|
*/
|
|
63
73
|
get(agentId, requestOptions) {
|
|
64
|
-
var _a, _b;
|
|
65
74
|
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
var _a, _b, _c;
|
|
66
76
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
67
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
77
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/context`),
|
|
68
78
|
method: "GET",
|
|
69
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
79
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
70
80
|
contentType: "application/json",
|
|
71
81
|
requestType: "json",
|
|
72
82
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -7,6 +7,8 @@ import * as Letta from "../../../../../index";
|
|
|
7
7
|
export declare namespace CoreMemory {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.LettaEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
10
12
|
token?: core.Supplier<string | undefined>;
|
|
11
13
|
fetcher?: core.FetchFunction;
|
|
12
14
|
}
|