@letta-ai/letta-client 0.1.179 → 0.1.181
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/errors/index.d.ts +1 -2
- package/api/errors/index.js +1 -2
- package/api/resources/agents/client/Client.js +10 -10
- 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 +3 -3
- 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 +8 -8
- package/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.d.ts +14 -25
- package/api/resources/agents/resources/templates/client/Client.js +59 -131
- package/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -2
- package/api/resources/agents/resources/templates/client/requests/index.d.ts +0 -2
- package/api/resources/agents/resources/templates/types/index.d.ts +0 -2
- package/api/resources/agents/resources/templates/types/index.js +0 -2
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/batches/client/Client.js +4 -4
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/api/resources/embeddingModels/client/Client.js +1 -1
- package/api/resources/folders/client/Client.js +9 -9
- 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/groups/client/Client.js +6 -6
- package/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +7 -7
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/jobs/client/Client.js +5 -5
- package/api/resources/messages/client/Client.js +1 -1
- package/api/resources/models/client/Client.js +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +6 -6
- package/api/resources/runs/client/Client.js +4 -4
- 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.js +3 -3
- package/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/api/resources/tags/client/Client.js +1 -1
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.d.ts +107 -0
- package/api/resources/templates/client/Client.js +540 -3
- package/api/resources/templates/client/requests/TemplatesCreateTemplateRequest.d.ts +15 -0
- package/{dist/api/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts → api/resources/templates/client/requests/TemplatesDeleteTemplateRequest.d.ts} +1 -2
- package/api/resources/templates/client/requests/TemplatesForkTemplateRequest.d.ts +11 -0
- package/api/resources/templates/client/requests/TemplatesListRequest.d.ts +3 -0
- package/api/resources/templates/client/requests/TemplatesListTemplateVersionsRequest.d.ts +11 -0
- package/api/resources/templates/client/requests/TemplatesRenameTemplateRequest.d.ts +13 -0
- package/api/resources/templates/client/requests/TemplatesSaveTemplateVersionRequest.d.ts +17 -0
- package/api/resources/templates/client/requests/index.d.ts +6 -0
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/templates/types/TemplatesCreateTemplateResponse.d.ts +15 -0
- package/api/resources/templates/types/TemplatesDeleteTemplateResponse.d.ts +6 -0
- package/api/resources/templates/types/TemplatesForkTemplateResponse.d.ts +15 -0
- package/api/resources/templates/types/TemplatesForkTemplateResponse.js +5 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponse.d.ts +11 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponse.js +5 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.d.ts +18 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.js +5 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables.d.ts +8 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables.js +5 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem.d.ts +8 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem.js +5 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.d.ts +11 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.js +5 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem.d.ts +5 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem.js +5 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping.d.ts +11 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping.js +5 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive.d.ts +8 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive.js +5 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour.d.ts +8 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour.js +5 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +9 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit.js +5 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne.d.ts +8 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne.js +5 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven.d.ts +9 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven.js +5 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo.d.ts +8 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo.js +5 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero.d.ts +9 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero.js +5 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables.d.ts +8 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables.js +5 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem.d.ts +8 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem.js +5 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.d.ts +11 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.js +5 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.d.ts +12 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.js +5 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseType.d.ts +13 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseType.js +15 -0
- package/api/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +4 -0
- package/api/resources/templates/types/TemplatesListTemplateVersionsResponse.d.ts +9 -0
- package/api/resources/templates/types/TemplatesListTemplateVersionsResponse.js +5 -0
- package/api/resources/templates/types/TemplatesListTemplateVersionsResponseVersionsItem.d.ts +13 -0
- package/api/resources/templates/types/TemplatesListTemplateVersionsResponseVersionsItem.js +5 -0
- package/api/resources/templates/types/TemplatesRenameTemplateResponse.d.ts +6 -0
- package/api/resources/templates/types/TemplatesRenameTemplateResponse.js +5 -0
- package/api/resources/templates/types/TemplatesSaveTemplateVersionResponse.d.ts +15 -0
- package/api/resources/templates/types/TemplatesSaveTemplateVersionResponse.js +5 -0
- package/api/resources/templates/types/index.d.ts +26 -0
- package/api/resources/templates/types/index.js +26 -0
- package/api/resources/tools/client/Client.js +20 -20
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/ConflictErrorBody.d.ts +1 -1
- package/api/types/LlmConfig.d.ts +2 -0
- package/api/types/LlmConfigVerbosity.d.ts +9 -0
- package/api/types/LlmConfigVerbosity.js +11 -0
- package/api/types/NotFoundErrorBody.d.ts +1 -1
- package/api/types/index.d.ts +2 -3
- package/api/types/index.js +2 -3
- package/dist/api/errors/index.d.ts +1 -2
- package/dist/api/errors/index.js +1 -2
- package/dist/api/resources/agents/client/Client.js +10 -10
- 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 +3 -3
- 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 +8 -8
- package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.d.ts +14 -25
- package/dist/api/resources/agents/resources/templates/client/Client.js +59 -131
- package/dist/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -2
- package/dist/api/resources/agents/resources/templates/client/requests/index.d.ts +0 -2
- package/dist/api/resources/agents/resources/templates/types/index.d.ts +0 -2
- package/dist/api/resources/agents/resources/templates/types/index.js +0 -2
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/batches/client/Client.js +4 -4
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/dist/api/resources/embeddingModels/client/Client.js +1 -1
- package/dist/api/resources/folders/client/Client.js +9 -9
- 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/groups/client/Client.js +6 -6
- package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +7 -7
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/jobs/client/Client.js +5 -5
- package/dist/api/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/models/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +6 -6
- package/dist/api/resources/runs/client/Client.js +4 -4
- 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.js +3 -3
- package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/dist/api/resources/tags/client/Client.js +1 -1
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.d.ts +107 -0
- package/dist/api/resources/templates/client/Client.js +540 -3
- package/dist/api/resources/templates/client/requests/TemplatesCreateTemplateRequest.d.ts +15 -0
- package/dist/api/resources/templates/client/requests/TemplatesCreateTemplateRequest.js +5 -0
- package/{api/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts → dist/api/resources/templates/client/requests/TemplatesDeleteTemplateRequest.d.ts} +1 -2
- package/dist/api/resources/templates/client/requests/TemplatesDeleteTemplateRequest.js +5 -0
- package/dist/api/resources/templates/client/requests/TemplatesForkTemplateRequest.d.ts +11 -0
- package/dist/api/resources/templates/client/requests/TemplatesForkTemplateRequest.js +5 -0
- package/dist/api/resources/templates/client/requests/TemplatesListRequest.d.ts +3 -0
- package/dist/api/resources/templates/client/requests/TemplatesListTemplateVersionsRequest.d.ts +11 -0
- package/dist/api/resources/templates/client/requests/TemplatesListTemplateVersionsRequest.js +5 -0
- package/dist/api/resources/templates/client/requests/TemplatesRenameTemplateRequest.d.ts +13 -0
- package/dist/api/resources/templates/client/requests/TemplatesRenameTemplateRequest.js +5 -0
- package/dist/api/resources/templates/client/requests/TemplatesSaveTemplateVersionRequest.d.ts +17 -0
- package/dist/api/resources/templates/client/requests/TemplatesSaveTemplateVersionRequest.js +5 -0
- package/dist/api/resources/templates/client/requests/index.d.ts +6 -0
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/templates/types/TemplatesCreateTemplateResponse.d.ts +15 -0
- package/dist/api/resources/templates/types/TemplatesCreateTemplateResponse.js +5 -0
- package/dist/api/resources/templates/types/TemplatesDeleteTemplateResponse.d.ts +6 -0
- package/dist/api/resources/templates/types/TemplatesDeleteTemplateResponse.js +5 -0
- package/dist/api/resources/templates/types/TemplatesForkTemplateResponse.d.ts +15 -0
- package/dist/api/resources/templates/types/TemplatesForkTemplateResponse.js +5 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponse.d.ts +11 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponse.js +5 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.d.ts +18 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.js +5 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables.d.ts +8 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables.js +5 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem.d.ts +8 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem.js +5 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.d.ts +11 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.js +5 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem.d.ts +5 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem.js +5 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping.d.ts +11 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping.js +5 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive.d.ts +8 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive.js +5 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour.d.ts +8 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour.js +5 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +9 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit.js +5 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne.d.ts +8 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne.js +5 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven.d.ts +9 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven.js +5 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo.d.ts +8 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo.js +5 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero.d.ts +9 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero.js +5 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables.d.ts +8 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables.js +5 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem.d.ts +8 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem.js +5 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.d.ts +11 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.js +5 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.d.ts +12 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.js +5 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseType.d.ts +13 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseType.js +15 -0
- package/dist/api/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +4 -0
- package/dist/api/resources/templates/types/TemplatesListTemplateVersionsResponse.d.ts +9 -0
- package/dist/api/resources/templates/types/TemplatesListTemplateVersionsResponse.js +5 -0
- package/dist/api/resources/templates/types/TemplatesListTemplateVersionsResponseVersionsItem.d.ts +13 -0
- package/dist/api/resources/templates/types/TemplatesListTemplateVersionsResponseVersionsItem.js +5 -0
- package/dist/api/resources/templates/types/TemplatesRenameTemplateResponse.d.ts +6 -0
- package/dist/api/resources/templates/types/TemplatesRenameTemplateResponse.js +5 -0
- package/dist/api/resources/templates/types/TemplatesSaveTemplateVersionResponse.d.ts +15 -0
- package/dist/api/resources/templates/types/TemplatesSaveTemplateVersionResponse.js +5 -0
- package/dist/api/resources/templates/types/index.d.ts +26 -0
- package/dist/api/resources/templates/types/index.js +26 -0
- package/dist/api/resources/tools/client/Client.js +20 -20
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/ConflictErrorBody.d.ts +1 -1
- package/dist/api/types/LlmConfig.d.ts +2 -0
- package/dist/api/types/LlmConfigVerbosity.d.ts +9 -0
- package/dist/api/types/LlmConfigVerbosity.js +11 -0
- package/dist/api/types/NotFoundErrorBody.d.ts +1 -1
- package/dist/api/types/index.d.ts +2 -3
- package/dist/api/types/index.js +2 -3
- package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -1
- package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js +0 -1
- package/dist/serialization/resources/agents/resources/templates/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/agents/resources/templates/client/requests/index.js +1 -5
- package/dist/serialization/resources/agents/resources/templates/types/index.d.ts +0 -2
- package/dist/serialization/resources/agents/resources/templates/types/index.js +0 -2
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +1 -0
- package/dist/serialization/resources/templates/client/index.d.ts +1 -0
- package/dist/serialization/resources/templates/client/index.js +17 -0
- package/dist/serialization/resources/templates/client/requests/TemplatesCreateTemplateRequest.d.ts +13 -0
- package/dist/serialization/resources/templates/client/requests/TemplatesCreateTemplateRequest.js +44 -0
- package/dist/serialization/resources/templates/client/requests/TemplatesDeleteTemplateRequest.d.ts +11 -0
- package/dist/serialization/resources/{agents/resources/templates/types/TemplatesCreateVersionRequestReturnAgentState.js → templates/client/requests/TemplatesDeleteTemplateRequest.js} +3 -3
- package/dist/serialization/resources/templates/client/requests/TemplatesForkTemplateRequest.d.ts +12 -0
- package/dist/serialization/resources/templates/client/requests/TemplatesForkTemplateRequest.js +43 -0
- package/dist/serialization/resources/templates/client/requests/TemplatesRenameTemplateRequest.d.ts +12 -0
- package/dist/serialization/resources/{agents/resources/templates/types/TemplatesCreateResponse.js → templates/client/requests/TemplatesRenameTemplateRequest.js} +4 -5
- package/dist/serialization/resources/templates/client/requests/TemplatesSaveTemplateVersionRequest.d.ts +15 -0
- package/dist/serialization/resources/templates/client/requests/TemplatesSaveTemplateVersionRequest.js +46 -0
- package/dist/serialization/resources/templates/client/requests/index.d.ts +5 -0
- package/dist/serialization/resources/templates/client/requests/index.js +13 -0
- package/dist/serialization/resources/templates/index.d.ts +1 -0
- package/dist/serialization/resources/templates/index.js +1 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateTemplateResponse.d.ts +18 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateTemplateResponse.js +49 -0
- package/dist/serialization/resources/templates/types/TemplatesDeleteTemplateResponse.d.ts +12 -0
- package/dist/serialization/resources/{agents/resources/templates/client/requests/TemplatesCreateRequest.js → templates/types/TemplatesDeleteTemplateResponse.js} +4 -4
- package/dist/serialization/resources/templates/types/TemplatesForkTemplateResponse.d.ts +18 -0
- package/dist/serialization/resources/templates/types/TemplatesForkTemplateResponse.js +49 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponse.d.ts +20 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponse.js +51 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.d.ts +27 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.js +58 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables.d.ts +14 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables.js +45 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem.d.ts +14 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem.js +45 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.d.ts +17 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.js +48 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem.d.ts +18 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem.js +58 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping.d.ts +17 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping.js +48 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive.d.ts +14 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive.js +45 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour.d.ts +14 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour.js +45 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +15 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit.js +46 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne.d.ts +14 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne.js +45 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven.d.ts +15 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven.js +46 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo.d.ts +14 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo.js +45 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero.d.ts +15 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero.js +46 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables.d.ts +14 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables.js +45 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem.d.ts +14 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem.js +45 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.d.ts +17 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.js +48 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.d.ts +18 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.js +49 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseType.d.ts +10 -0
- package/dist/serialization/{types/NotFoundErrorBodyMessage.js → resources/templates/types/TemplatesGetTemplateSnapshotResponseType.js} +10 -5
- package/dist/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +2 -0
- package/dist/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.js +2 -0
- package/dist/serialization/resources/templates/types/TemplatesListTemplateVersionsResponse.d.ts +15 -0
- package/dist/serialization/resources/templates/types/TemplatesListTemplateVersionsResponse.js +46 -0
- package/dist/serialization/resources/templates/types/TemplatesListTemplateVersionsResponseVersionsItem.d.ts +15 -0
- package/{serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.js → dist/serialization/resources/templates/types/TemplatesListTemplateVersionsResponseVersionsItem.js} +6 -5
- package/dist/serialization/resources/templates/types/TemplatesRenameTemplateResponse.d.ts +12 -0
- package/{serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js → dist/serialization/resources/templates/types/TemplatesRenameTemplateResponse.js} +4 -4
- package/dist/serialization/resources/templates/types/TemplatesSaveTemplateVersionResponse.d.ts +18 -0
- package/dist/serialization/resources/templates/types/TemplatesSaveTemplateVersionResponse.js +49 -0
- package/dist/serialization/resources/templates/types/index.d.ts +26 -0
- package/dist/serialization/resources/templates/types/index.js +26 -0
- package/dist/serialization/types/ConflictErrorBody.d.ts +1 -1
- package/dist/serialization/types/ConflictErrorBody.js +1 -1
- package/dist/serialization/types/LlmConfig.d.ts +2 -0
- package/dist/serialization/types/LlmConfig.js +2 -0
- package/dist/serialization/types/LlmConfigVerbosity.d.ts +10 -0
- package/dist/serialization/types/{InternalServerErrorBody.js → LlmConfigVerbosity.js} +2 -4
- package/dist/serialization/types/NotFoundErrorBody.d.ts +1 -1
- package/dist/serialization/types/NotFoundErrorBody.js +1 -1
- package/dist/serialization/types/index.d.ts +2 -3
- package/dist/serialization/types/index.js +2 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +555 -30
- package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -1
- package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js +0 -1
- package/serialization/resources/agents/resources/templates/client/requests/index.d.ts +0 -2
- package/serialization/resources/agents/resources/templates/client/requests/index.js +1 -5
- package/serialization/resources/agents/resources/templates/types/index.d.ts +0 -2
- package/serialization/resources/agents/resources/templates/types/index.js +0 -2
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +1 -0
- package/serialization/resources/templates/client/index.d.ts +1 -0
- package/serialization/resources/templates/client/index.js +17 -0
- package/serialization/resources/templates/client/requests/TemplatesCreateTemplateRequest.d.ts +13 -0
- package/serialization/resources/templates/client/requests/TemplatesCreateTemplateRequest.js +44 -0
- package/serialization/resources/templates/client/requests/TemplatesDeleteTemplateRequest.d.ts +11 -0
- package/serialization/resources/{agents/resources/templates/types/TemplatesCreateVersionRequestReturnAgentState.js → templates/client/requests/TemplatesDeleteTemplateRequest.js} +3 -3
- package/serialization/resources/templates/client/requests/TemplatesForkTemplateRequest.d.ts +12 -0
- package/serialization/resources/templates/client/requests/TemplatesForkTemplateRequest.js +43 -0
- package/serialization/resources/templates/client/requests/TemplatesRenameTemplateRequest.d.ts +12 -0
- package/serialization/resources/templates/client/requests/TemplatesRenameTemplateRequest.js +43 -0
- package/serialization/resources/templates/client/requests/TemplatesSaveTemplateVersionRequest.d.ts +15 -0
- package/serialization/resources/templates/client/requests/TemplatesSaveTemplateVersionRequest.js +46 -0
- package/serialization/resources/templates/client/requests/index.d.ts +5 -0
- package/serialization/resources/templates/client/requests/index.js +13 -0
- package/serialization/resources/templates/index.d.ts +1 -0
- package/serialization/resources/templates/index.js +1 -0
- package/serialization/resources/templates/types/TemplatesCreateTemplateResponse.d.ts +18 -0
- package/serialization/resources/templates/types/TemplatesCreateTemplateResponse.js +49 -0
- package/serialization/resources/templates/types/TemplatesDeleteTemplateResponse.d.ts +12 -0
- package/serialization/resources/templates/types/TemplatesDeleteTemplateResponse.js +43 -0
- package/serialization/resources/templates/types/TemplatesForkTemplateResponse.d.ts +18 -0
- package/serialization/resources/templates/types/TemplatesForkTemplateResponse.js +49 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponse.d.ts +20 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponse.js +51 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.d.ts +27 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.js +58 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables.d.ts +14 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables.js +45 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem.d.ts +14 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem.js +45 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.d.ts +17 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.js +48 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem.d.ts +18 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem.js +58 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping.d.ts +17 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping.js +48 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive.d.ts +14 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive.js +45 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour.d.ts +14 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour.js +45 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +15 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit.js +46 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne.d.ts +14 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne.js +45 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven.d.ts +15 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven.js +46 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo.d.ts +14 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo.js +45 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero.d.ts +15 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero.js +46 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables.d.ts +14 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables.js +45 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem.d.ts +14 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem.js +45 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.d.ts +17 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.js +48 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.d.ts +18 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.js +49 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseType.d.ts +10 -0
- package/serialization/{types/NotFoundErrorBodyMessage.js → resources/templates/types/TemplatesGetTemplateSnapshotResponseType.js} +10 -5
- package/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +2 -0
- package/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.js +2 -0
- package/serialization/resources/templates/types/TemplatesListTemplateVersionsResponse.d.ts +15 -0
- package/serialization/resources/templates/types/TemplatesListTemplateVersionsResponse.js +46 -0
- package/serialization/resources/templates/types/TemplatesListTemplateVersionsResponseVersionsItem.d.ts +15 -0
- package/{dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.js → serialization/resources/templates/types/TemplatesListTemplateVersionsResponseVersionsItem.js} +6 -5
- package/serialization/resources/templates/types/TemplatesRenameTemplateResponse.d.ts +12 -0
- package/serialization/resources/templates/types/TemplatesRenameTemplateResponse.js +43 -0
- package/serialization/resources/templates/types/TemplatesSaveTemplateVersionResponse.d.ts +18 -0
- package/serialization/resources/templates/types/TemplatesSaveTemplateVersionResponse.js +49 -0
- package/serialization/resources/templates/types/index.d.ts +26 -0
- package/serialization/resources/templates/types/index.js +26 -0
- package/serialization/types/ConflictErrorBody.d.ts +1 -1
- package/serialization/types/ConflictErrorBody.js +1 -1
- package/serialization/types/LlmConfig.d.ts +2 -0
- package/serialization/types/LlmConfig.js +2 -0
- package/serialization/types/LlmConfigVerbosity.d.ts +10 -0
- package/serialization/types/{InternalServerErrorBody.js → LlmConfigVerbosity.js} +2 -4
- package/serialization/types/NotFoundErrorBody.d.ts +1 -1
- package/serialization/types/NotFoundErrorBody.js +1 -1
- package/serialization/types/index.d.ts +2 -3
- package/serialization/types/index.js +2 -3
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/errors/InternalServerError.d.ts +0 -8
- package/api/errors/InternalServerError.js +0 -52
- package/api/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +0 -15
- package/api/resources/agents/resources/templates/types/TemplatesCreateResponse.d.ts +0 -7
- package/api/resources/agents/resources/templates/types/TemplatesCreateVersionRequestReturnAgentState.d.ts +0 -7
- package/api/resources/agents/resources/templates/types/TemplatesCreateVersionRequestReturnAgentState.js +0 -9
- package/api/types/InternalServerErrorBody.d.ts +0 -6
- package/api/types/NotFoundErrorBodyMessage.d.ts +0 -8
- package/api/types/NotFoundErrorBodyMessage.js +0 -10
- package/dist/api/errors/InternalServerError.d.ts +0 -8
- package/dist/api/errors/InternalServerError.js +0 -52
- package/dist/api/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +0 -15
- package/dist/api/resources/agents/resources/templates/types/TemplatesCreateResponse.d.ts +0 -7
- package/dist/api/resources/agents/resources/templates/types/TemplatesCreateVersionRequestReturnAgentState.d.ts +0 -7
- package/dist/api/resources/agents/resources/templates/types/TemplatesCreateVersionRequestReturnAgentState.js +0 -9
- package/dist/api/types/InternalServerErrorBody.d.ts +0 -6
- package/dist/api/types/NotFoundErrorBodyMessage.d.ts +0 -8
- package/dist/api/types/NotFoundErrorBodyMessage.js +0 -10
- package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +0 -12
- package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +0 -14
- package/dist/serialization/resources/agents/resources/templates/types/TemplatesCreateResponse.d.ts +0 -13
- package/dist/serialization/resources/agents/resources/templates/types/TemplatesCreateVersionRequestReturnAgentState.d.ts +0 -10
- package/dist/serialization/types/InternalServerErrorBody.d.ts +0 -12
- package/dist/serialization/types/NotFoundErrorBodyMessage.d.ts +0 -10
- package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +0 -12
- package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +0 -14
- package/serialization/resources/agents/resources/templates/types/TemplatesCreateResponse.d.ts +0 -13
- package/serialization/resources/agents/resources/templates/types/TemplatesCreateResponse.js +0 -44
- package/serialization/resources/agents/resources/templates/types/TemplatesCreateVersionRequestReturnAgentState.d.ts +0 -10
- package/serialization/types/InternalServerErrorBody.d.ts +0 -12
- package/serialization/types/NotFoundErrorBodyMessage.d.ts +0 -10
- /package/api/resources/{agents/resources/templates/client/requests/TemplatesCreateRequest.js → templates/client/requests/TemplatesCreateTemplateRequest.js} +0 -0
- /package/api/resources/{agents/resources/templates/client/requests/TemplatesCreateVersionRequest.js → templates/client/requests/TemplatesDeleteTemplateRequest.js} +0 -0
- /package/api/resources/{agents/resources/templates/types/TemplatesCreateResponse.js → templates/client/requests/TemplatesForkTemplateRequest.js} +0 -0
- /package/api/{types/InternalServerErrorBody.js → resources/templates/client/requests/TemplatesListTemplateVersionsRequest.js} +0 -0
- /package/{dist/api/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js → api/resources/templates/client/requests/TemplatesRenameTemplateRequest.js} +0 -0
- /package/{dist/api/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.js → api/resources/templates/client/requests/TemplatesSaveTemplateVersionRequest.js} +0 -0
- /package/{dist/api/resources/agents/resources/templates/types/TemplatesCreateResponse.js → api/resources/templates/types/TemplatesCreateTemplateResponse.js} +0 -0
- /package/{dist/api/types/InternalServerErrorBody.js → api/resources/templates/types/TemplatesDeleteTemplateResponse.js} +0 -0
|
@@ -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.1.
|
|
86
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.181", "User-Agent": "@letta-ai/letta-client/0.1.181", "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,
|
|
@@ -108,7 +108,7 @@ class Messages {
|
|
|
108
108
|
method: "GET",
|
|
109
109
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
110
110
|
? yield core.Supplier.get(this._options.project)
|
|
111
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
111
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.181", "User-Agent": "@letta-ai/letta-client/0.1.181", "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),
|
|
112
112
|
contentType: "application/json",
|
|
113
113
|
queryParameters: _queryParams,
|
|
114
114
|
requestType: "json",
|
|
@@ -195,7 +195,7 @@ class Messages {
|
|
|
195
195
|
method: "POST",
|
|
196
196
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
197
197
|
? yield core.Supplier.get(this._options.project)
|
|
198
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
198
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.181", "User-Agent": "@letta-ai/letta-client/0.1.181", "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),
|
|
199
199
|
contentType: "application/json",
|
|
200
200
|
requestType: "json",
|
|
201
201
|
body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -276,7 +276,7 @@ class Messages {
|
|
|
276
276
|
method: "PATCH",
|
|
277
277
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
278
278
|
? yield core.Supplier.get(this._options.project)
|
|
279
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
279
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.181", "User-Agent": "@letta-ai/letta-client/0.1.181", "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),
|
|
280
280
|
contentType: "application/json",
|
|
281
281
|
requestType: "json",
|
|
282
282
|
body: serializers.agents.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -347,7 +347,7 @@ class Messages {
|
|
|
347
347
|
method: "POST",
|
|
348
348
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
349
349
|
? yield core.Supplier.get(this._options.project)
|
|
350
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
350
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.181", "User-Agent": "@letta-ai/letta-client/0.1.181", "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),
|
|
351
351
|
contentType: "application/json",
|
|
352
352
|
requestType: "json",
|
|
353
353
|
body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -438,7 +438,7 @@ class Messages {
|
|
|
438
438
|
method: "POST",
|
|
439
439
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
440
440
|
? yield core.Supplier.get(this._options.project)
|
|
441
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
441
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.181", "User-Agent": "@letta-ai/letta-client/0.1.181", "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),
|
|
442
442
|
contentType: "application/json",
|
|
443
443
|
requestType: "json",
|
|
444
444
|
body: serializers.agents.CancelAgentRunRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -528,7 +528,7 @@ class Messages {
|
|
|
528
528
|
method: "POST",
|
|
529
529
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
530
530
|
? yield core.Supplier.get(this._options.project)
|
|
531
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
531
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.181", "User-Agent": "@letta-ai/letta-client/0.1.181", "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),
|
|
532
532
|
contentType: "application/json",
|
|
533
533
|
requestType: "json",
|
|
534
534
|
body: serializers.agents.LettaAsyncRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -611,7 +611,7 @@ class Messages {
|
|
|
611
611
|
method: "PATCH",
|
|
612
612
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
613
613
|
? yield core.Supplier.get(this._options.project)
|
|
614
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
614
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.181", "User-Agent": "@letta-ai/letta-client/0.1.181", "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),
|
|
615
615
|
contentType: "application/json",
|
|
616
616
|
queryParameters: _queryParams,
|
|
617
617
|
requestType: "json",
|
|
@@ -701,7 +701,7 @@ class Messages {
|
|
|
701
701
|
method: "POST",
|
|
702
702
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
703
703
|
? yield core.Supplier.get(this._options.project)
|
|
704
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
704
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.181", "User-Agent": "@letta-ai/letta-client/0.1.181", "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),
|
|
705
705
|
contentType: "application/json",
|
|
706
706
|
requestType: "json",
|
|
707
707
|
body: serializers.agents.MessagesPreviewRawPayloadRequest.jsonOrThrow(request, {
|
|
@@ -99,7 +99,7 @@ class Passages {
|
|
|
99
99
|
method: "GET",
|
|
100
100
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
101
101
|
? yield core.Supplier.get(this._options.project)
|
|
102
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
102
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.181", "User-Agent": "@letta-ai/letta-client/0.1.181", "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),
|
|
103
103
|
contentType: "application/json",
|
|
104
104
|
queryParameters: _queryParams,
|
|
105
105
|
requestType: "json",
|
|
@@ -179,7 +179,7 @@ class Passages {
|
|
|
179
179
|
method: "POST",
|
|
180
180
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
181
181
|
? yield core.Supplier.get(this._options.project)
|
|
182
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
182
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.181", "User-Agent": "@letta-ai/letta-client/0.1.181", "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),
|
|
183
183
|
contentType: "application/json",
|
|
184
184
|
requestType: "json",
|
|
185
185
|
body: serializers.agents.CreateArchivalMemory.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -257,7 +257,7 @@ class Passages {
|
|
|
257
257
|
method: "DELETE",
|
|
258
258
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
259
259
|
? yield core.Supplier.get(this._options.project)
|
|
260
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
260
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.181", "User-Agent": "@letta-ai/letta-client/0.1.181", "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),
|
|
261
261
|
contentType: "application/json",
|
|
262
262
|
requestType: "json",
|
|
263
263
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -328,7 +328,7 @@ class Passages {
|
|
|
328
328
|
method: "PATCH",
|
|
329
329
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
330
330
|
? yield core.Supplier.get(this._options.project)
|
|
331
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
331
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.181", "User-Agent": "@letta-ai/letta-client/0.1.181", "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),
|
|
332
332
|
contentType: "application/json",
|
|
333
333
|
requestType: "json",
|
|
334
334
|
body: serializers.agents.PassageUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -82,7 +82,7 @@ class Sources {
|
|
|
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.1.
|
|
85
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.181", "User-Agent": "@letta-ai/letta-client/0.1.181", "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 Sources {
|
|
|
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.1.
|
|
162
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.181", "User-Agent": "@letta-ai/letta-client/0.1.181", "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 Sources {
|
|
|
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.1.
|
|
238
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.181", "User-Agent": "@letta-ai/letta-client/0.1.181", "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,
|
|
@@ -30,23 +30,6 @@ export declare namespace Templates {
|
|
|
30
30
|
export declare class Templates {
|
|
31
31
|
protected readonly _options: Templates.Options;
|
|
32
32
|
constructor(_options?: Templates.Options);
|
|
33
|
-
/**
|
|
34
|
-
* <Note>This endpoint is only available on Letta Cloud.</Note>
|
|
35
|
-
*
|
|
36
|
-
* Creates a new version of the template version of the agent.
|
|
37
|
-
*
|
|
38
|
-
* @param {string} agentId - The agent ID of the agent to migrate, if this agent is not a template, it will create a agent template from the agent provided as well
|
|
39
|
-
* @param {Letta.agents.TemplatesCreateVersionRequest} request
|
|
40
|
-
* @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
|
-
*
|
|
42
|
-
* @throws {@link Letta.NotFoundError}
|
|
43
|
-
* @throws {@link Letta.InternalServerError}
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* await client.agents.templates.createVersion("agent_id")
|
|
47
|
-
*/
|
|
48
|
-
createVersion(agentId: string, request?: Letta.agents.TemplatesCreateVersionRequest, requestOptions?: Templates.RequestOptions): core.HttpResponsePromise<void>;
|
|
49
|
-
private __createVersion;
|
|
50
33
|
/**
|
|
51
34
|
* <Note>This endpoint is only available on Letta Cloud.</Note>
|
|
52
35
|
*
|
|
@@ -56,10 +39,6 @@ export declare class Templates {
|
|
|
56
39
|
* @param {Letta.agents.TemplatesMigrateRequest} request
|
|
57
40
|
* @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
|
|
58
41
|
*
|
|
59
|
-
* @throws {@link Letta.NotFoundError}
|
|
60
|
-
* @throws {@link Letta.ConflictError}
|
|
61
|
-
* @throws {@link Letta.InternalServerError}
|
|
62
|
-
*
|
|
63
42
|
* @example
|
|
64
43
|
* await client.agents.templates.migrate("agent_id", {
|
|
65
44
|
* toTemplate: "to_template",
|
|
@@ -74,16 +53,26 @@ export declare class Templates {
|
|
|
74
53
|
* Creates a template from an agent.
|
|
75
54
|
*
|
|
76
55
|
* @param {string} agentId
|
|
77
|
-
* @param {Letta.agents.TemplatesCreateRequest} request
|
|
78
56
|
* @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
|
|
79
57
|
*
|
|
80
|
-
* @throws {@link Letta.InternalServerError}
|
|
81
|
-
*
|
|
82
58
|
* @example
|
|
83
59
|
* await client.agents.templates.create("agent_id")
|
|
84
60
|
*/
|
|
85
|
-
create(agentId: string,
|
|
61
|
+
create(agentId: string, requestOptions?: Templates.RequestOptions): core.HttpResponsePromise<void>;
|
|
86
62
|
private __create;
|
|
63
|
+
/**
|
|
64
|
+
* <Note>This endpoint is only available on Letta Cloud.</Note>
|
|
65
|
+
*
|
|
66
|
+
* Creates a new version of the template version of the agent.
|
|
67
|
+
*
|
|
68
|
+
* @param {string} agentId
|
|
69
|
+
* @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* await client.agents.templates.createVersion("agent_id")
|
|
73
|
+
*/
|
|
74
|
+
createVersion(agentId: string, requestOptions?: Templates.RequestOptions): core.HttpResponsePromise<void>;
|
|
75
|
+
private __createVersion;
|
|
87
76
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
88
77
|
Authorization: string;
|
|
89
78
|
}>;
|
|
@@ -44,17 +44,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
44
44
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
48
|
-
var t = {};
|
|
49
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
50
|
-
t[p] = s[p];
|
|
51
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
52
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
53
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
54
|
-
t[p[i]] = s[p[i]];
|
|
55
|
-
}
|
|
56
|
-
return t;
|
|
57
|
-
};
|
|
58
47
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
59
48
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
60
49
|
};
|
|
@@ -62,7 +51,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
62
51
|
exports.Templates = void 0;
|
|
63
52
|
const environments = __importStar(require("../../../../../../environments"));
|
|
64
53
|
const core = __importStar(require("../../../../../../core"));
|
|
65
|
-
const Letta = __importStar(require("../../../../../index"));
|
|
66
54
|
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
67
55
|
const url_join_1 = __importDefault(require("url-join"));
|
|
68
56
|
const errors = __importStar(require("../../../../../../errors/index"));
|
|
@@ -73,64 +61,55 @@ class Templates {
|
|
|
73
61
|
/**
|
|
74
62
|
* <Note>This endpoint is only available on Letta Cloud.</Note>
|
|
75
63
|
*
|
|
76
|
-
*
|
|
64
|
+
* Migrate an agent to a new versioned agent template.
|
|
77
65
|
*
|
|
78
|
-
* @param {string} agentId
|
|
79
|
-
* @param {Letta.agents.
|
|
66
|
+
* @param {string} agentId
|
|
67
|
+
* @param {Letta.agents.TemplatesMigrateRequest} request
|
|
80
68
|
* @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
69
|
*
|
|
82
|
-
* @throws {@link Letta.NotFoundError}
|
|
83
|
-
* @throws {@link Letta.InternalServerError}
|
|
84
|
-
*
|
|
85
70
|
* @example
|
|
86
|
-
* await client.agents.templates.
|
|
71
|
+
* await client.agents.templates.migrate("agent_id", {
|
|
72
|
+
* toTemplate: "to_template",
|
|
73
|
+
* preserveCoreMemories: true
|
|
74
|
+
* })
|
|
87
75
|
*/
|
|
88
|
-
|
|
89
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
76
|
+
migrate(agentId, request, requestOptions) {
|
|
77
|
+
return core.HttpResponsePromise.fromPromise(this.__migrate(agentId, request, requestOptions));
|
|
90
78
|
}
|
|
91
|
-
|
|
92
|
-
return __awaiter(this,
|
|
79
|
+
__migrate(agentId, request, requestOptions) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
81
|
var _a, _b, _c;
|
|
94
|
-
const { returnAgentState } = request, _body = __rest(request, ["returnAgentState"]);
|
|
95
|
-
const _queryParams = {};
|
|
96
|
-
if (returnAgentState != null) {
|
|
97
|
-
_queryParams["returnAgentState"] =
|
|
98
|
-
serializers.agents.TemplatesCreateVersionRequestReturnAgentState.jsonOrThrow(returnAgentState, {
|
|
99
|
-
unrecognizedObjectKeys: "strip",
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
82
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
103
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/
|
|
83
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/migrate`),
|
|
104
84
|
method: "POST",
|
|
105
85
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
106
86
|
? yield core.Supplier.get(this._options.project)
|
|
107
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
87
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.181", "User-Agent": "@letta-ai/letta-client/0.1.181", "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),
|
|
108
88
|
contentType: "application/json",
|
|
109
|
-
queryParameters: _queryParams,
|
|
110
89
|
requestType: "json",
|
|
111
|
-
body: serializers.agents.
|
|
112
|
-
unrecognizedObjectKeys: "strip",
|
|
113
|
-
}),
|
|
90
|
+
body: serializers.agents.TemplatesMigrateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
114
91
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
115
92
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
116
93
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
117
94
|
});
|
|
118
95
|
if (_response.ok) {
|
|
119
|
-
return {
|
|
96
|
+
return {
|
|
97
|
+
data: serializers.agents.TemplatesMigrateResponse.parseOrThrow(_response.body, {
|
|
98
|
+
unrecognizedObjectKeys: "passthrough",
|
|
99
|
+
allowUnrecognizedUnionMembers: true,
|
|
100
|
+
allowUnrecognizedEnumValues: true,
|
|
101
|
+
skipValidation: true,
|
|
102
|
+
breadcrumbsPrefix: ["response"],
|
|
103
|
+
}),
|
|
104
|
+
rawResponse: _response.rawResponse,
|
|
105
|
+
};
|
|
120
106
|
}
|
|
121
107
|
if (_response.error.reason === "status-code") {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
default:
|
|
128
|
-
throw new errors.LettaError({
|
|
129
|
-
statusCode: _response.error.statusCode,
|
|
130
|
-
body: _response.error.body,
|
|
131
|
-
rawResponse: _response.rawResponse,
|
|
132
|
-
});
|
|
133
|
-
}
|
|
108
|
+
throw new errors.LettaError({
|
|
109
|
+
statusCode: _response.error.statusCode,
|
|
110
|
+
body: _response.error.body,
|
|
111
|
+
rawResponse: _response.rawResponse,
|
|
112
|
+
});
|
|
134
113
|
}
|
|
135
114
|
switch (_response.error.reason) {
|
|
136
115
|
case "non-json":
|
|
@@ -140,7 +119,7 @@ class Templates {
|
|
|
140
119
|
rawResponse: _response.rawResponse,
|
|
141
120
|
});
|
|
142
121
|
case "timeout":
|
|
143
|
-
throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/agents/{agent_id}/
|
|
122
|
+
throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/agents/{agent_id}/migrate.");
|
|
144
123
|
case "unknown":
|
|
145
124
|
throw new errors.LettaError({
|
|
146
125
|
message: _response.error.errorMessage,
|
|
@@ -152,74 +131,41 @@ class Templates {
|
|
|
152
131
|
/**
|
|
153
132
|
* <Note>This endpoint is only available on Letta Cloud.</Note>
|
|
154
133
|
*
|
|
155
|
-
*
|
|
134
|
+
* Creates a template from an agent.
|
|
156
135
|
*
|
|
157
136
|
* @param {string} agentId
|
|
158
|
-
* @param {Letta.agents.TemplatesMigrateRequest} request
|
|
159
137
|
* @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
|
|
160
138
|
*
|
|
161
|
-
* @throws {@link Letta.NotFoundError}
|
|
162
|
-
* @throws {@link Letta.ConflictError}
|
|
163
|
-
* @throws {@link Letta.InternalServerError}
|
|
164
|
-
*
|
|
165
139
|
* @example
|
|
166
|
-
* await client.agents.templates.
|
|
167
|
-
* toTemplate: "to_template",
|
|
168
|
-
* preserveCoreMemories: true
|
|
169
|
-
* })
|
|
140
|
+
* await client.agents.templates.create("agent_id")
|
|
170
141
|
*/
|
|
171
|
-
|
|
172
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
142
|
+
create(agentId, requestOptions) {
|
|
143
|
+
return core.HttpResponsePromise.fromPromise(this.__create(agentId, requestOptions));
|
|
173
144
|
}
|
|
174
|
-
|
|
145
|
+
__create(agentId, requestOptions) {
|
|
175
146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
176
147
|
var _a, _b, _c;
|
|
177
148
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
178
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/
|
|
149
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/template`),
|
|
179
150
|
method: "POST",
|
|
180
151
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
181
152
|
? yield core.Supplier.get(this._options.project)
|
|
182
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
153
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.181", "User-Agent": "@letta-ai/letta-client/0.1.181", "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),
|
|
183
154
|
contentType: "application/json",
|
|
184
155
|
requestType: "json",
|
|
185
|
-
body: serializers.agents.TemplatesMigrateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
186
156
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
187
157
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
188
158
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
189
159
|
});
|
|
190
160
|
if (_response.ok) {
|
|
191
|
-
return {
|
|
192
|
-
data: serializers.agents.TemplatesMigrateResponse.parseOrThrow(_response.body, {
|
|
193
|
-
unrecognizedObjectKeys: "passthrough",
|
|
194
|
-
allowUnrecognizedUnionMembers: true,
|
|
195
|
-
allowUnrecognizedEnumValues: true,
|
|
196
|
-
skipValidation: true,
|
|
197
|
-
breadcrumbsPrefix: ["response"],
|
|
198
|
-
}),
|
|
199
|
-
rawResponse: _response.rawResponse,
|
|
200
|
-
};
|
|
161
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
201
162
|
}
|
|
202
163
|
if (_response.error.reason === "status-code") {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
unrecognizedObjectKeys: "passthrough",
|
|
209
|
-
allowUnrecognizedUnionMembers: true,
|
|
210
|
-
allowUnrecognizedEnumValues: true,
|
|
211
|
-
skipValidation: true,
|
|
212
|
-
breadcrumbsPrefix: ["response"],
|
|
213
|
-
}), _response.rawResponse);
|
|
214
|
-
case 500:
|
|
215
|
-
throw new Letta.InternalServerError(_response.error.body, _response.rawResponse);
|
|
216
|
-
default:
|
|
217
|
-
throw new errors.LettaError({
|
|
218
|
-
statusCode: _response.error.statusCode,
|
|
219
|
-
body: _response.error.body,
|
|
220
|
-
rawResponse: _response.rawResponse,
|
|
221
|
-
});
|
|
222
|
-
}
|
|
164
|
+
throw new errors.LettaError({
|
|
165
|
+
statusCode: _response.error.statusCode,
|
|
166
|
+
body: _response.error.body,
|
|
167
|
+
rawResponse: _response.rawResponse,
|
|
168
|
+
});
|
|
223
169
|
}
|
|
224
170
|
switch (_response.error.reason) {
|
|
225
171
|
case "non-json":
|
|
@@ -229,7 +175,7 @@ class Templates {
|
|
|
229
175
|
rawResponse: _response.rawResponse,
|
|
230
176
|
});
|
|
231
177
|
case "timeout":
|
|
232
|
-
throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/agents/{agent_id}/
|
|
178
|
+
throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/agents/{agent_id}/template.");
|
|
233
179
|
case "unknown":
|
|
234
180
|
throw new errors.LettaError({
|
|
235
181
|
message: _response.error.errorMessage,
|
|
@@ -241,59 +187,41 @@ class Templates {
|
|
|
241
187
|
/**
|
|
242
188
|
* <Note>This endpoint is only available on Letta Cloud.</Note>
|
|
243
189
|
*
|
|
244
|
-
* Creates a template
|
|
190
|
+
* Creates a new version of the template version of the agent.
|
|
245
191
|
*
|
|
246
192
|
* @param {string} agentId
|
|
247
|
-
* @param {Letta.agents.TemplatesCreateRequest} request
|
|
248
193
|
* @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
|
|
249
194
|
*
|
|
250
|
-
* @throws {@link Letta.InternalServerError}
|
|
251
|
-
*
|
|
252
195
|
* @example
|
|
253
|
-
* await client.agents.templates.
|
|
196
|
+
* await client.agents.templates.createVersion("agent_id")
|
|
254
197
|
*/
|
|
255
|
-
|
|
256
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
198
|
+
createVersion(agentId, requestOptions) {
|
|
199
|
+
return core.HttpResponsePromise.fromPromise(this.__createVersion(agentId, requestOptions));
|
|
257
200
|
}
|
|
258
|
-
|
|
259
|
-
return __awaiter(this,
|
|
201
|
+
__createVersion(agentId, requestOptions) {
|
|
202
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
260
203
|
var _a, _b, _c;
|
|
261
204
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
262
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/template`),
|
|
205
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/version-template`),
|
|
263
206
|
method: "POST",
|
|
264
207
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
265
208
|
? yield core.Supplier.get(this._options.project)
|
|
266
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
209
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.181", "User-Agent": "@letta-ai/letta-client/0.1.181", "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),
|
|
267
210
|
contentType: "application/json",
|
|
268
211
|
requestType: "json",
|
|
269
|
-
body: serializers.agents.TemplatesCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
270
212
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
271
213
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
272
214
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
273
215
|
});
|
|
274
216
|
if (_response.ok) {
|
|
275
|
-
return {
|
|
276
|
-
data: serializers.agents.TemplatesCreateResponse.parseOrThrow(_response.body, {
|
|
277
|
-
unrecognizedObjectKeys: "passthrough",
|
|
278
|
-
allowUnrecognizedUnionMembers: true,
|
|
279
|
-
allowUnrecognizedEnumValues: true,
|
|
280
|
-
skipValidation: true,
|
|
281
|
-
breadcrumbsPrefix: ["response"],
|
|
282
|
-
}),
|
|
283
|
-
rawResponse: _response.rawResponse,
|
|
284
|
-
};
|
|
217
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
285
218
|
}
|
|
286
219
|
if (_response.error.reason === "status-code") {
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
statusCode: _response.error.statusCode,
|
|
293
|
-
body: _response.error.body,
|
|
294
|
-
rawResponse: _response.rawResponse,
|
|
295
|
-
});
|
|
296
|
-
}
|
|
220
|
+
throw new errors.LettaError({
|
|
221
|
+
statusCode: _response.error.statusCode,
|
|
222
|
+
body: _response.error.body,
|
|
223
|
+
rawResponse: _response.rawResponse,
|
|
224
|
+
});
|
|
297
225
|
}
|
|
298
226
|
switch (_response.error.reason) {
|
|
299
227
|
case "non-json":
|
|
@@ -303,7 +231,7 @@ class Templates {
|
|
|
303
231
|
rawResponse: _response.rawResponse,
|
|
304
232
|
});
|
|
305
233
|
case "timeout":
|
|
306
|
-
throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/agents/{agent_id}/template.");
|
|
234
|
+
throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/agents/{agent_id}/version-template.");
|
|
307
235
|
case "unknown":
|
|
308
236
|
throw new errors.LettaError({
|
|
309
237
|
message: _response.error.errorMessage,
|
package/dist/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts
CHANGED
|
@@ -10,8 +10,6 @@
|
|
|
10
10
|
*/
|
|
11
11
|
export interface TemplatesMigrateRequest {
|
|
12
12
|
toTemplate: string;
|
|
13
|
-
/** If you chose to not preserve core memories, you should provide the new variables for the core memories */
|
|
14
|
-
variables?: Record<string, string>;
|
|
15
13
|
preserveCoreMemories: boolean;
|
|
16
14
|
/** If true, preserves the existing agent's tool environment variables instead of using the template's variables */
|
|
17
15
|
preserveToolVariables?: boolean;
|
|
@@ -14,6 +14,4 @@ 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("./TemplatesCreateVersionRequestReturnAgentState"), exports);
|
|
18
17
|
__exportStar(require("./TemplatesMigrateResponse"), exports);
|
|
19
|
-
__exportStar(require("./TemplatesCreateResponse"), exports);
|
|
@@ -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.1.
|
|
84
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.181", "User-Agent": "@letta-ai/letta-client/0.1.181", "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,
|
|
@@ -158,7 +158,7 @@ class Tools {
|
|
|
158
158
|
method: "PATCH",
|
|
159
159
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
160
160
|
? yield core.Supplier.get(this._options.project)
|
|
161
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
161
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.181", "User-Agent": "@letta-ai/letta-client/0.1.181", "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),
|
|
162
162
|
contentType: "application/json",
|
|
163
163
|
requestType: "json",
|
|
164
164
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -235,7 +235,7 @@ class Tools {
|
|
|
235
235
|
method: "PATCH",
|
|
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.1.
|
|
238
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.181", "User-Agent": "@letta-ai/letta-client/0.1.181", "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,
|