@letta-ai/letta-client 0.0.68646 → 0.0.68648
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/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 -4
- package/api/resources/index.js +9 -5
- package/api/resources/jobs/client/Client.js +5 -5
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/models/resources/embeddings/client/Client.js +1 -1
- 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/{dist/api/types/BodyExportAgentSerialized.d.ts → api/types/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/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 -4
- package/dist/api/resources/index.js +9 -5
- package/dist/api/resources/jobs/client/Client.js +5 -5
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
- 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/{api/types/BodyExportAgentSerialized.d.ts → dist/api/types/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 -4
- package/dist/serialization/resources/index.js +9 -5
- 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/dist/serialization/types/{BodyExportAgentSerialized.d.ts → 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 +12 -5
- 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 -4
- package/serialization/resources/index.js +9 -5
- 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/serialization/types/{BodyExportAgentSerialized.d.ts → 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/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/{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
|
@@ -82,7 +82,7 @@ class Feedback {
|
|
|
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.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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
|
body: serializers.steps.AddFeedbackRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -81,7 +81,7 @@ class Metrics {
|
|
|
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.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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,
|
|
@@ -79,7 +79,7 @@ class Trace {
|
|
|
79
79
|
method: "GET",
|
|
80
80
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
81
81
|
? yield core.Supplier.get(this._options.project)
|
|
82
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
82
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
83
83
|
contentType: "application/json",
|
|
84
84
|
requestType: "json",
|
|
85
85
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Sort order for steps by creation time. 'asc' for oldest first, 'desc' for newest first
|
|
6
|
+
*/
|
|
7
|
+
export type StepsListRequestOrder = "asc" | "desc";
|
|
8
|
+
export declare const StepsListRequestOrder: {
|
|
9
|
+
readonly Asc: "asc";
|
|
10
|
+
readonly Desc: "desc";
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.StepsListRequestOrder = void 0;
|
|
7
|
+
exports.StepsListRequestOrder = {
|
|
8
|
+
Asc: "asc",
|
|
9
|
+
Desc: "desc",
|
|
10
|
+
};
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./StepsListRequestOrder"), exports);
|
|
17
18
|
__exportStar(require("./StepsListRequestFeedback"), exports);
|
|
@@ -31,7 +31,7 @@ export declare class Tags {
|
|
|
31
31
|
protected readonly _options: Tags.Options;
|
|
32
32
|
constructor(_options?: Tags.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Get
|
|
34
|
+
* Get the list of all agent tags that have been created.
|
|
35
35
|
*
|
|
36
36
|
* @param {Letta.TagsListRequest} request
|
|
37
37
|
* @param {Tags.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -60,7 +60,7 @@ class Tags {
|
|
|
60
60
|
this._options = _options;
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
|
-
* Get
|
|
63
|
+
* Get the list of all agent tags that have been created.
|
|
64
64
|
*
|
|
65
65
|
* @param {Letta.TagsListRequest} request
|
|
66
66
|
* @param {Tags.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -103,7 +103,7 @@ class Tags {
|
|
|
103
103
|
method: "GET",
|
|
104
104
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
105
105
|
? yield core.Supplier.get(this._options.project)
|
|
106
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
106
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
107
107
|
contentType: "application/json",
|
|
108
108
|
queryParameters: _queryParams,
|
|
109
109
|
requestType: "json",
|
|
@@ -79,7 +79,7 @@ class Telemetry {
|
|
|
79
79
|
method: "GET",
|
|
80
80
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
81
81
|
? yield core.Supplier.get(this._options.project)
|
|
82
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
82
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
83
83
|
contentType: "application/json",
|
|
84
84
|
requestType: "json",
|
|
85
85
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -118,7 +118,7 @@ class Templates {
|
|
|
118
118
|
method: "GET",
|
|
119
119
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
120
120
|
? yield core.Supplier.get(this._options.project)
|
|
121
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
121
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
122
122
|
contentType: "application/json",
|
|
123
123
|
queryParameters: _queryParams,
|
|
124
124
|
requestType: "json",
|
|
@@ -186,7 +186,7 @@ class Templates {
|
|
|
186
186
|
method: "POST",
|
|
187
187
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
188
188
|
? yield core.Supplier.get(this._options.project)
|
|
189
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
189
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
190
190
|
contentType: "application/json",
|
|
191
191
|
requestType: "json",
|
|
192
192
|
body: serializers.TemplatesSaveTemplateVersionRequest.jsonOrThrow(request, {
|
|
@@ -261,7 +261,7 @@ class Templates {
|
|
|
261
261
|
method: "DELETE",
|
|
262
262
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
263
263
|
? yield core.Supplier.get(this._options.project)
|
|
264
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
264
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
265
265
|
contentType: "application/json",
|
|
266
266
|
requestType: "json",
|
|
267
267
|
body: serializers.TemplatesDeleteTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -331,7 +331,7 @@ class Templates {
|
|
|
331
331
|
method: "GET",
|
|
332
332
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
333
333
|
? yield core.Supplier.get(this._options.project)
|
|
334
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
334
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
335
335
|
contentType: "application/json",
|
|
336
336
|
requestType: "json",
|
|
337
337
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -398,7 +398,7 @@ class Templates {
|
|
|
398
398
|
method: "POST",
|
|
399
399
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
400
400
|
? yield core.Supplier.get(this._options.project)
|
|
401
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
401
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
402
402
|
contentType: "application/json",
|
|
403
403
|
requestType: "json",
|
|
404
404
|
body: serializers.TemplatesForkTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -473,7 +473,7 @@ class Templates {
|
|
|
473
473
|
method: "POST",
|
|
474
474
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
475
475
|
? yield core.Supplier.get(this._options.project)
|
|
476
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
476
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
477
477
|
contentType: "application/json",
|
|
478
478
|
requestType: "json",
|
|
479
479
|
body: serializers.TemplatesCreateTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -550,7 +550,7 @@ class Templates {
|
|
|
550
550
|
method: "PATCH",
|
|
551
551
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
552
552
|
? yield core.Supplier.get(this._options.project)
|
|
553
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
553
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
554
554
|
contentType: "application/json",
|
|
555
555
|
requestType: "json",
|
|
556
556
|
body: serializers.TemplatesRenameTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -634,7 +634,7 @@ class Templates {
|
|
|
634
634
|
method: "PATCH",
|
|
635
635
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
636
636
|
? yield core.Supplier.get(this._options.project)
|
|
637
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
637
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
638
638
|
contentType: "application/json",
|
|
639
639
|
requestType: "json",
|
|
640
640
|
body: serializers.TemplatesUpdateTemplateDescriptionRequest.jsonOrThrow(request, {
|
|
@@ -719,7 +719,7 @@ class Templates {
|
|
|
719
719
|
method: "GET",
|
|
720
720
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
721
721
|
? yield core.Supplier.get(this._options.project)
|
|
722
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
722
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
723
723
|
contentType: "application/json",
|
|
724
724
|
queryParameters: _queryParams,
|
|
725
725
|
requestType: "json",
|
|
@@ -83,7 +83,7 @@ class Agents {
|
|
|
83
83
|
method: "POST",
|
|
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.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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
|
body: serializers.templates.AgentsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -84,7 +84,7 @@ export declare class Tools {
|
|
|
84
84
|
count(request?: Letta.ToolsCountRequest, requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<number>;
|
|
85
85
|
private __count;
|
|
86
86
|
/**
|
|
87
|
-
* Get a list of all tools available to agents
|
|
87
|
+
* Get a list of all tools available to agents.
|
|
88
88
|
*
|
|
89
89
|
* @param {Letta.ToolsListRequest} request
|
|
90
90
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -81,7 +81,7 @@ class Tools {
|
|
|
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.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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,
|
|
@@ -157,7 +157,7 @@ class Tools {
|
|
|
157
157
|
method: "DELETE",
|
|
158
158
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
159
159
|
? yield core.Supplier.get(this._options.project)
|
|
160
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
160
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
161
161
|
contentType: "application/json",
|
|
162
162
|
requestType: "json",
|
|
163
163
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -225,7 +225,7 @@ class Tools {
|
|
|
225
225
|
method: "PATCH",
|
|
226
226
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
227
227
|
? yield core.Supplier.get(this._options.project)
|
|
228
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
228
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
229
229
|
contentType: "application/json",
|
|
230
230
|
requestType: "json",
|
|
231
231
|
body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -348,7 +348,7 @@ class Tools {
|
|
|
348
348
|
method: "GET",
|
|
349
349
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
350
350
|
? yield core.Supplier.get(this._options.project)
|
|
351
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
351
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
352
352
|
contentType: "application/json",
|
|
353
353
|
queryParameters: _queryParams,
|
|
354
354
|
requestType: "json",
|
|
@@ -404,7 +404,7 @@ class Tools {
|
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
/**
|
|
407
|
-
* Get a list of all tools available to agents
|
|
407
|
+
* Get a list of all tools available to agents.
|
|
408
408
|
*
|
|
409
409
|
* @param {Letta.ToolsListRequest} request
|
|
410
410
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -420,14 +420,25 @@ class Tools {
|
|
|
420
420
|
__list() {
|
|
421
421
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
422
422
|
var _a, _b, _c;
|
|
423
|
-
const { after, limit, name, names, toolIds, search, toolTypes, excludeToolTypes, returnOnlyLettaTools } = request;
|
|
423
|
+
const { before, after, limit, order, orderBy, name, names, toolIds, search, toolTypes, excludeToolTypes, returnOnlyLettaTools, } = request;
|
|
424
424
|
const _queryParams = {};
|
|
425
|
+
if (before != null) {
|
|
426
|
+
_queryParams["before"] = before;
|
|
427
|
+
}
|
|
425
428
|
if (after != null) {
|
|
426
429
|
_queryParams["after"] = after;
|
|
427
430
|
}
|
|
428
431
|
if (limit != null) {
|
|
429
432
|
_queryParams["limit"] = limit.toString();
|
|
430
433
|
}
|
|
434
|
+
if (order != null) {
|
|
435
|
+
_queryParams["order"] = serializers.ToolsListRequestOrder.jsonOrThrow(order, {
|
|
436
|
+
unrecognizedObjectKeys: "strip",
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
if (orderBy != null) {
|
|
440
|
+
_queryParams["order_by"] = orderBy;
|
|
441
|
+
}
|
|
431
442
|
if (name != null) {
|
|
432
443
|
_queryParams["name"] = name;
|
|
433
444
|
}
|
|
@@ -474,7 +485,7 @@ class Tools {
|
|
|
474
485
|
method: "GET",
|
|
475
486
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
476
487
|
? yield core.Supplier.get(this._options.project)
|
|
477
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
488
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
478
489
|
contentType: "application/json",
|
|
479
490
|
queryParameters: _queryParams,
|
|
480
491
|
requestType: "json",
|
|
@@ -553,7 +564,7 @@ class Tools {
|
|
|
553
564
|
method: "POST",
|
|
554
565
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
555
566
|
? yield core.Supplier.get(this._options.project)
|
|
556
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
567
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
557
568
|
contentType: "application/json",
|
|
558
569
|
requestType: "json",
|
|
559
570
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -632,7 +643,7 @@ class Tools {
|
|
|
632
643
|
method: "PUT",
|
|
633
644
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
634
645
|
? yield core.Supplier.get(this._options.project)
|
|
635
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
646
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
636
647
|
contentType: "application/json",
|
|
637
648
|
requestType: "json",
|
|
638
649
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -708,7 +719,7 @@ class Tools {
|
|
|
708
719
|
method: "POST",
|
|
709
720
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
710
721
|
? yield core.Supplier.get(this._options.project)
|
|
711
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
722
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
712
723
|
contentType: "application/json",
|
|
713
724
|
requestType: "json",
|
|
714
725
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -789,7 +800,7 @@ class Tools {
|
|
|
789
800
|
method: "POST",
|
|
790
801
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
791
802
|
? yield core.Supplier.get(this._options.project)
|
|
792
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
803
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
793
804
|
contentType: "application/json",
|
|
794
805
|
requestType: "json",
|
|
795
806
|
body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -867,7 +878,7 @@ class Tools {
|
|
|
867
878
|
method: "GET",
|
|
868
879
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
869
880
|
? 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.
|
|
881
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
871
882
|
contentType: "application/json",
|
|
872
883
|
requestType: "json",
|
|
873
884
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -943,7 +954,7 @@ class Tools {
|
|
|
943
954
|
method: "GET",
|
|
944
955
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
945
956
|
? yield core.Supplier.get(this._options.project)
|
|
946
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
957
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
947
958
|
contentType: "application/json",
|
|
948
959
|
requestType: "json",
|
|
949
960
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1019,7 +1030,7 @@ class Tools {
|
|
|
1019
1030
|
method: "POST",
|
|
1020
1031
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1021
1032
|
? yield core.Supplier.get(this._options.project)
|
|
1022
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
1033
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
1023
1034
|
contentType: "application/json",
|
|
1024
1035
|
requestType: "json",
|
|
1025
1036
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1096,7 +1107,7 @@ class Tools {
|
|
|
1096
1107
|
method: "GET",
|
|
1097
1108
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1098
1109
|
? yield core.Supplier.get(this._options.project)
|
|
1099
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
1110
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1100
1111
|
contentType: "application/json",
|
|
1101
1112
|
requestType: "json",
|
|
1102
1113
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1176,7 +1187,7 @@ class Tools {
|
|
|
1176
1187
|
method: "PUT",
|
|
1177
1188
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1178
1189
|
? yield core.Supplier.get(this._options.project)
|
|
1179
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
1190
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
1180
1191
|
contentType: "application/json",
|
|
1181
1192
|
requestType: "json",
|
|
1182
1193
|
body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1253,7 +1264,7 @@ class Tools {
|
|
|
1253
1264
|
method: "GET",
|
|
1254
1265
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1255
1266
|
? yield core.Supplier.get(this._options.project)
|
|
1256
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
1267
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
1257
1268
|
contentType: "application/json",
|
|
1258
1269
|
requestType: "json",
|
|
1259
1270
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1330,7 +1341,7 @@ class Tools {
|
|
|
1330
1341
|
method: "POST",
|
|
1331
1342
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1332
1343
|
? yield core.Supplier.get(this._options.project)
|
|
1333
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
1344
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
1334
1345
|
contentType: "application/json",
|
|
1335
1346
|
requestType: "json",
|
|
1336
1347
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1406,7 +1417,7 @@ class Tools {
|
|
|
1406
1417
|
method: "DELETE",
|
|
1407
1418
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1408
1419
|
? yield core.Supplier.get(this._options.project)
|
|
1409
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
1420
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
1410
1421
|
contentType: "application/json",
|
|
1411
1422
|
requestType: "json",
|
|
1412
1423
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1483,7 +1494,7 @@ class Tools {
|
|
|
1483
1494
|
method: "PATCH",
|
|
1484
1495
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1485
1496
|
? yield core.Supplier.get(this._options.project)
|
|
1486
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
1497
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
1487
1498
|
contentType: "application/json",
|
|
1488
1499
|
requestType: "json",
|
|
1489
1500
|
body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1565,7 +1576,7 @@ class Tools {
|
|
|
1565
1576
|
method: "POST",
|
|
1566
1577
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1567
1578
|
? yield core.Supplier.get(this._options.project)
|
|
1568
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
1579
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
1569
1580
|
contentType: "application/json",
|
|
1570
1581
|
requestType: "json",
|
|
1571
1582
|
body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1626,7 +1637,7 @@ class Tools {
|
|
|
1626
1637
|
method: "POST",
|
|
1627
1638
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1628
1639
|
? yield core.Supplier.get(this._options.project)
|
|
1629
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
1640
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
1630
1641
|
contentType: "application/json",
|
|
1631
1642
|
requestType: "json",
|
|
1632
1643
|
body: serializers.ConnectMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1,13 +1,35 @@
|
|
|
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
|
* {}
|
|
7
8
|
*/
|
|
8
9
|
export interface ToolsListRequest {
|
|
10
|
+
/**
|
|
11
|
+
* Tool ID cursor for pagination. Returns tools that come before this tool ID in the specified sort order
|
|
12
|
+
*/
|
|
13
|
+
before?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Tool ID cursor for pagination. Returns tools that come after this tool ID in the specified sort order
|
|
16
|
+
*/
|
|
9
17
|
after?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Maximum number of tools to return
|
|
20
|
+
*/
|
|
10
21
|
limit?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Sort order for tools by creation time. 'asc' for oldest first, 'desc' for newest first
|
|
24
|
+
*/
|
|
25
|
+
order?: Letta.ToolsListRequestOrder;
|
|
26
|
+
/**
|
|
27
|
+
* Field to sort by
|
|
28
|
+
*/
|
|
29
|
+
orderBy?: "created_at";
|
|
30
|
+
/**
|
|
31
|
+
* Filter by single tool name
|
|
32
|
+
*/
|
|
11
33
|
name?: string;
|
|
12
34
|
/**
|
|
13
35
|
* Filter by specific tool names
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Sort order for tools by creation time. 'asc' for oldest first, 'desc' for newest first
|
|
6
|
+
*/
|
|
7
|
+
export type ToolsListRequestOrder = "asc" | "desc";
|
|
8
|
+
export declare const ToolsListRequestOrder: {
|
|
9
|
+
readonly Asc: "asc";
|
|
10
|
+
readonly Desc: "desc";
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ToolsListRequestOrder = void 0;
|
|
7
|
+
exports.ToolsListRequestOrder = {
|
|
8
|
+
Asc: "asc",
|
|
9
|
+
Desc: "desc",
|
|
10
|
+
};
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ToolsListRequestOrder"), exports);
|
|
17
18
|
__exportStar(require("./ListMcpServersResponseValue"), exports);
|
|
18
19
|
__exportStar(require("./AddMcpServerRequest"), exports);
|
|
19
20
|
__exportStar(require("./AddMcpServerResponseItem"), exports);
|
|
@@ -85,7 +85,7 @@ class Voice {
|
|
|
85
85
|
method: "POST",
|
|
86
86
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
87
87
|
? yield core.Supplier.get(this._options.project)
|
|
88
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
88
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
89
89
|
contentType: "application/json",
|
|
90
90
|
requestType: "json",
|
|
91
91
|
body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../index";
|
|
5
|
-
export interface
|
|
5
|
+
export interface BodyExportAgent {
|
|
6
6
|
spec?: Letta.AgentFileSchema;
|
|
7
7
|
legacySpec?: Letta.LettaSerializeSchemasPydanticAgentSchemaAgentSchema;
|
|
8
8
|
}
|
|
@@ -33,7 +33,7 @@ export * from "./BatchJob";
|
|
|
33
33
|
export * from "./Block";
|
|
34
34
|
export * from "./BlockSchema";
|
|
35
35
|
export * from "./BlockUpdate";
|
|
36
|
-
export * from "./
|
|
36
|
+
export * from "./BodyExportAgent";
|
|
37
37
|
export * from "./ChatCompletionAllowedToolChoiceParam";
|
|
38
38
|
export * from "./ChatCompletionAllowedToolsParamMode";
|
|
39
39
|
export * from "./ChatCompletionAllowedToolsParam";
|