@letta-ai/letta-client 0.0.68645 → 0.0.68647
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 +0 -3
- package/Client.js +26 -31
- package/api/resources/agents/client/Client.d.ts +2 -2
- package/api/resources/agents/client/Client.js +23 -13
- package/api/resources/agents/client/requests/AgentsListRequest.d.ts +9 -0
- package/api/resources/agents/client/requests/{BodyImportAgentSerialized.d.ts → BodyImportAgent.d.ts} +1 -1
- package/api/resources/agents/client/requests/index.d.ts +1 -1
- package/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/files/client/Client.js +4 -4
- package/api/resources/agents/resources/folders/client/Client.js +3 -3
- package/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +9 -9
- package/api/resources/agents/resources/passages/client/Client.js +5 -5
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +4 -4
- package/api/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
- package/api/resources/agents/types/AgentsListRequestOrder.js +10 -0
- package/api/resources/agents/types/AgentsListRequestOrderBy.d.ts +11 -0
- package/api/resources/agents/types/AgentsListRequestOrderBy.js +10 -0
- package/api/resources/agents/types/index.d.ts +2 -0
- package/api/resources/agents/types/index.js +2 -0
- package/api/resources/batches/client/Client.js +4 -4
- package/api/resources/batches/resources/messages/client/Client.js +1 -1
- package/api/resources/blocks/client/Client.js +16 -8
- package/api/resources/blocks/client/requests/BlocksListRequest.d.ts +11 -2
- package/api/resources/blocks/index.d.ts +1 -0
- package/api/resources/blocks/index.js +1 -0
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/blocks/types/BlocksListRequestOrder.d.ts +11 -0
- package/api/resources/blocks/types/BlocksListRequestOrder.js +10 -0
- package/api/resources/blocks/types/index.d.ts +1 -0
- package/api/resources/blocks/types/index.js +17 -0
- package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/api/resources/folders/client/Client.d.ts +2 -1
- package/api/resources/folders/client/Client.js +34 -13
- package/api/resources/folders/client/requests/FoldersListRequest.d.ts +30 -0
- package/api/resources/folders/client/requests/index.d.ts +1 -0
- package/api/resources/folders/index.d.ts +1 -0
- package/api/resources/folders/index.js +1 -0
- package/api/resources/folders/resources/files/client/Client.js +3 -3
- package/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/api/resources/folders/types/FoldersListRequestOrder.d.ts +11 -0
- package/api/resources/folders/types/FoldersListRequestOrder.js +10 -0
- package/api/resources/folders/types/index.d.ts +1 -0
- package/api/resources/folders/types/index.js +17 -0
- package/api/resources/groups/client/Client.js +15 -7
- package/api/resources/groups/client/requests/GroupsListRequest.d.ts +11 -3
- package/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/api/resources/groups/types/GroupsListRequestOrder.d.ts +11 -0
- package/api/resources/groups/types/GroupsListRequestOrder.js +10 -0
- package/api/resources/groups/types/index.d.ts +1 -0
- package/api/resources/groups/types/index.js +1 -0
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +16 -8
- package/api/resources/identities/client/requests/IdentitiesListRequest.d.ts +17 -0
- package/api/resources/identities/index.d.ts +1 -0
- package/api/resources/identities/index.js +1 -0
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/identities/types/IdentitiesListRequestOrder.d.ts +11 -0
- package/api/resources/identities/types/IdentitiesListRequestOrder.js +10 -0
- package/api/resources/identities/types/index.d.ts +1 -0
- package/api/resources/identities/types/index.js +17 -0
- package/api/resources/index.d.ts +8 -5
- package/api/resources/index.js +9 -6
- package/api/resources/jobs/client/Client.js +5 -5
- package/api/resources/models/client/Client.d.ts +3 -0
- package/api/resources/models/client/Client.js +7 -2
- package/api/resources/models/index.d.ts +1 -0
- package/api/resources/models/index.js +1 -0
- package/{dist/api/resources/embeddingModels → api/resources/models/resources/embeddings}/client/Client.d.ts +10 -10
- package/{dist/api/resources/embeddingModels → api/resources/models/resources/embeddings}/client/Client.js +12 -12
- package/api/resources/models/resources/index.d.ts +1 -0
- package/api/resources/models/resources/index.js +37 -0
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +23 -12
- package/api/resources/providers/client/requests/ProvidersListRequest.d.ts +26 -2
- package/api/resources/providers/index.d.ts +1 -0
- package/api/resources/providers/index.js +1 -0
- package/api/resources/providers/types/ProvidersListRequestOrder.d.ts +11 -0
- package/api/resources/providers/types/ProvidersListRequestOrder.js +10 -0
- package/api/resources/providers/types/index.d.ts +1 -0
- package/api/resources/providers/types/index.js +17 -0
- package/api/resources/runs/client/Client.js +5 -5
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/sources/client/Client.js +10 -10
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/steps/client/Client.d.ts +0 -1
- package/api/resources/steps/client/Client.js +9 -5
- package/api/resources/steps/client/requests/StepsListRequest.d.ts +6 -2
- package/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/api/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts +2 -0
- package/api/resources/steps/resources/metrics/client/Client.js +1 -1
- package/api/resources/steps/resources/trace/client/Client.js +1 -1
- package/api/resources/steps/types/StepsListRequestOrder.d.ts +11 -0
- package/api/resources/steps/types/StepsListRequestOrder.js +10 -0
- package/api/resources/steps/types/index.d.ts +1 -0
- package/api/resources/steps/types/index.js +1 -0
- package/api/resources/tags/client/Client.d.ts +1 -1
- package/api/resources/tags/client/Client.js +2 -2
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +9 -9
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/tools/client/Client.d.ts +1 -1
- package/api/resources/tools/client/Client.js +33 -22
- package/api/resources/tools/client/requests/ToolsListRequest.d.ts +22 -0
- package/api/resources/tools/types/ToolsListRequestOrder.d.ts +11 -0
- package/api/resources/tools/types/ToolsListRequestOrder.js +10 -0
- package/api/resources/tools/types/index.d.ts +1 -0
- package/api/resources/tools/types/index.js +1 -0
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/{BodyExportAgentSerialized.d.ts → BodyExportAgent.d.ts} +1 -1
- package/api/types/DeploymentEntity.d.ts +2 -0
- package/api/types/index.d.ts +1 -1
- package/api/types/index.js +1 -1
- package/dist/Client.d.ts +0 -3
- package/dist/Client.js +26 -31
- package/dist/api/resources/agents/client/Client.d.ts +2 -2
- package/dist/api/resources/agents/client/Client.js +23 -13
- package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +9 -0
- package/dist/api/resources/agents/client/requests/{BodyImportAgentSerialized.d.ts → BodyImportAgent.d.ts} +1 -1
- package/dist/api/resources/agents/client/requests/index.d.ts +1 -1
- package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +9 -9
- package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
- package/dist/api/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
- package/dist/api/resources/agents/types/AgentsListRequestOrder.js +10 -0
- package/dist/api/resources/agents/types/AgentsListRequestOrderBy.d.ts +11 -0
- package/dist/api/resources/agents/types/AgentsListRequestOrderBy.js +10 -0
- package/dist/api/resources/agents/types/index.d.ts +2 -0
- package/dist/api/resources/agents/types/index.js +2 -0
- package/dist/api/resources/batches/client/Client.js +4 -4
- package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/blocks/client/Client.js +16 -8
- package/dist/api/resources/blocks/client/requests/BlocksListRequest.d.ts +11 -2
- package/dist/api/resources/blocks/index.d.ts +1 -0
- package/dist/api/resources/blocks/index.js +1 -0
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/blocks/types/BlocksListRequestOrder.d.ts +11 -0
- package/dist/api/resources/blocks/types/BlocksListRequestOrder.js +10 -0
- package/dist/api/resources/blocks/types/index.d.ts +1 -0
- package/dist/api/resources/blocks/types/index.js +17 -0
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/dist/api/resources/folders/client/Client.d.ts +2 -1
- package/dist/api/resources/folders/client/Client.js +34 -13
- package/dist/api/resources/folders/client/requests/FoldersListRequest.d.ts +30 -0
- package/dist/api/resources/folders/client/requests/FoldersListRequest.js +5 -0
- package/dist/api/resources/folders/client/requests/index.d.ts +1 -0
- package/dist/api/resources/folders/index.d.ts +1 -0
- package/dist/api/resources/folders/index.js +1 -0
- package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
- package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/folders/types/FoldersListRequestOrder.d.ts +11 -0
- package/dist/api/resources/folders/types/FoldersListRequestOrder.js +10 -0
- package/dist/api/resources/folders/types/index.d.ts +1 -0
- package/dist/api/resources/folders/types/index.js +17 -0
- package/dist/api/resources/groups/client/Client.js +15 -7
- package/dist/api/resources/groups/client/requests/GroupsListRequest.d.ts +11 -3
- package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/groups/types/GroupsListRequestOrder.d.ts +11 -0
- package/dist/api/resources/groups/types/GroupsListRequestOrder.js +10 -0
- package/dist/api/resources/groups/types/index.d.ts +1 -0
- package/dist/api/resources/groups/types/index.js +1 -0
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +16 -8
- package/dist/api/resources/identities/client/requests/IdentitiesListRequest.d.ts +17 -0
- package/dist/api/resources/identities/index.d.ts +1 -0
- package/dist/api/resources/identities/index.js +1 -0
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/identities/types/IdentitiesListRequestOrder.d.ts +11 -0
- package/dist/api/resources/identities/types/IdentitiesListRequestOrder.js +10 -0
- package/dist/api/resources/identities/types/index.d.ts +1 -0
- package/dist/api/resources/identities/types/index.js +17 -0
- package/dist/api/resources/index.d.ts +8 -5
- package/dist/api/resources/index.js +9 -6
- package/dist/api/resources/jobs/client/Client.js +5 -5
- package/dist/api/resources/models/client/Client.d.ts +3 -0
- package/dist/api/resources/models/client/Client.js +7 -2
- package/dist/api/resources/models/index.d.ts +1 -0
- package/dist/api/resources/models/index.js +1 -0
- package/{api/resources/embeddingModels → dist/api/resources/models/resources/embeddings}/client/Client.d.ts +10 -10
- package/{api/resources/embeddingModels → dist/api/resources/models/resources/embeddings}/client/Client.js +12 -12
- package/dist/api/resources/models/resources/index.d.ts +1 -0
- package/dist/api/resources/models/resources/index.js +37 -0
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +23 -12
- package/dist/api/resources/providers/client/requests/ProvidersListRequest.d.ts +26 -2
- package/dist/api/resources/providers/index.d.ts +1 -0
- package/dist/api/resources/providers/index.js +1 -0
- package/dist/api/resources/providers/types/ProvidersListRequestOrder.d.ts +11 -0
- package/dist/api/resources/providers/types/ProvidersListRequestOrder.js +10 -0
- package/dist/api/resources/providers/types/index.d.ts +1 -0
- package/dist/api/resources/providers/types/index.js +17 -0
- package/dist/api/resources/runs/client/Client.js +5 -5
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.js +10 -10
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/steps/client/Client.d.ts +0 -1
- package/dist/api/resources/steps/client/Client.js +9 -5
- package/dist/api/resources/steps/client/requests/StepsListRequest.d.ts +6 -2
- package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/dist/api/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts +2 -0
- package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
- package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
- package/dist/api/resources/steps/types/StepsListRequestOrder.d.ts +11 -0
- package/dist/api/resources/steps/types/StepsListRequestOrder.js +10 -0
- package/dist/api/resources/steps/types/index.d.ts +1 -0
- package/dist/api/resources/steps/types/index.js +1 -0
- package/dist/api/resources/tags/client/Client.d.ts +1 -1
- package/dist/api/resources/tags/client/Client.js +2 -2
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +9 -9
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.d.ts +1 -1
- package/dist/api/resources/tools/client/Client.js +33 -22
- package/dist/api/resources/tools/client/requests/ToolsListRequest.d.ts +22 -0
- package/dist/api/resources/tools/types/ToolsListRequestOrder.d.ts +11 -0
- package/dist/api/resources/tools/types/ToolsListRequestOrder.js +10 -0
- package/dist/api/resources/tools/types/index.d.ts +1 -0
- package/dist/api/resources/tools/types/index.js +1 -0
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/{BodyExportAgentSerialized.d.ts → BodyExportAgent.d.ts} +1 -1
- package/dist/api/types/BodyExportAgent.js +5 -0
- package/dist/api/types/DeploymentEntity.d.ts +2 -0
- package/dist/api/types/index.d.ts +1 -1
- package/dist/api/types/index.js +1 -1
- package/dist/serialization/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/agents/types/AgentsListRequestOrder.js +41 -0
- package/dist/serialization/resources/agents/types/AgentsListRequestOrderBy.d.ts +10 -0
- package/dist/serialization/resources/agents/types/AgentsListRequestOrderBy.js +41 -0
- package/dist/serialization/resources/agents/types/index.d.ts +2 -0
- package/dist/serialization/resources/agents/types/index.js +2 -0
- package/dist/serialization/resources/blocks/index.d.ts +1 -0
- package/dist/serialization/resources/blocks/index.js +1 -0
- package/dist/serialization/resources/blocks/types/BlocksListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/blocks/types/BlocksListRequestOrder.js +41 -0
- package/dist/serialization/resources/blocks/types/index.d.ts +1 -0
- package/dist/serialization/resources/blocks/types/index.js +17 -0
- package/dist/serialization/resources/folders/index.d.ts +1 -0
- package/dist/serialization/resources/folders/index.js +1 -0
- package/dist/serialization/resources/folders/types/FoldersListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/folders/types/FoldersListRequestOrder.js +41 -0
- package/dist/serialization/resources/folders/types/index.d.ts +1 -0
- package/dist/serialization/resources/folders/types/index.js +17 -0
- package/dist/serialization/resources/groups/types/GroupsListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/groups/types/GroupsListRequestOrder.js +41 -0
- package/dist/serialization/resources/groups/types/index.d.ts +1 -0
- package/dist/serialization/resources/groups/types/index.js +1 -0
- package/dist/serialization/resources/identities/index.d.ts +1 -0
- package/dist/serialization/resources/identities/index.js +1 -0
- package/dist/serialization/resources/identities/types/IdentitiesListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/identities/types/IdentitiesListRequestOrder.js +41 -0
- package/dist/serialization/resources/identities/types/index.d.ts +1 -0
- package/dist/serialization/resources/identities/types/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +8 -5
- package/dist/serialization/resources/index.js +9 -6
- package/dist/serialization/resources/models/index.d.ts +1 -0
- package/dist/serialization/resources/models/index.js +1 -0
- package/dist/serialization/resources/models/resources/embeddings/client/list.d.ts +11 -0
- package/dist/serialization/resources/{embeddingModels → models/resources/embeddings}/client/list.js +2 -2
- package/dist/serialization/resources/models/resources/index.d.ts +1 -0
- package/dist/serialization/resources/models/resources/index.js +37 -0
- package/dist/serialization/resources/providers/index.d.ts +1 -0
- package/dist/serialization/resources/providers/index.js +1 -0
- package/dist/serialization/resources/providers/types/ProvidersListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/providers/types/ProvidersListRequestOrder.js +41 -0
- package/dist/serialization/resources/providers/types/index.d.ts +1 -0
- package/dist/serialization/resources/providers/types/index.js +17 -0
- package/dist/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts +1 -0
- package/dist/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.js +1 -0
- package/dist/serialization/resources/steps/types/StepsListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/steps/types/StepsListRequestOrder.js +41 -0
- package/dist/serialization/resources/steps/types/index.d.ts +1 -0
- package/dist/serialization/resources/steps/types/index.js +1 -0
- package/dist/serialization/resources/tools/types/ToolsListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/tools/types/ToolsListRequestOrder.js +41 -0
- package/dist/serialization/resources/tools/types/index.d.ts +1 -0
- package/dist/serialization/resources/tools/types/index.js +1 -0
- package/{serialization/types/BodyExportAgentSerialized.d.ts → dist/serialization/types/BodyExportAgent.d.ts} +2 -2
- package/dist/serialization/types/{BodyExportAgentSerialized.js → BodyExportAgent.js} +2 -2
- package/dist/serialization/types/DeploymentEntity.d.ts +2 -0
- package/dist/serialization/types/DeploymentEntity.js +2 -0
- package/dist/serialization/types/index.d.ts +1 -1
- package/dist/serialization/types/index.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +69 -62
- package/serialization/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
- package/serialization/resources/agents/types/AgentsListRequestOrder.js +41 -0
- package/serialization/resources/agents/types/AgentsListRequestOrderBy.d.ts +10 -0
- package/serialization/resources/agents/types/AgentsListRequestOrderBy.js +41 -0
- package/serialization/resources/agents/types/index.d.ts +2 -0
- package/serialization/resources/agents/types/index.js +2 -0
- package/serialization/resources/blocks/index.d.ts +1 -0
- package/serialization/resources/blocks/index.js +1 -0
- package/serialization/resources/blocks/types/BlocksListRequestOrder.d.ts +10 -0
- package/serialization/resources/blocks/types/BlocksListRequestOrder.js +41 -0
- package/serialization/resources/blocks/types/index.d.ts +1 -0
- package/serialization/resources/blocks/types/index.js +17 -0
- package/serialization/resources/folders/index.d.ts +1 -0
- package/serialization/resources/folders/index.js +1 -0
- package/serialization/resources/folders/types/FoldersListRequestOrder.d.ts +10 -0
- package/serialization/resources/folders/types/FoldersListRequestOrder.js +41 -0
- package/serialization/resources/folders/types/index.d.ts +1 -0
- package/serialization/resources/folders/types/index.js +17 -0
- package/serialization/resources/groups/types/GroupsListRequestOrder.d.ts +10 -0
- package/serialization/resources/groups/types/GroupsListRequestOrder.js +41 -0
- package/serialization/resources/groups/types/index.d.ts +1 -0
- package/serialization/resources/groups/types/index.js +1 -0
- package/serialization/resources/identities/index.d.ts +1 -0
- package/serialization/resources/identities/index.js +1 -0
- package/serialization/resources/identities/types/IdentitiesListRequestOrder.d.ts +10 -0
- package/serialization/resources/identities/types/IdentitiesListRequestOrder.js +41 -0
- package/serialization/resources/identities/types/index.d.ts +1 -0
- package/serialization/resources/identities/types/index.js +17 -0
- package/serialization/resources/index.d.ts +8 -5
- package/serialization/resources/index.js +9 -6
- package/serialization/resources/models/index.d.ts +1 -0
- package/serialization/resources/models/index.js +1 -0
- package/serialization/resources/models/resources/embeddings/client/list.d.ts +11 -0
- package/serialization/resources/{embeddingModels → models/resources/embeddings}/client/list.js +2 -2
- package/serialization/resources/models/resources/index.d.ts +1 -0
- package/serialization/resources/models/resources/index.js +37 -0
- package/serialization/resources/providers/index.d.ts +1 -0
- package/serialization/resources/providers/index.js +1 -0
- package/serialization/resources/providers/types/ProvidersListRequestOrder.d.ts +10 -0
- package/serialization/resources/providers/types/ProvidersListRequestOrder.js +41 -0
- package/serialization/resources/providers/types/index.d.ts +1 -0
- package/serialization/resources/providers/types/index.js +17 -0
- package/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts +1 -0
- package/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.js +1 -0
- package/serialization/resources/steps/types/StepsListRequestOrder.d.ts +10 -0
- package/serialization/resources/steps/types/StepsListRequestOrder.js +41 -0
- package/serialization/resources/steps/types/index.d.ts +1 -0
- package/serialization/resources/steps/types/index.js +1 -0
- package/serialization/resources/tools/types/ToolsListRequestOrder.d.ts +10 -0
- package/serialization/resources/tools/types/ToolsListRequestOrder.js +41 -0
- package/serialization/resources/tools/types/index.d.ts +1 -0
- package/serialization/resources/tools/types/index.js +1 -0
- package/{dist/serialization/types/BodyExportAgentSerialized.d.ts → serialization/types/BodyExportAgent.d.ts} +2 -2
- package/serialization/types/{BodyExportAgentSerialized.js → BodyExportAgent.js} +2 -2
- package/serialization/types/DeploymentEntity.d.ts +2 -0
- package/serialization/types/DeploymentEntity.js +2 -0
- package/serialization/types/index.d.ts +1 -1
- package/serialization/types/index.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/dist/serialization/resources/embeddingModels/client/list.d.ts +0 -11
- package/serialization/resources/embeddingModels/client/list.d.ts +0 -11
- /package/api/resources/agents/client/requests/{BodyImportAgentSerialized.js → BodyImportAgent.js} +0 -0
- /package/api/{types/BodyExportAgentSerialized.js → resources/folders/client/requests/FoldersListRequest.js} +0 -0
- /package/api/resources/{embeddingModels → models/resources/embeddings}/client/index.d.ts +0 -0
- /package/api/resources/{embeddingModels → models/resources/embeddings}/client/index.js +0 -0
- /package/api/resources/{embeddingModels → models/resources/embeddings}/index.d.ts +0 -0
- /package/api/resources/{embeddingModels → models/resources/embeddings}/index.js +0 -0
- /package/{dist/api/resources/agents/client/requests/BodyImportAgentSerialized.js → api/types/BodyExportAgent.js} +0 -0
- /package/dist/api/{types/BodyExportAgentSerialized.js → resources/agents/client/requests/BodyImportAgent.js} +0 -0
- /package/dist/api/resources/{embeddingModels → models/resources/embeddings}/client/index.d.ts +0 -0
- /package/dist/api/resources/{embeddingModels → models/resources/embeddings}/client/index.js +0 -0
- /package/dist/api/resources/{embeddingModels → models/resources/embeddings}/index.d.ts +0 -0
- /package/dist/api/resources/{embeddingModels → models/resources/embeddings}/index.js +0 -0
- /package/dist/serialization/resources/{embeddingModels → models/resources/embeddings}/client/index.d.ts +0 -0
- /package/dist/serialization/resources/{embeddingModels → models/resources/embeddings}/client/index.js +0 -0
- /package/dist/serialization/resources/{embeddingModels → models/resources/embeddings}/index.d.ts +0 -0
- /package/dist/serialization/resources/{embeddingModels → models/resources/embeddings}/index.js +0 -0
- /package/serialization/resources/{embeddingModels → models/resources/embeddings}/client/index.d.ts +0 -0
- /package/serialization/resources/{embeddingModels → models/resources/embeddings}/client/index.js +0 -0
- /package/serialization/resources/{embeddingModels → models/resources/embeddings}/index.d.ts +0 -0
- /package/serialization/resources/{embeddingModels → models/resources/embeddings}/index.js +0 -0
package/Client.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ import { Agents } from "./api/resources/agents/client/Client";
|
|
|
10
10
|
import { Groups } from "./api/resources/groups/client/Client";
|
|
11
11
|
import { Identities } from "./api/resources/identities/client/Client";
|
|
12
12
|
import { Models } from "./api/resources/models/client/Client";
|
|
13
|
-
import { EmbeddingModels } from "./api/resources/embeddingModels/client/Client";
|
|
14
13
|
import { Blocks } from "./api/resources/blocks/client/Client";
|
|
15
14
|
import { Jobs } from "./api/resources/jobs/client/Client";
|
|
16
15
|
import { Health } from "./api/resources/health/client/Client";
|
|
@@ -56,7 +55,6 @@ export declare class LettaClient {
|
|
|
56
55
|
protected _groups: Groups | undefined;
|
|
57
56
|
protected _identities: Identities | undefined;
|
|
58
57
|
protected _models: Models | undefined;
|
|
59
|
-
protected _embeddingModels: EmbeddingModels | undefined;
|
|
60
58
|
protected _blocks: Blocks | undefined;
|
|
61
59
|
protected _jobs: Jobs | undefined;
|
|
62
60
|
protected _health: Health | undefined;
|
|
@@ -78,7 +76,6 @@ export declare class LettaClient {
|
|
|
78
76
|
get groups(): Groups;
|
|
79
77
|
get identities(): Identities;
|
|
80
78
|
get models(): Models;
|
|
81
|
-
get embeddingModels(): EmbeddingModels;
|
|
82
79
|
get blocks(): Blocks;
|
|
83
80
|
get jobs(): Jobs;
|
|
84
81
|
get health(): Health;
|
package/Client.js
CHANGED
|
@@ -11,20 +11,19 @@ const Client_4 = require("./api/resources/agents/client/Client");
|
|
|
11
11
|
const Client_5 = require("./api/resources/groups/client/Client");
|
|
12
12
|
const Client_6 = require("./api/resources/identities/client/Client");
|
|
13
13
|
const Client_7 = require("./api/resources/models/client/Client");
|
|
14
|
-
const Client_8 = require("./api/resources/
|
|
15
|
-
const Client_9 = require("./api/resources/
|
|
16
|
-
const Client_10 = require("./api/resources/
|
|
17
|
-
const Client_11 = require("./api/resources/
|
|
18
|
-
const Client_12 = require("./api/resources/
|
|
19
|
-
const Client_13 = require("./api/resources/
|
|
20
|
-
const Client_14 = require("./api/resources/
|
|
21
|
-
const Client_15 = require("./api/resources/
|
|
22
|
-
const Client_16 = require("./api/resources/
|
|
23
|
-
const Client_17 = require("./api/resources/
|
|
24
|
-
const Client_18 = require("./api/resources/
|
|
25
|
-
const Client_19 = require("./api/resources/
|
|
26
|
-
const Client_20 = require("./api/resources/
|
|
27
|
-
const Client_21 = require("./api/resources/projects/client/Client");
|
|
14
|
+
const Client_8 = require("./api/resources/blocks/client/Client");
|
|
15
|
+
const Client_9 = require("./api/resources/jobs/client/Client");
|
|
16
|
+
const Client_10 = require("./api/resources/health/client/Client");
|
|
17
|
+
const Client_11 = require("./api/resources/providers/client/Client");
|
|
18
|
+
const Client_12 = require("./api/resources/runs/client/Client");
|
|
19
|
+
const Client_13 = require("./api/resources/steps/client/Client");
|
|
20
|
+
const Client_14 = require("./api/resources/tags/client/Client");
|
|
21
|
+
const Client_15 = require("./api/resources/telemetry/client/Client");
|
|
22
|
+
const Client_16 = require("./api/resources/batches/client/Client");
|
|
23
|
+
const Client_17 = require("./api/resources/voice/client/Client");
|
|
24
|
+
const Client_18 = require("./api/resources/templates/client/Client");
|
|
25
|
+
const Client_19 = require("./api/resources/clientSideAccessTokens/client/Client");
|
|
26
|
+
const Client_20 = require("./api/resources/projects/client/Client");
|
|
28
27
|
class LettaClient {
|
|
29
28
|
constructor(_options = {}) {
|
|
30
29
|
this._options = _options;
|
|
@@ -57,61 +56,57 @@ class LettaClient {
|
|
|
57
56
|
var _a;
|
|
58
57
|
return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new Client_7.Models(this._options)));
|
|
59
58
|
}
|
|
60
|
-
get embeddingModels() {
|
|
61
|
-
var _a;
|
|
62
|
-
return ((_a = this._embeddingModels) !== null && _a !== void 0 ? _a : (this._embeddingModels = new Client_8.EmbeddingModels(this._options)));
|
|
63
|
-
}
|
|
64
59
|
get blocks() {
|
|
65
60
|
var _a;
|
|
66
|
-
return ((_a = this._blocks) !== null && _a !== void 0 ? _a : (this._blocks = new
|
|
61
|
+
return ((_a = this._blocks) !== null && _a !== void 0 ? _a : (this._blocks = new Client_8.Blocks(this._options)));
|
|
67
62
|
}
|
|
68
63
|
get jobs() {
|
|
69
64
|
var _a;
|
|
70
|
-
return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new
|
|
65
|
+
return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_9.Jobs(this._options)));
|
|
71
66
|
}
|
|
72
67
|
get health() {
|
|
73
68
|
var _a;
|
|
74
|
-
return ((_a = this._health) !== null && _a !== void 0 ? _a : (this._health = new
|
|
69
|
+
return ((_a = this._health) !== null && _a !== void 0 ? _a : (this._health = new Client_10.Health(this._options)));
|
|
75
70
|
}
|
|
76
71
|
get providers() {
|
|
77
72
|
var _a;
|
|
78
|
-
return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new
|
|
73
|
+
return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new Client_11.Providers(this._options)));
|
|
79
74
|
}
|
|
80
75
|
get runs() {
|
|
81
76
|
var _a;
|
|
82
|
-
return ((_a = this._runs) !== null && _a !== void 0 ? _a : (this._runs = new
|
|
77
|
+
return ((_a = this._runs) !== null && _a !== void 0 ? _a : (this._runs = new Client_12.Runs(this._options)));
|
|
83
78
|
}
|
|
84
79
|
get steps() {
|
|
85
80
|
var _a;
|
|
86
|
-
return ((_a = this._steps) !== null && _a !== void 0 ? _a : (this._steps = new
|
|
81
|
+
return ((_a = this._steps) !== null && _a !== void 0 ? _a : (this._steps = new Client_13.Steps(this._options)));
|
|
87
82
|
}
|
|
88
83
|
get tags() {
|
|
89
84
|
var _a;
|
|
90
|
-
return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new
|
|
85
|
+
return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new Client_14.Tags(this._options)));
|
|
91
86
|
}
|
|
92
87
|
get telemetry() {
|
|
93
88
|
var _a;
|
|
94
|
-
return ((_a = this._telemetry) !== null && _a !== void 0 ? _a : (this._telemetry = new
|
|
89
|
+
return ((_a = this._telemetry) !== null && _a !== void 0 ? _a : (this._telemetry = new Client_15.Telemetry(this._options)));
|
|
95
90
|
}
|
|
96
91
|
get batches() {
|
|
97
92
|
var _a;
|
|
98
|
-
return ((_a = this._batches) !== null && _a !== void 0 ? _a : (this._batches = new
|
|
93
|
+
return ((_a = this._batches) !== null && _a !== void 0 ? _a : (this._batches = new Client_16.Batches(this._options)));
|
|
99
94
|
}
|
|
100
95
|
get voice() {
|
|
101
96
|
var _a;
|
|
102
|
-
return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new
|
|
97
|
+
return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new Client_17.Voice(this._options)));
|
|
103
98
|
}
|
|
104
99
|
get templates() {
|
|
105
100
|
var _a;
|
|
106
|
-
return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new
|
|
101
|
+
return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_18.Templates(this._options)));
|
|
107
102
|
}
|
|
108
103
|
get clientSideAccessTokens() {
|
|
109
104
|
var _a;
|
|
110
|
-
return ((_a = this._clientSideAccessTokens) !== null && _a !== void 0 ? _a : (this._clientSideAccessTokens = new
|
|
105
|
+
return ((_a = this._clientSideAccessTokens) !== null && _a !== void 0 ? _a : (this._clientSideAccessTokens = new Client_19.ClientSideAccessTokens(this._options)));
|
|
111
106
|
}
|
|
112
107
|
get projects() {
|
|
113
108
|
var _a;
|
|
114
|
-
return ((_a = this._projects) !== null && _a !== void 0 ? _a : (this._projects = new
|
|
109
|
+
return ((_a = this._projects) !== null && _a !== void 0 ? _a : (this._projects = new Client_20.Projects(this._options)));
|
|
115
110
|
}
|
|
116
111
|
}
|
|
117
112
|
exports.LettaClient = LettaClient;
|
|
@@ -132,7 +132,7 @@ export declare class Agents {
|
|
|
132
132
|
* Returns the IDs of all imported agents.
|
|
133
133
|
*
|
|
134
134
|
* @param {File | fs.ReadStream | Blob} file
|
|
135
|
-
* @param {Letta.
|
|
135
|
+
* @param {Letta.BodyImportAgent} request
|
|
136
136
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
137
137
|
*
|
|
138
138
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
@@ -140,7 +140,7 @@ export declare class Agents {
|
|
|
140
140
|
* @example
|
|
141
141
|
* await client.agents.importFile(fs.createReadStream("/path/to/your/file"), {})
|
|
142
142
|
*/
|
|
143
|
-
importFile(file: File | fs.ReadStream | Blob, request: Letta.
|
|
143
|
+
importFile(file: File | fs.ReadStream | Blob, request: Letta.BodyImportAgent, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Letta.ImportedAgentsResponse>;
|
|
144
144
|
private __importFile;
|
|
145
145
|
/**
|
|
146
146
|
* Get the state of the agent.
|
|
@@ -52,8 +52,8 @@ exports.Agents = void 0;
|
|
|
52
52
|
const environments = __importStar(require("../../../../environments"));
|
|
53
53
|
const core = __importStar(require("../../../../core"));
|
|
54
54
|
const Letta = __importStar(require("../../../index"));
|
|
55
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
56
55
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
56
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
57
57
|
const errors = __importStar(require("../../../../errors/index"));
|
|
58
58
|
const Client_1 = require("../resources/context/client/Client");
|
|
59
59
|
const Client_2 = require("../resources/tools/client/Client");
|
|
@@ -139,7 +139,7 @@ class Agents {
|
|
|
139
139
|
__list() {
|
|
140
140
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
141
141
|
var _a, _b, _c;
|
|
142
|
-
const { name, tags, matchAllTags, before, after, limit, queryText, projectId, templateId, baseTemplateId, identityId, identifierKeys, includeRelationships, ascending, sortBy, } = request;
|
|
142
|
+
const { name, tags, matchAllTags, before, after, limit, queryText, projectId, templateId, baseTemplateId, identityId, identifierKeys, includeRelationships, order, orderBy, ascending, sortBy, } = request;
|
|
143
143
|
const _queryParams = {};
|
|
144
144
|
if (name != null) {
|
|
145
145
|
_queryParams["name"] = name;
|
|
@@ -195,6 +195,16 @@ class Agents {
|
|
|
195
195
|
_queryParams["include_relationships"] = includeRelationships;
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
+
if (order != null) {
|
|
199
|
+
_queryParams["order"] = serializers.AgentsListRequestOrder.jsonOrThrow(order, {
|
|
200
|
+
unrecognizedObjectKeys: "strip",
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
if (orderBy != null) {
|
|
204
|
+
_queryParams["order_by"] = serializers.AgentsListRequestOrderBy.jsonOrThrow(orderBy, {
|
|
205
|
+
unrecognizedObjectKeys: "strip",
|
|
206
|
+
});
|
|
207
|
+
}
|
|
198
208
|
if (ascending != null) {
|
|
199
209
|
_queryParams["ascending"] = ascending.toString();
|
|
200
210
|
}
|
|
@@ -206,7 +216,7 @@ class Agents {
|
|
|
206
216
|
method: "GET",
|
|
207
217
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
208
218
|
? yield core.Supplier.get(this._options.project)
|
|
209
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
219
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
210
220
|
contentType: "application/json",
|
|
211
221
|
queryParameters: _queryParams,
|
|
212
222
|
requestType: "json",
|
|
@@ -283,7 +293,7 @@ class Agents {
|
|
|
283
293
|
method: "POST",
|
|
284
294
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
285
295
|
? yield core.Supplier.get(this._options.project)
|
|
286
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
296
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
287
297
|
contentType: "application/json",
|
|
288
298
|
requestType: "json",
|
|
289
299
|
body: serializers.CreateAgentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -359,7 +369,7 @@ class Agents {
|
|
|
359
369
|
method: "GET",
|
|
360
370
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
361
371
|
? yield core.Supplier.get(this._options.project)
|
|
362
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
372
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
363
373
|
contentType: "application/json",
|
|
364
374
|
requestType: "json",
|
|
365
375
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -448,7 +458,7 @@ class Agents {
|
|
|
448
458
|
method: "GET",
|
|
449
459
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
450
460
|
? yield core.Supplier.get(this._options.project)
|
|
451
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
461
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
452
462
|
contentType: "application/json",
|
|
453
463
|
queryParameters: _queryParams,
|
|
454
464
|
requestType: "json",
|
|
@@ -508,7 +518,7 @@ class Agents {
|
|
|
508
518
|
* Returns the IDs of all imported agents.
|
|
509
519
|
*
|
|
510
520
|
* @param {File | fs.ReadStream | Blob} file
|
|
511
|
-
* @param {Letta.
|
|
521
|
+
* @param {Letta.BodyImportAgent} request
|
|
512
522
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
513
523
|
*
|
|
514
524
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
@@ -548,7 +558,7 @@ class Agents {
|
|
|
548
558
|
method: "POST",
|
|
549
559
|
headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
550
560
|
? yield core.Supplier.get(this._options.project)
|
|
551
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
561
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-override-embedding-model": request.overrideEmbeddingModel != null ? request.overrideEmbeddingModel : undefined }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
552
562
|
requestType: "file",
|
|
553
563
|
duplex: _maybeEncodedRequest.duplex,
|
|
554
564
|
body: _maybeEncodedRequest.body,
|
|
@@ -636,7 +646,7 @@ class Agents {
|
|
|
636
646
|
method: "GET",
|
|
637
647
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
638
648
|
? yield core.Supplier.get(this._options.project)
|
|
639
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
649
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
640
650
|
contentType: "application/json",
|
|
641
651
|
queryParameters: _queryParams,
|
|
642
652
|
requestType: "json",
|
|
@@ -713,7 +723,7 @@ class Agents {
|
|
|
713
723
|
method: "DELETE",
|
|
714
724
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
715
725
|
? yield core.Supplier.get(this._options.project)
|
|
716
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
726
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
717
727
|
contentType: "application/json",
|
|
718
728
|
requestType: "json",
|
|
719
729
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -781,7 +791,7 @@ class Agents {
|
|
|
781
791
|
method: "PATCH",
|
|
782
792
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
783
793
|
? yield core.Supplier.get(this._options.project)
|
|
784
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
794
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
785
795
|
contentType: "application/json",
|
|
786
796
|
requestType: "json",
|
|
787
797
|
body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -867,7 +877,7 @@ class Agents {
|
|
|
867
877
|
method: "POST",
|
|
868
878
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
869
879
|
? yield core.Supplier.get(this._options.project)
|
|
870
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
880
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
871
881
|
contentType: "application/json",
|
|
872
882
|
queryParameters: _queryParams,
|
|
873
883
|
requestType: "json",
|
|
@@ -935,7 +945,7 @@ class Agents {
|
|
|
935
945
|
method: "POST",
|
|
936
946
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
937
947
|
? yield core.Supplier.get(this._options.project)
|
|
938
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
948
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
939
949
|
contentType: "application/json",
|
|
940
950
|
requestType: "json",
|
|
941
951
|
body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Letta from "../../../../index";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {}
|
|
@@ -58,6 +59,14 @@ export interface AgentsListRequest {
|
|
|
58
59
|
* Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include in the response. If not provided, all relationships are loaded by default. Using this can optimize performance by reducing unnecessary joins.
|
|
59
60
|
*/
|
|
60
61
|
includeRelationships?: string | string[];
|
|
62
|
+
/**
|
|
63
|
+
* Sort order for agents by creation time. 'asc' for oldest first, 'desc' for newest first
|
|
64
|
+
*/
|
|
65
|
+
order?: Letta.AgentsListRequestOrder;
|
|
66
|
+
/**
|
|
67
|
+
* Field to sort by
|
|
68
|
+
*/
|
|
69
|
+
orderBy?: Letta.AgentsListRequestOrderBy;
|
|
61
70
|
/**
|
|
62
71
|
* Whether to sort agents oldest to newest (True) or newest to oldest (False, default)
|
|
63
72
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { type AgentsListRequest } from "./AgentsListRequest";
|
|
2
2
|
export { type CreateAgentRequest } from "./CreateAgentRequest";
|
|
3
3
|
export { type AgentsExportFileRequest } from "./AgentsExportFileRequest";
|
|
4
|
-
export { type
|
|
4
|
+
export { type BodyImportAgent } from "./BodyImportAgent";
|
|
5
5
|
export { type AgentsRetrieveRequest } from "./AgentsRetrieveRequest";
|
|
6
6
|
export { type UpdateAgent } from "./UpdateAgent";
|
|
7
7
|
export { type SummarizeAgentConversationRequest } from "./SummarizeAgentConversationRequest";
|
|
@@ -82,7 +82,7 @@ class Blocks {
|
|
|
82
82
|
method: "GET",
|
|
83
83
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
84
84
|
? yield core.Supplier.get(this._options.project)
|
|
85
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
85
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
86
86
|
contentType: "application/json",
|
|
87
87
|
requestType: "json",
|
|
88
88
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -160,7 +160,7 @@ class Blocks {
|
|
|
160
160
|
method: "PATCH",
|
|
161
161
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
162
162
|
? yield core.Supplier.get(this._options.project)
|
|
163
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
163
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
164
164
|
contentType: "application/json",
|
|
165
165
|
requestType: "json",
|
|
166
166
|
body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -237,7 +237,7 @@ class Blocks {
|
|
|
237
237
|
method: "GET",
|
|
238
238
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
239
239
|
? yield core.Supplier.get(this._options.project)
|
|
240
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
240
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
241
241
|
contentType: "application/json",
|
|
242
242
|
requestType: "json",
|
|
243
243
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -314,7 +314,7 @@ class Blocks {
|
|
|
314
314
|
method: "PATCH",
|
|
315
315
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
316
316
|
? yield core.Supplier.get(this._options.project)
|
|
317
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
317
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
318
318
|
contentType: "application/json",
|
|
319
319
|
requestType: "json",
|
|
320
320
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -391,7 +391,7 @@ class Blocks {
|
|
|
391
391
|
method: "PATCH",
|
|
392
392
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
393
393
|
? yield core.Supplier.get(this._options.project)
|
|
394
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
394
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
395
395
|
contentType: "application/json",
|
|
396
396
|
requestType: "json",
|
|
397
397
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -81,7 +81,7 @@ class Context {
|
|
|
81
81
|
method: "GET",
|
|
82
82
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
83
83
|
? yield core.Supplier.get(this._options.project)
|
|
84
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
84
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
requestType: "json",
|
|
87
87
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -82,7 +82,7 @@ class CoreMemory {
|
|
|
82
82
|
method: "GET",
|
|
83
83
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
84
84
|
? yield core.Supplier.get(this._options.project)
|
|
85
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
85
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
86
86
|
contentType: "application/json",
|
|
87
87
|
requestType: "json",
|
|
88
88
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -84,7 +84,7 @@ class Files {
|
|
|
84
84
|
method: "PATCH",
|
|
85
85
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
86
86
|
? yield core.Supplier.get(this._options.project)
|
|
87
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
87
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
88
88
|
contentType: "application/json",
|
|
89
89
|
requestType: "json",
|
|
90
90
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -165,7 +165,7 @@ class Files {
|
|
|
165
165
|
method: "PATCH",
|
|
166
166
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
167
167
|
? yield core.Supplier.get(this._options.project)
|
|
168
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
168
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
169
169
|
contentType: "application/json",
|
|
170
170
|
requestType: "json",
|
|
171
171
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -245,7 +245,7 @@ class Files {
|
|
|
245
245
|
method: "PATCH",
|
|
246
246
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
247
247
|
? yield core.Supplier.get(this._options.project)
|
|
248
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
248
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
249
249
|
contentType: "application/json",
|
|
250
250
|
requestType: "json",
|
|
251
251
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -324,7 +324,7 @@ class Files {
|
|
|
324
324
|
method: "GET",
|
|
325
325
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
326
326
|
? yield core.Supplier.get(this._options.project)
|
|
327
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
327
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
328
328
|
contentType: "application/json",
|
|
329
329
|
queryParameters: _queryParams,
|
|
330
330
|
requestType: "json",
|
|
@@ -82,7 +82,7 @@ class Folders {
|
|
|
82
82
|
method: "PATCH",
|
|
83
83
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
84
84
|
? yield core.Supplier.get(this._options.project)
|
|
85
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
85
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
86
86
|
contentType: "application/json",
|
|
87
87
|
requestType: "json",
|
|
88
88
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -159,7 +159,7 @@ class Folders {
|
|
|
159
159
|
method: "PATCH",
|
|
160
160
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
161
161
|
? yield core.Supplier.get(this._options.project)
|
|
162
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
162
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
163
163
|
contentType: "application/json",
|
|
164
164
|
requestType: "json",
|
|
165
165
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -235,7 +235,7 @@ class Folders {
|
|
|
235
235
|
method: "GET",
|
|
236
236
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
237
237
|
? yield core.Supplier.get(this._options.project)
|
|
238
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
238
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
239
239
|
contentType: "application/json",
|
|
240
240
|
requestType: "json",
|
|
241
241
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -87,7 +87,7 @@ class Groups {
|
|
|
87
87
|
method: "GET",
|
|
88
88
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
89
89
|
? yield core.Supplier.get(this._options.project)
|
|
90
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
90
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
91
91
|
contentType: "application/json",
|
|
92
92
|
queryParameters: _queryParams,
|
|
93
93
|
requestType: "json",
|
|
@@ -83,7 +83,7 @@ class MemoryVariables {
|
|
|
83
83
|
method: "GET",
|
|
84
84
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
85
85
|
? yield core.Supplier.get(this._options.project)
|
|
86
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
86
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
|
|
87
87
|
contentType: "application/json",
|
|
88
88
|
requestType: "json",
|
|
89
89
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|