@letta-ai/letta-client 0.1.97 → 0.1.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +9 -0
- package/Client.js +39 -24
- package/api/resources/agents/client/Client.d.ts +13 -44
- package/api/resources/agents/client/Client.js +63 -228
- package/api/resources/agents/client/requests/index.d.ts +0 -3
- 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/groups/client/Client.d.ts +45 -0
- package/api/resources/agents/resources/groups/client/Client.js +141 -0
- package/api/resources/agents/{client/requests/ListAgentGroupsRequest.d.ts → resources/groups/client/requests/GroupsListRequest.d.ts} +1 -1
- package/api/resources/agents/resources/groups/client/requests/index.d.ts +1 -0
- package/api/resources/agents/resources/index.d.ts +2 -0
- package/api/resources/agents/resources/index.js +3 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.d.ts +13 -0
- package/api/resources/agents/resources/messages/client/Client.js +77 -5
- package/{dist/api/resources/agents/client/requests/ResetMessagesRequest.d.ts → api/resources/agents/resources/messages/client/requests/MessagesResetRequest.d.ts} +1 -1
- package/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
- package/api/resources/agents/resources/passages/client/Client.d.ts +16 -0
- package/api/resources/agents/resources/passages/client/Client.js +73 -3
- package/api/resources/agents/{client → resources/passages/client}/requests/PassageUpdate.d.ts +1 -1
- package/api/resources/agents/resources/passages/client/requests/index.d.ts +1 -0
- 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 +3 -3
- package/api/resources/{messages/resources/batches → batches}/client/Client.d.ts +9 -9
- package/api/resources/{messages/resources/batches → batches}/client/Client.js +16 -16
- package/api/resources/{messages/resources/batches → batches}/client/requests/CreateBatch.d.ts +1 -1
- package/api/resources/blocks/client/Client.d.ts +3 -13
- package/api/resources/blocks/client/Client.js +10 -71
- 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.d.ts +45 -0
- package/api/resources/blocks/resources/agents/client/Client.js +135 -0
- package/api/resources/blocks/resources/agents/client/index.d.ts +1 -0
- package/api/resources/blocks/resources/agents/client/index.js +2 -0
- package/api/resources/blocks/resources/index.d.ts +1 -0
- package/api/resources/blocks/resources/index.js +37 -0
- package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
- package/api/resources/embeddings/client/Client.d.ts +39 -0
- package/api/resources/embeddings/client/Client.js +117 -0
- package/api/resources/embeddings/client/index.d.ts +1 -0
- package/api/resources/embeddings/client/index.js +2 -0
- package/api/resources/groups/client/Client.d.ts +0 -12
- package/api/resources/groups/client/Client.js +5 -64
- package/api/resources/groups/resources/messages/client/Client.d.ts +12 -0
- package/api/resources/groups/resources/messages/client/Client.js +63 -4
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.d.ts +3 -15
- package/api/resources/identities/client/Client.js +11 -71
- package/api/resources/identities/index.d.ts +1 -0
- package/api/resources/identities/index.js +1 -0
- package/api/resources/identities/resources/index.d.ts +1 -0
- package/api/resources/identities/resources/index.js +37 -0
- package/api/resources/identities/resources/properties/client/Client.d.ts +47 -0
- package/api/resources/identities/resources/properties/client/Client.js +134 -0
- package/api/resources/identities/resources/properties/client/index.d.ts +1 -0
- package/api/resources/identities/resources/properties/client/index.js +2 -0
- package/api/resources/identities/resources/properties/index.d.ts +1 -0
- package/api/resources/identities/resources/properties/index.js +17 -0
- package/api/resources/index.d.ts +4 -0
- package/api/resources/index.js +5 -1
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/messages/client/Client.d.ts +0 -3
- package/api/resources/messages/client/Client.js +1 -6
- package/api/resources/messages/index.d.ts +0 -1
- package/api/resources/messages/index.js +0 -1
- package/api/resources/models/client/Client.d.ts +2 -9
- package/api/resources/models/client/Client.js +4 -53
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.d.ts +21 -5
- package/api/resources/providers/client/Client.js +98 -10
- package/api/resources/providers/client/requests/{ListProvidersRequest.d.ts → ProvidersListRequest.d.ts} +1 -1
- package/api/resources/providers/client/requests/index.d.ts +1 -1
- package/api/resources/runs/client/Client.d.ts +18 -63
- package/api/resources/runs/client/Client.js +36 -231
- package/{dist/api/resources/runs/client/requests/ListActiveRunsRequest.d.ts → api/resources/runs/client/requests/RunsListActiveRequest.d.ts} +1 -1
- package/api/resources/runs/client/requests/index.d.ts +1 -3
- package/api/resources/runs/index.d.ts +1 -0
- package/api/resources/runs/index.js +1 -0
- package/api/resources/runs/resources/index.d.ts +5 -0
- package/api/resources/runs/resources/index.js +44 -0
- package/api/resources/runs/resources/messages/client/Client.d.ts +58 -0
- package/api/resources/runs/resources/messages/client/Client.js +166 -0
- package/{dist/api/resources/runs/client/requests/ListRunMessagesRequest.d.ts → api/resources/runs/resources/messages/client/requests/MessagesListRequest.d.ts} +2 -2
- package/api/resources/runs/resources/messages/client/requests/index.d.ts +1 -0
- package/api/resources/runs/resources/messages/client/requests/index.js +2 -0
- package/api/resources/runs/resources/messages/index.d.ts +1 -0
- package/api/resources/runs/resources/messages/index.js +17 -0
- package/api/resources/runs/resources/steps/client/Client.d.ts +55 -0
- package/api/resources/runs/resources/steps/client/Client.js +160 -0
- package/api/resources/runs/{client/requests/ListRunStepsRequest.d.ts → resources/steps/client/requests/StepsListRequest.d.ts} +1 -1
- package/api/resources/runs/resources/steps/client/requests/index.d.ts +1 -0
- package/api/resources/runs/resources/steps/client/requests/index.js +2 -0
- package/api/resources/runs/resources/steps/index.d.ts +1 -0
- package/api/resources/runs/resources/steps/index.js +17 -0
- package/api/resources/runs/resources/usage/client/Client.d.ts +44 -0
- package/api/resources/runs/resources/usage/client/Client.js +134 -0
- package/api/resources/runs/resources/usage/client/index.d.ts +1 -0
- package/api/resources/runs/resources/usage/client/index.js +2 -0
- package/api/resources/runs/resources/usage/index.d.ts +1 -0
- package/api/resources/runs/resources/usage/index.js +17 -0
- package/api/resources/sources/client/Client.d.ts +2 -2
- package/api/resources/sources/client/Client.js +9 -9
- 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 +9 -2
- package/api/resources/steps/client/Client.js +47 -4
- package/api/resources/tag/client/Client.js +1 -1
- package/api/resources/tags/client/Client.d.ts +38 -0
- package/api/resources/tags/client/Client.js +110 -0
- package/api/resources/tags/client/index.d.ts +1 -0
- package/api/resources/tags/client/index.js +2 -0
- package/api/resources/tags/index.d.ts +1 -0
- package/api/resources/tags/index.js +17 -0
- package/api/resources/templates/client/Client.d.ts +3 -12
- package/api/resources/templates/client/Client.js +6 -56
- package/api/resources/templates/client/requests/index.d.ts +0 -1
- package/api/resources/templates/index.d.ts +1 -0
- package/api/resources/templates/index.js +1 -0
- package/api/resources/templates/resources/agents/client/Client.d.ts +44 -0
- package/api/resources/templates/resources/agents/client/Client.js +123 -0
- package/api/resources/templates/resources/agents/client/index.d.ts +1 -0
- package/api/resources/templates/resources/agents/client/index.js +17 -0
- package/{dist/api/resources/templates/client/requests/TemplatesCreateAgentsRequest.d.ts → api/resources/templates/resources/agents/client/requests/AgentsCreateRequest.d.ts} +1 -1
- package/api/resources/templates/resources/agents/client/requests/index.d.ts +1 -0
- package/api/resources/templates/resources/agents/client/requests/index.js +2 -0
- package/api/resources/templates/resources/agents/index.d.ts +2 -0
- package/api/resources/templates/resources/agents/index.js +18 -0
- package/api/resources/templates/{types/TemplatesCreateAgentsResponse.d.ts → resources/agents/types/AgentsCreateResponse.d.ts} +2 -2
- package/api/resources/templates/resources/agents/types/index.d.ts +1 -0
- package/api/resources/templates/resources/agents/types/index.js +17 -0
- package/api/resources/templates/resources/index.d.ts +3 -0
- package/api/resources/{messages → templates}/resources/index.js +4 -3
- package/api/resources/templates/types/index.d.ts +0 -1
- package/api/resources/templates/types/index.js +0 -1
- package/api/resources/tools/client/Client.d.ts +2 -2
- package/api/resources/tools/client/Client.js +19 -19
- package/api/resources/voice/client/Client.js +1 -1
- package/dist/Client.d.ts +9 -0
- package/dist/Client.js +39 -24
- package/dist/api/resources/agents/client/Client.d.ts +13 -44
- package/dist/api/resources/agents/client/Client.js +63 -228
- package/dist/api/resources/agents/client/requests/index.d.ts +0 -3
- 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/groups/client/Client.d.ts +45 -0
- package/dist/api/resources/agents/resources/groups/client/Client.js +141 -0
- package/dist/api/resources/agents/resources/groups/client/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/groups/client/index.js +17 -0
- package/dist/api/resources/agents/{client/requests/ListAgentGroupsRequest.d.ts → resources/groups/client/requests/GroupsListRequest.d.ts} +1 -1
- package/dist/api/resources/agents/resources/groups/client/requests/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/groups/client/requests/index.js +2 -0
- package/dist/api/resources/agents/resources/groups/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/groups/index.js +17 -0
- package/dist/api/resources/agents/resources/index.d.ts +2 -0
- package/dist/api/resources/agents/resources/index.js +3 -1
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.d.ts +13 -0
- package/dist/api/resources/agents/resources/messages/client/Client.js +77 -5
- package/{api/resources/agents/client/requests/ResetMessagesRequest.d.ts → dist/api/resources/agents/resources/messages/client/requests/MessagesResetRequest.d.ts} +1 -1
- package/dist/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/passages/client/Client.d.ts +16 -0
- package/dist/api/resources/agents/resources/passages/client/Client.js +73 -3
- package/dist/api/resources/agents/{client → resources/passages/client}/requests/PassageUpdate.d.ts +1 -1
- package/dist/api/resources/agents/resources/passages/client/requests/index.d.ts +1 -0
- 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 +3 -3
- package/dist/api/resources/{messages/resources/batches → batches}/client/Client.d.ts +9 -9
- package/dist/api/resources/{messages/resources/batches → batches}/client/Client.js +16 -16
- package/dist/api/resources/batches/client/index.d.ts +1 -0
- package/dist/api/resources/batches/client/index.js +17 -0
- package/dist/api/resources/{messages/resources/batches → batches}/client/requests/CreateBatch.d.ts +1 -1
- package/dist/api/resources/batches/client/requests/index.js +2 -0
- package/dist/api/resources/batches/index.d.ts +1 -0
- package/dist/api/resources/batches/index.js +17 -0
- package/dist/api/resources/blocks/client/Client.d.ts +3 -13
- package/dist/api/resources/blocks/client/Client.js +10 -71
- 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.d.ts +45 -0
- package/dist/api/resources/blocks/resources/agents/client/Client.js +135 -0
- package/dist/api/resources/blocks/resources/agents/client/index.d.ts +1 -0
- package/dist/api/resources/blocks/resources/agents/client/index.js +2 -0
- package/dist/api/resources/blocks/resources/agents/index.d.ts +1 -0
- package/dist/api/resources/blocks/resources/agents/index.js +17 -0
- package/dist/api/resources/blocks/resources/index.d.ts +1 -0
- package/dist/api/resources/blocks/resources/index.js +37 -0
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
- package/dist/api/resources/embeddings/client/Client.d.ts +39 -0
- package/dist/api/resources/embeddings/client/Client.js +117 -0
- package/dist/api/resources/embeddings/client/index.d.ts +1 -0
- package/dist/api/resources/embeddings/client/index.js +2 -0
- package/dist/api/resources/embeddings/index.d.ts +1 -0
- package/dist/api/resources/embeddings/index.js +17 -0
- package/dist/api/resources/groups/client/Client.d.ts +0 -12
- package/dist/api/resources/groups/client/Client.js +5 -64
- package/dist/api/resources/groups/resources/messages/client/Client.d.ts +12 -0
- package/dist/api/resources/groups/resources/messages/client/Client.js +63 -4
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.d.ts +3 -15
- package/dist/api/resources/identities/client/Client.js +11 -71
- 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/index.d.ts +1 -0
- package/dist/api/resources/identities/resources/index.js +37 -0
- package/dist/api/resources/identities/resources/properties/client/Client.d.ts +47 -0
- package/dist/api/resources/identities/resources/properties/client/Client.js +134 -0
- package/dist/api/resources/identities/resources/properties/client/index.d.ts +1 -0
- package/dist/api/resources/identities/resources/properties/client/index.js +2 -0
- package/dist/api/resources/identities/resources/properties/index.d.ts +1 -0
- package/dist/api/resources/identities/resources/properties/index.js +17 -0
- package/dist/api/resources/index.d.ts +4 -0
- package/dist/api/resources/index.js +5 -1
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/messages/client/Client.d.ts +0 -3
- package/dist/api/resources/messages/client/Client.js +1 -6
- package/dist/api/resources/messages/index.d.ts +0 -1
- package/dist/api/resources/messages/index.js +0 -1
- package/dist/api/resources/models/client/Client.d.ts +2 -9
- package/dist/api/resources/models/client/Client.js +4 -53
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.d.ts +21 -5
- package/dist/api/resources/providers/client/Client.js +98 -10
- package/dist/api/resources/providers/client/requests/{ListProvidersRequest.d.ts → ProvidersListRequest.d.ts} +1 -1
- package/dist/api/resources/providers/client/requests/index.d.ts +1 -1
- package/dist/api/resources/runs/client/Client.d.ts +18 -63
- package/dist/api/resources/runs/client/Client.js +36 -231
- package/{api/resources/runs/client/requests/ListActiveRunsRequest.d.ts → dist/api/resources/runs/client/requests/RunsListActiveRequest.d.ts} +1 -1
- package/dist/api/resources/runs/client/requests/index.d.ts +1 -3
- package/dist/api/resources/runs/index.d.ts +1 -0
- package/dist/api/resources/runs/index.js +1 -0
- package/dist/api/resources/runs/resources/index.d.ts +5 -0
- package/dist/api/resources/runs/resources/index.js +44 -0
- package/dist/api/resources/runs/resources/messages/client/Client.d.ts +58 -0
- package/dist/api/resources/runs/resources/messages/client/Client.js +166 -0
- package/dist/api/resources/runs/resources/messages/client/index.d.ts +1 -0
- package/dist/api/resources/runs/resources/messages/client/index.js +17 -0
- package/{api/resources/runs/client/requests/ListRunMessagesRequest.d.ts → dist/api/resources/runs/resources/messages/client/requests/MessagesListRequest.d.ts} +2 -2
- package/dist/api/resources/runs/resources/messages/client/requests/index.d.ts +1 -0
- package/dist/api/resources/runs/resources/messages/client/requests/index.js +2 -0
- package/dist/api/resources/runs/resources/messages/index.d.ts +1 -0
- package/dist/api/resources/runs/resources/messages/index.js +17 -0
- package/dist/api/resources/runs/resources/steps/client/Client.d.ts +55 -0
- package/dist/api/resources/runs/resources/steps/client/Client.js +160 -0
- package/dist/api/resources/runs/resources/steps/client/index.d.ts +1 -0
- package/dist/api/resources/runs/resources/steps/client/index.js +17 -0
- package/dist/api/resources/runs/{client/requests/ListRunStepsRequest.d.ts → resources/steps/client/requests/StepsListRequest.d.ts} +1 -1
- package/dist/api/resources/runs/resources/steps/client/requests/index.d.ts +1 -0
- package/dist/api/resources/runs/resources/steps/client/requests/index.js +2 -0
- package/dist/api/resources/runs/resources/steps/index.d.ts +1 -0
- package/dist/api/resources/runs/resources/steps/index.js +17 -0
- package/dist/api/resources/runs/resources/usage/client/Client.d.ts +44 -0
- package/dist/api/resources/runs/resources/usage/client/Client.js +134 -0
- package/dist/api/resources/runs/resources/usage/client/index.d.ts +1 -0
- package/dist/api/resources/runs/resources/usage/client/index.js +2 -0
- package/dist/api/resources/runs/resources/usage/index.d.ts +1 -0
- package/dist/api/resources/runs/resources/usage/index.js +17 -0
- package/dist/api/resources/sources/client/Client.d.ts +2 -2
- package/dist/api/resources/sources/client/Client.js +9 -9
- 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 +9 -2
- package/dist/api/resources/steps/client/Client.js +47 -4
- package/dist/api/resources/tag/client/Client.js +1 -1
- package/dist/api/resources/tags/client/Client.d.ts +38 -0
- package/dist/api/resources/tags/client/Client.js +110 -0
- package/dist/api/resources/tags/client/index.d.ts +1 -0
- package/dist/api/resources/tags/client/index.js +2 -0
- package/dist/api/resources/tags/index.d.ts +1 -0
- package/dist/api/resources/tags/index.js +17 -0
- package/dist/api/resources/templates/client/Client.d.ts +3 -12
- package/dist/api/resources/templates/client/Client.js +6 -56
- package/dist/api/resources/templates/client/requests/index.d.ts +0 -1
- package/dist/api/resources/templates/index.d.ts +1 -0
- package/dist/api/resources/templates/index.js +1 -0
- package/dist/api/resources/templates/resources/agents/client/Client.d.ts +44 -0
- package/dist/api/resources/templates/resources/agents/client/Client.js +123 -0
- package/dist/api/resources/templates/resources/agents/client/index.d.ts +1 -0
- package/dist/api/resources/templates/resources/agents/client/index.js +17 -0
- package/{api/resources/templates/client/requests/TemplatesCreateAgentsRequest.d.ts → dist/api/resources/templates/resources/agents/client/requests/AgentsCreateRequest.d.ts} +1 -1
- package/dist/api/resources/templates/resources/agents/client/requests/index.d.ts +1 -0
- package/dist/api/resources/templates/resources/agents/client/requests/index.js +2 -0
- package/dist/api/resources/templates/resources/agents/index.d.ts +2 -0
- package/dist/api/resources/templates/resources/agents/index.js +18 -0
- package/dist/api/resources/templates/{types/TemplatesCreateAgentsResponse.d.ts → resources/agents/types/AgentsCreateResponse.d.ts} +2 -2
- package/dist/api/resources/templates/resources/agents/types/index.d.ts +1 -0
- package/dist/api/resources/templates/resources/agents/types/index.js +17 -0
- package/dist/api/resources/templates/resources/index.d.ts +3 -0
- package/dist/{serialization/resources/messages → api/resources/templates}/resources/index.js +4 -3
- package/dist/api/resources/templates/types/index.d.ts +0 -1
- package/dist/api/resources/templates/types/index.js +0 -1
- package/dist/api/resources/tools/client/Client.d.ts +2 -2
- package/dist/api/resources/tools/client/Client.js +19 -19
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/serialization/resources/agents/client/index.d.ts +0 -2
- package/dist/serialization/resources/agents/client/index.js +1 -3
- package/dist/serialization/resources/agents/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/agents/client/requests/index.js +1 -3
- package/dist/serialization/resources/agents/resources/groups/client/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/groups/client/index.js +37 -0
- package/{serialization/resources/messages/resources/batches → dist/serialization/resources/agents/resources/groups}/client/list.d.ts +3 -3
- package/{serialization/resources/agents/client/listAgentGroups.js → dist/serialization/resources/agents/resources/groups/client/list.js} +2 -2
- package/dist/serialization/resources/agents/resources/groups/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/groups/index.js +17 -0
- package/dist/serialization/resources/agents/resources/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/index.js +2 -1
- package/dist/serialization/resources/agents/resources/passages/client/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/passages/client/index.js +2 -1
- package/dist/serialization/resources/agents/resources/passages/client/modify.d.ts +11 -0
- package/{serialization/resources/agents/client/modifyPassage.js → dist/serialization/resources/agents/resources/passages/client/modify.js} +2 -2
- package/dist/serialization/resources/agents/{client → resources/passages/client}/requests/PassageUpdate.d.ts +5 -5
- package/{serialization/resources/agents → dist/serialization/resources/agents/resources/passages}/client/requests/PassageUpdate.js +2 -2
- package/dist/serialization/resources/agents/resources/passages/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/passages/client/requests/index.js +3 -1
- package/dist/serialization/resources/{agents/client/listAgentGroups.d.ts → batches/client/list.d.ts} +3 -3
- package/dist/serialization/resources/{agents/client/modifyPassage.js → batches/client/list.js} +2 -2
- package/dist/serialization/resources/batches/client/requests/CreateBatch.d.ts +14 -0
- package/dist/serialization/resources/{messages/resources/batches → batches}/client/requests/CreateBatch.js +2 -2
- package/dist/serialization/resources/batches/index.d.ts +1 -0
- package/dist/serialization/resources/batches/index.js +17 -0
- package/dist/serialization/resources/blocks/client/index.d.ts +0 -1
- package/dist/serialization/resources/blocks/client/index.js +1 -2
- package/dist/serialization/resources/blocks/index.d.ts +1 -0
- package/dist/serialization/resources/blocks/index.js +1 -0
- package/dist/serialization/resources/blocks/resources/agents/client/index.d.ts +1 -0
- package/dist/serialization/resources/blocks/resources/agents/client/index.js +37 -0
- package/dist/serialization/resources/blocks/resources/agents/client/list.d.ts +11 -0
- package/dist/serialization/resources/blocks/{client/listAgentsForBlock.js → resources/agents/client/list.js} +2 -2
- package/dist/serialization/resources/blocks/resources/agents/index.d.ts +1 -0
- package/dist/serialization/resources/blocks/resources/agents/index.js +17 -0
- package/dist/serialization/resources/blocks/resources/index.d.ts +1 -0
- package/dist/serialization/resources/blocks/resources/index.js +37 -0
- package/dist/serialization/resources/embeddings/client/index.d.ts +1 -0
- package/dist/serialization/resources/embeddings/client/index.js +37 -0
- package/{serialization/resources/models/client/listEmbeddingModels.d.ts → dist/serialization/resources/embeddings/client/list.d.ts} +1 -1
- package/dist/serialization/resources/embeddings/index.d.ts +1 -0
- package/dist/serialization/resources/embeddings/index.js +17 -0
- package/dist/serialization/resources/identities/client/index.d.ts +0 -1
- package/dist/serialization/resources/identities/client/index.js +1 -2
- package/dist/serialization/resources/identities/index.d.ts +1 -0
- package/dist/serialization/resources/identities/index.js +1 -0
- package/dist/serialization/resources/identities/resources/index.d.ts +1 -0
- package/dist/serialization/resources/identities/resources/index.js +37 -0
- package/dist/serialization/resources/identities/resources/properties/client/index.d.ts +1 -0
- package/dist/serialization/resources/identities/resources/properties/client/index.js +37 -0
- package/dist/serialization/resources/identities/resources/properties/client/upsert.d.ts +11 -0
- package/dist/serialization/resources/identities/{client/upsertIdentityProperties.js → resources/properties/client/upsert.js} +2 -2
- package/dist/serialization/resources/identities/resources/properties/index.d.ts +1 -0
- package/dist/serialization/resources/identities/resources/properties/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +3 -2
- package/dist/serialization/resources/index.js +4 -3
- package/dist/serialization/resources/models/client/index.d.ts +1 -2
- package/dist/serialization/resources/models/client/index.js +2 -3
- package/{serialization/resources/models/client/listLlms.d.ts → dist/serialization/resources/models/client/list.d.ts} +1 -1
- package/dist/serialization/resources/providers/client/index.d.ts +1 -1
- package/dist/serialization/resources/providers/client/index.js +2 -2
- package/{serialization/resources/providers/client/listProviders.d.ts → dist/serialization/resources/providers/client/list.d.ts} +1 -1
- package/dist/serialization/resources/runs/client/index.d.ts +1 -3
- package/dist/serialization/resources/runs/client/index.js +2 -4
- package/{serialization/resources/runs/client/listActiveRuns.d.ts → dist/serialization/resources/runs/client/listActive.d.ts} +1 -1
- package/dist/serialization/resources/runs/index.d.ts +1 -0
- package/dist/serialization/resources/runs/index.js +1 -0
- package/dist/serialization/resources/runs/resources/index.d.ts +2 -0
- package/dist/serialization/resources/runs/resources/index.js +38 -0
- package/dist/serialization/resources/runs/resources/messages/client/index.d.ts +1 -0
- package/dist/serialization/resources/runs/resources/messages/client/index.js +37 -0
- package/dist/serialization/resources/runs/resources/messages/client/list.d.ts +11 -0
- package/dist/serialization/resources/runs/{client/listRunMessages.js → resources/messages/client/list.js} +2 -2
- package/dist/serialization/resources/runs/resources/messages/index.d.ts +1 -0
- package/dist/serialization/resources/runs/resources/messages/index.js +17 -0
- package/dist/serialization/resources/runs/resources/steps/client/index.d.ts +1 -0
- package/dist/serialization/resources/runs/resources/steps/client/index.js +37 -0
- package/dist/serialization/resources/{messages/resources/batches → runs/resources/steps}/client/list.d.ts +3 -3
- package/dist/serialization/resources/runs/{client/listRunSteps.js → resources/steps/client/list.js} +2 -2
- package/dist/serialization/resources/runs/resources/steps/index.d.ts +1 -0
- package/dist/serialization/resources/runs/resources/steps/index.js +17 -0
- package/dist/serialization/resources/sources/client/index.d.ts +1 -1
- package/dist/serialization/resources/sources/client/index.js +2 -2
- package/dist/serialization/resources/sources/client/{getByName.d.ts → retrieveByName.d.ts} +1 -1
- package/dist/serialization/resources/templates/index.d.ts +1 -1
- package/dist/serialization/resources/templates/index.js +1 -1
- package/dist/serialization/resources/templates/resources/agents/client/index.d.ts +1 -0
- package/dist/serialization/resources/templates/resources/agents/client/index.js +17 -0
- package/dist/serialization/resources/templates/resources/agents/client/requests/AgentsCreateRequest.d.ts +16 -0
- package/{serialization/resources/templates/client/requests/TemplatesCreateAgentsRequest.js → dist/serialization/resources/templates/resources/agents/client/requests/AgentsCreateRequest.js} +3 -3
- package/dist/serialization/resources/templates/resources/agents/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/templates/resources/agents/client/requests/index.js +5 -0
- package/dist/serialization/resources/templates/resources/agents/index.d.ts +2 -0
- package/dist/serialization/resources/templates/resources/agents/index.js +18 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponse.d.ts +13 -0
- package/{serialization/resources/messages/resources/batches/client/list.js → dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponse.js} +5 -3
- package/dist/serialization/resources/templates/resources/agents/types/index.d.ts +1 -0
- package/dist/serialization/resources/templates/resources/agents/types/index.js +17 -0
- package/dist/serialization/resources/templates/resources/index.d.ts +3 -0
- package/dist/{api/resources/messages → serialization/resources/templates}/resources/index.js +4 -3
- package/dist/serialization/resources/templates/types/index.d.ts +0 -1
- package/dist/serialization/resources/templates/types/index.js +0 -1
- package/dist/serialization/resources/tools/client/index.d.ts +1 -1
- package/dist/serialization/resources/tools/client/index.js +2 -2
- package/{serialization/resources/tools/client/addBaseTool.d.ts → dist/serialization/resources/tools/client/upsertBaseTools.d.ts} +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +910 -628
- package/serialization/resources/agents/client/index.d.ts +0 -2
- package/serialization/resources/agents/client/index.js +1 -3
- package/serialization/resources/agents/client/requests/index.d.ts +0 -1
- package/serialization/resources/agents/client/requests/index.js +1 -3
- package/serialization/resources/agents/resources/groups/client/index.d.ts +1 -0
- package/serialization/resources/agents/resources/groups/client/index.js +37 -0
- package/serialization/resources/agents/resources/groups/client/list.d.ts +11 -0
- package/{dist/serialization/resources/agents/client/listAgentGroups.js → serialization/resources/agents/resources/groups/client/list.js} +2 -2
- package/serialization/resources/agents/resources/groups/index.d.ts +1 -0
- package/serialization/resources/agents/resources/groups/index.js +17 -0
- package/serialization/resources/agents/resources/index.d.ts +1 -0
- package/serialization/resources/agents/resources/index.js +2 -1
- package/serialization/resources/agents/resources/passages/client/index.d.ts +1 -0
- package/serialization/resources/agents/resources/passages/client/index.js +2 -1
- package/serialization/resources/agents/resources/passages/client/modify.d.ts +11 -0
- package/{dist/serialization/resources/messages/resources/batches/client/list.js → serialization/resources/agents/resources/passages/client/modify.js} +2 -2
- package/serialization/resources/agents/{client → resources/passages/client}/requests/PassageUpdate.d.ts +5 -5
- package/{dist/serialization/resources/agents → serialization/resources/agents/resources/passages}/client/requests/PassageUpdate.js +2 -2
- package/serialization/resources/agents/resources/passages/client/requests/index.d.ts +1 -0
- package/serialization/resources/agents/resources/passages/client/requests/index.js +3 -1
- package/{dist/serialization/resources/runs/client/listRunSteps.d.ts → serialization/resources/batches/client/list.d.ts} +3 -3
- package/serialization/resources/batches/client/list.js +42 -0
- package/serialization/resources/batches/client/requests/CreateBatch.d.ts +14 -0
- package/serialization/resources/{messages/resources/batches → batches}/client/requests/CreateBatch.js +2 -2
- package/serialization/resources/batches/index.d.ts +1 -0
- package/serialization/resources/batches/index.js +17 -0
- package/serialization/resources/blocks/client/index.d.ts +0 -1
- package/serialization/resources/blocks/client/index.js +1 -2
- package/serialization/resources/blocks/index.d.ts +1 -0
- package/serialization/resources/blocks/index.js +1 -0
- package/serialization/resources/blocks/resources/agents/client/index.d.ts +1 -0
- package/serialization/resources/blocks/resources/agents/client/index.js +37 -0
- package/serialization/resources/blocks/resources/agents/client/list.d.ts +11 -0
- package/serialization/resources/blocks/{client/listAgentsForBlock.js → resources/agents/client/list.js} +2 -2
- package/serialization/resources/blocks/resources/agents/index.d.ts +1 -0
- package/serialization/resources/blocks/resources/agents/index.js +17 -0
- package/serialization/resources/blocks/resources/index.d.ts +1 -0
- package/serialization/resources/blocks/resources/index.js +37 -0
- package/serialization/resources/embeddings/client/index.d.ts +1 -0
- package/serialization/resources/embeddings/client/index.js +37 -0
- package/{dist/serialization/resources/models/client/listEmbeddingModels.d.ts → serialization/resources/embeddings/client/list.d.ts} +1 -1
- package/serialization/resources/embeddings/index.d.ts +1 -0
- package/serialization/resources/embeddings/index.js +17 -0
- package/serialization/resources/identities/client/index.d.ts +0 -1
- package/serialization/resources/identities/client/index.js +1 -2
- package/serialization/resources/identities/index.d.ts +1 -0
- package/serialization/resources/identities/index.js +1 -0
- package/serialization/resources/identities/resources/index.d.ts +1 -0
- package/serialization/resources/identities/resources/index.js +37 -0
- package/serialization/resources/identities/resources/properties/client/index.d.ts +1 -0
- package/serialization/resources/identities/resources/properties/client/index.js +37 -0
- package/serialization/resources/identities/resources/properties/client/upsert.d.ts +11 -0
- package/serialization/resources/identities/{client/upsertIdentityProperties.js → resources/properties/client/upsert.js} +2 -2
- package/serialization/resources/identities/resources/properties/index.d.ts +1 -0
- package/serialization/resources/identities/resources/properties/index.js +17 -0
- package/serialization/resources/index.d.ts +3 -2
- package/serialization/resources/index.js +4 -3
- package/serialization/resources/models/client/index.d.ts +1 -2
- package/serialization/resources/models/client/index.js +2 -3
- package/{dist/serialization/resources/models/client/listLlms.d.ts → serialization/resources/models/client/list.d.ts} +1 -1
- package/serialization/resources/providers/client/index.d.ts +1 -1
- package/serialization/resources/providers/client/index.js +2 -2
- package/{dist/serialization/resources/providers/client/listProviders.d.ts → serialization/resources/providers/client/list.d.ts} +1 -1
- package/serialization/resources/runs/client/index.d.ts +1 -3
- package/serialization/resources/runs/client/index.js +2 -4
- package/{dist/serialization/resources/runs/client/listActiveRuns.d.ts → serialization/resources/runs/client/listActive.d.ts} +1 -1
- package/serialization/resources/runs/index.d.ts +1 -0
- package/serialization/resources/runs/index.js +1 -0
- package/serialization/resources/runs/resources/index.d.ts +2 -0
- package/serialization/resources/runs/resources/index.js +38 -0
- package/serialization/resources/runs/resources/messages/client/index.d.ts +1 -0
- package/serialization/resources/runs/resources/messages/client/index.js +37 -0
- package/serialization/resources/runs/resources/messages/client/list.d.ts +11 -0
- package/serialization/resources/runs/{client/listRunMessages.js → resources/messages/client/list.js} +2 -2
- package/serialization/resources/runs/resources/messages/index.d.ts +1 -0
- package/serialization/resources/runs/resources/messages/index.js +17 -0
- package/serialization/resources/runs/resources/steps/client/index.d.ts +1 -0
- package/serialization/resources/runs/resources/steps/client/index.js +37 -0
- package/serialization/resources/runs/resources/steps/client/list.d.ts +11 -0
- package/serialization/resources/runs/{client/listRunSteps.js → resources/steps/client/list.js} +2 -2
- package/serialization/resources/runs/resources/steps/index.d.ts +1 -0
- package/serialization/resources/runs/resources/steps/index.js +17 -0
- package/serialization/resources/sources/client/index.d.ts +1 -1
- package/serialization/resources/sources/client/index.js +2 -2
- package/serialization/resources/sources/client/{getByName.d.ts → retrieveByName.d.ts} +1 -1
- package/serialization/resources/templates/index.d.ts +1 -1
- package/serialization/resources/templates/index.js +1 -1
- package/serialization/resources/templates/resources/agents/client/index.d.ts +1 -0
- package/serialization/resources/templates/resources/agents/client/index.js +17 -0
- package/serialization/resources/templates/resources/agents/client/requests/AgentsCreateRequest.d.ts +16 -0
- package/{dist/serialization/resources/templates/client/requests/TemplatesCreateAgentsRequest.js → serialization/resources/templates/resources/agents/client/requests/AgentsCreateRequest.js} +3 -3
- package/serialization/resources/templates/resources/agents/client/requests/index.d.ts +1 -0
- package/serialization/resources/templates/resources/agents/client/requests/index.js +5 -0
- package/serialization/resources/templates/resources/agents/index.d.ts +2 -0
- package/serialization/resources/templates/resources/agents/index.js +18 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponse.d.ts +13 -0
- package/serialization/resources/templates/{types/TemplatesCreateAgentsResponse.js → resources/agents/types/AgentsCreateResponse.js} +4 -4
- package/serialization/resources/templates/resources/agents/types/index.d.ts +1 -0
- package/serialization/resources/templates/resources/agents/types/index.js +17 -0
- package/serialization/resources/templates/resources/index.d.ts +3 -0
- package/serialization/resources/templates/resources/index.js +42 -0
- package/serialization/resources/templates/types/index.d.ts +0 -1
- package/serialization/resources/templates/types/index.js +0 -1
- package/serialization/resources/tools/client/index.d.ts +1 -1
- package/serialization/resources/tools/client/index.js +2 -2
- package/{dist/serialization/resources/tools/client/addBaseTool.d.ts → serialization/resources/tools/client/upsertBaseTools.d.ts} +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/messages/resources/index.d.ts +0 -2
- package/dist/api/resources/messages/resources/index.d.ts +0 -2
- package/dist/serialization/resources/agents/client/modifyPassage.d.ts +0 -11
- package/dist/serialization/resources/blocks/client/listAgentsForBlock.d.ts +0 -11
- package/dist/serialization/resources/identities/client/upsertIdentityProperties.d.ts +0 -11
- package/dist/serialization/resources/messages/index.d.ts +0 -1
- package/dist/serialization/resources/messages/index.js +0 -17
- package/dist/serialization/resources/messages/resources/batches/client/requests/CreateBatch.d.ts +0 -14
- package/dist/serialization/resources/messages/resources/index.d.ts +0 -2
- package/dist/serialization/resources/runs/client/listRunMessages.d.ts +0 -11
- package/dist/serialization/resources/templates/client/requests/TemplatesCreateAgentsRequest.d.ts +0 -16
- package/dist/serialization/resources/templates/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/templates/client/requests/index.js +0 -5
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponse.d.ts +0 -13
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponse.js +0 -44
- package/serialization/resources/agents/client/listAgentGroups.d.ts +0 -11
- package/serialization/resources/agents/client/modifyPassage.d.ts +0 -11
- package/serialization/resources/blocks/client/listAgentsForBlock.d.ts +0 -11
- package/serialization/resources/identities/client/upsertIdentityProperties.d.ts +0 -11
- package/serialization/resources/messages/index.d.ts +0 -1
- package/serialization/resources/messages/index.js +0 -17
- package/serialization/resources/messages/resources/batches/client/requests/CreateBatch.d.ts +0 -14
- package/serialization/resources/messages/resources/index.d.ts +0 -2
- package/serialization/resources/messages/resources/index.js +0 -41
- package/serialization/resources/runs/client/listRunMessages.d.ts +0 -11
- package/serialization/resources/runs/client/listRunSteps.d.ts +0 -11
- package/serialization/resources/templates/client/requests/TemplatesCreateAgentsRequest.d.ts +0 -16
- package/serialization/resources/templates/client/requests/index.d.ts +0 -1
- package/serialization/resources/templates/client/requests/index.js +0 -5
- package/serialization/resources/templates/types/TemplatesCreateAgentsResponse.d.ts +0 -13
- /package/api/resources/{messages/resources/batches → agents/resources/groups}/client/index.d.ts +0 -0
- /package/api/resources/{messages/resources/batches → agents/resources/groups}/client/index.js +0 -0
- /package/api/resources/agents/{client/requests/ListAgentGroupsRequest.js → resources/groups/client/requests/GroupsListRequest.js} +0 -0
- /package/api/resources/{messages/resources/batches → agents/resources/groups}/client/requests/index.js +0 -0
- /package/api/resources/{messages/resources/batches → agents/resources/groups}/index.d.ts +0 -0
- /package/api/resources/{messages/resources/batches → agents/resources/groups}/index.js +0 -0
- /package/api/resources/agents/{client/requests/PassageUpdate.js → resources/messages/client/requests/MessagesResetRequest.js} +0 -0
- /package/{dist/api/resources/agents → api/resources/agents/resources/passages}/client/requests/PassageUpdate.js +0 -0
- /package/{dist/api/resources/messages → api}/resources/batches/client/index.d.ts +0 -0
- /package/{dist/api/resources/messages → api}/resources/batches/client/index.js +0 -0
- /package/api/resources/{messages/resources/batches → batches}/client/requests/CreateBatch.js +0 -0
- /package/api/resources/{messages/resources/batches → batches}/client/requests/index.d.ts +0 -0
- /package/{dist/api/resources/messages → api}/resources/batches/client/requests/index.js +0 -0
- /package/{dist/api/resources/messages → api}/resources/batches/index.d.ts +0 -0
- /package/{dist/api/resources/messages → api}/resources/batches/index.js +0 -0
- /package/{dist/serialization/resources/messages/resources/batches → api/resources/blocks/resources/agents}/index.d.ts +0 -0
- /package/{dist/serialization/resources/messages/resources/batches → api/resources/blocks/resources/agents}/index.js +0 -0
- /package/{serialization/resources/messages/resources/batches → api/resources/embeddings}/index.d.ts +0 -0
- /package/{serialization/resources/messages/resources/batches → api/resources/embeddings}/index.js +0 -0
- /package/api/resources/{agents/client/requests/ResetMessagesRequest.js → providers/client/requests/ProvidersListRequest.js} +0 -0
- /package/api/resources/{providers/client/requests/ListProvidersRequest.js → runs/client/requests/RunsListActiveRequest.js} +0 -0
- /package/{dist/serialization/resources/templates → api/resources/runs/resources/messages}/client/index.d.ts +0 -0
- /package/{dist/serialization/resources/templates → api/resources/runs/resources/messages}/client/index.js +0 -0
- /package/api/resources/runs/{client/requests/ListActiveRunsRequest.js → resources/messages/client/requests/MessagesListRequest.js} +0 -0
- /package/{serialization/resources/templates → api/resources/runs/resources/steps}/client/index.d.ts +0 -0
- /package/{serialization/resources/templates → api/resources/runs/resources/steps}/client/index.js +0 -0
- /package/api/resources/runs/{client/requests/ListRunMessagesRequest.js → resources/steps/client/requests/StepsListRequest.js} +0 -0
- /package/api/resources/{runs/client/requests/ListRunStepsRequest.js → templates/resources/agents/client/requests/AgentsCreateRequest.js} +0 -0
- /package/api/resources/templates/{client/requests/TemplatesCreateAgentsRequest.js → resources/agents/types/AgentsCreateResponse.js} +0 -0
- /package/{api/resources/templates/types/TemplatesCreateAgentsResponse.js → dist/api/resources/agents/resources/groups/client/requests/GroupsListRequest.js} +0 -0
- /package/dist/api/resources/agents/{client/requests/ListAgentGroupsRequest.js → resources/messages/client/requests/MessagesResetRequest.js} +0 -0
- /package/dist/api/resources/agents/{client/requests/ResetMessagesRequest.js → resources/passages/client/requests/PassageUpdate.js} +0 -0
- /package/dist/api/resources/{messages/resources/batches → batches}/client/requests/CreateBatch.js +0 -0
- /package/dist/api/resources/{messages/resources/batches → batches}/client/requests/index.d.ts +0 -0
- /package/dist/api/resources/providers/client/requests/{ListProvidersRequest.js → ProvidersListRequest.js} +0 -0
- /package/dist/api/resources/runs/client/requests/{ListActiveRunsRequest.js → RunsListActiveRequest.js} +0 -0
- /package/dist/api/resources/runs/{client/requests/ListRunMessagesRequest.js → resources/messages/client/requests/MessagesListRequest.js} +0 -0
- /package/dist/api/resources/runs/{client/requests/ListRunStepsRequest.js → resources/steps/client/requests/StepsListRequest.js} +0 -0
- /package/dist/api/resources/templates/{client/requests/TemplatesCreateAgentsRequest.js → resources/agents/client/requests/AgentsCreateRequest.js} +0 -0
- /package/dist/api/resources/templates/{types/TemplatesCreateAgentsResponse.js → resources/agents/types/AgentsCreateResponse.js} +0 -0
- /package/dist/serialization/resources/{messages/resources/batches → batches}/client/index.d.ts +0 -0
- /package/dist/serialization/resources/{messages/resources/batches → batches}/client/index.js +0 -0
- /package/dist/serialization/resources/{messages/resources/batches → batches}/client/requests/index.d.ts +0 -0
- /package/dist/serialization/resources/{messages/resources/batches → batches}/client/requests/index.js +0 -0
- /package/dist/serialization/resources/{models/client/listEmbeddingModels.js → embeddings/client/list.js} +0 -0
- /package/dist/serialization/resources/models/client/{listLlms.js → list.js} +0 -0
- /package/dist/serialization/resources/providers/client/{listProviders.js → list.js} +0 -0
- /package/dist/serialization/resources/runs/client/{listActiveRuns.js → listActive.js} +0 -0
- /package/dist/serialization/resources/sources/client/{getByName.js → retrieveByName.js} +0 -0
- /package/dist/serialization/resources/tools/client/{addBaseTool.js → upsertBaseTools.js} +0 -0
- /package/serialization/resources/{messages/resources/batches → batches}/client/index.d.ts +0 -0
- /package/serialization/resources/{messages/resources/batches → batches}/client/index.js +0 -0
- /package/serialization/resources/{messages/resources/batches → batches}/client/requests/index.d.ts +0 -0
- /package/serialization/resources/{messages/resources/batches → batches}/client/requests/index.js +0 -0
- /package/serialization/resources/{models/client/listEmbeddingModels.js → embeddings/client/list.js} +0 -0
- /package/serialization/resources/models/client/{listLlms.js → list.js} +0 -0
- /package/serialization/resources/providers/client/{listProviders.js → list.js} +0 -0
- /package/serialization/resources/runs/client/{listActiveRuns.js → listActive.js} +0 -0
- /package/serialization/resources/sources/client/{getByName.js → retrieveByName.js} +0 -0
- /package/serialization/resources/tools/client/{addBaseTool.js → upsertBaseTools.js} +0 -0
|
@@ -51,67 +51,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
51
51
|
exports.Templates = void 0;
|
|
52
52
|
const environments = __importStar(require("../../../../environments"));
|
|
53
53
|
const core = __importStar(require("../../../../core"));
|
|
54
|
-
const serializers = __importStar(require("../../../../serialization/index"));
|
|
55
54
|
const url_join_1 = __importDefault(require("url-join"));
|
|
55
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
56
56
|
const errors = __importStar(require("../../../../errors/index"));
|
|
57
|
+
const Client_1 = require("../resources/agents/client/Client");
|
|
57
58
|
class Templates {
|
|
58
59
|
constructor(_options = {}) {
|
|
59
60
|
this._options = _options;
|
|
60
61
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
* @param {string} project - The project slug
|
|
65
|
-
* @param {string} templateVersion - The template version, formatted as {template-name}:{version-number} or {template-name}:latest
|
|
66
|
-
* @param {Letta.TemplatesCreateAgentsRequest} request
|
|
67
|
-
* @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
-
*
|
|
69
|
-
* @example
|
|
70
|
-
* await client.templates.createAgents("project", "template_version")
|
|
71
|
-
*/
|
|
72
|
-
createAgents(project_1, templateVersion_1) {
|
|
73
|
-
return __awaiter(this, arguments, void 0, function* (project, templateVersion, request = {}, requestOptions) {
|
|
74
|
-
var _a, _b, _c;
|
|
75
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
76
|
-
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/templates/${encodeURIComponent(project)}/${encodeURIComponent(templateVersion)}/agents`),
|
|
77
|
-
method: "POST",
|
|
78
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.97", "User-Agent": "@letta-ai/letta-client/0.1.97", "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),
|
|
79
|
-
contentType: "application/json",
|
|
80
|
-
requestType: "json",
|
|
81
|
-
body: serializers.TemplatesCreateAgentsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
82
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
83
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
84
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
85
|
-
});
|
|
86
|
-
if (_response.ok) {
|
|
87
|
-
return serializers.TemplatesCreateAgentsResponse.parseOrThrow(_response.body, {
|
|
88
|
-
unrecognizedObjectKeys: "passthrough",
|
|
89
|
-
allowUnrecognizedUnionMembers: true,
|
|
90
|
-
allowUnrecognizedEnumValues: true,
|
|
91
|
-
skipValidation: true,
|
|
92
|
-
breadcrumbsPrefix: ["response"],
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
if (_response.error.reason === "status-code") {
|
|
96
|
-
throw new errors.LettaError({
|
|
97
|
-
statusCode: _response.error.statusCode,
|
|
98
|
-
body: _response.error.body,
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
switch (_response.error.reason) {
|
|
102
|
-
case "non-json":
|
|
103
|
-
throw new errors.LettaError({
|
|
104
|
-
statusCode: _response.error.statusCode,
|
|
105
|
-
body: _response.error.rawBody,
|
|
106
|
-
});
|
|
107
|
-
case "timeout":
|
|
108
|
-
throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/templates/{project}/{template_version}/agents.");
|
|
109
|
-
case "unknown":
|
|
110
|
-
throw new errors.LettaError({
|
|
111
|
-
message: _response.error.errorMessage,
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
});
|
|
62
|
+
get agents() {
|
|
63
|
+
var _a;
|
|
64
|
+
return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Client_1.Agents(this._options)));
|
|
115
65
|
}
|
|
116
66
|
/**
|
|
117
67
|
* List all templates
|
|
@@ -142,7 +92,7 @@ class Templates {
|
|
|
142
92
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
143
93
|
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/templates"),
|
|
144
94
|
method: "GET",
|
|
145
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
95
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "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),
|
|
146
96
|
contentType: "application/json",
|
|
147
97
|
queryParameters: _queryParams,
|
|
148
98
|
requestType: "json",
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./resources"), exports);
|
|
18
19
|
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
import * as Letta from "../../../../../index";
|
|
7
|
+
export declare namespace Agents {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.LettaEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<string | undefined>;
|
|
13
|
+
fetcher?: core.FetchFunction;
|
|
14
|
+
}
|
|
15
|
+
interface RequestOptions {
|
|
16
|
+
/** The maximum time to wait for a response in seconds. */
|
|
17
|
+
timeoutInSeconds?: number;
|
|
18
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
19
|
+
maxRetries?: number;
|
|
20
|
+
/** A hook to abort the request. */
|
|
21
|
+
abortSignal?: AbortSignal;
|
|
22
|
+
/** Additional headers to include in the request. */
|
|
23
|
+
headers?: Record<string, string>;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export declare class Agents {
|
|
27
|
+
protected readonly _options: Agents.Options;
|
|
28
|
+
constructor(_options?: Agents.Options);
|
|
29
|
+
/**
|
|
30
|
+
* Creates an Agent or multiple Agents from a template
|
|
31
|
+
*
|
|
32
|
+
* @param {string} project - The project slug
|
|
33
|
+
* @param {string} templateVersion - The template version, formatted as {template-name}:{version-number} or {template-name}:latest
|
|
34
|
+
* @param {Letta.templates.AgentsCreateRequest} request
|
|
35
|
+
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* await client.templates.agents.create("project", "template_version")
|
|
39
|
+
*/
|
|
40
|
+
create(project: string, templateVersion: string, request?: Letta.templates.AgentsCreateRequest, requestOptions?: Agents.RequestOptions): Promise<Letta.templates.AgentsCreateResponse>;
|
|
41
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
42
|
+
Authorization: string;
|
|
43
|
+
}>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
+
};
|
|
50
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
+
exports.Agents = void 0;
|
|
52
|
+
const environments = __importStar(require("../../../../../../environments"));
|
|
53
|
+
const core = __importStar(require("../../../../../../core"));
|
|
54
|
+
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
55
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
56
|
+
const errors = __importStar(require("../../../../../../errors/index"));
|
|
57
|
+
class Agents {
|
|
58
|
+
constructor(_options = {}) {
|
|
59
|
+
this._options = _options;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Creates an Agent or multiple Agents from a template
|
|
63
|
+
*
|
|
64
|
+
* @param {string} project - The project slug
|
|
65
|
+
* @param {string} templateVersion - The template version, formatted as {template-name}:{version-number} or {template-name}:latest
|
|
66
|
+
* @param {Letta.templates.AgentsCreateRequest} request
|
|
67
|
+
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* await client.templates.agents.create("project", "template_version")
|
|
71
|
+
*/
|
|
72
|
+
create(project_1, templateVersion_1) {
|
|
73
|
+
return __awaiter(this, arguments, void 0, function* (project, templateVersion, request = {}, requestOptions) {
|
|
74
|
+
var _a, _b, _c;
|
|
75
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
76
|
+
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/templates/${encodeURIComponent(project)}/${encodeURIComponent(templateVersion)}/agents`),
|
|
77
|
+
method: "POST",
|
|
78
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "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),
|
|
79
|
+
contentType: "application/json",
|
|
80
|
+
requestType: "json",
|
|
81
|
+
body: serializers.templates.AgentsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
82
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
83
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
84
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
85
|
+
});
|
|
86
|
+
if (_response.ok) {
|
|
87
|
+
return serializers.templates.AgentsCreateResponse.parseOrThrow(_response.body, {
|
|
88
|
+
unrecognizedObjectKeys: "passthrough",
|
|
89
|
+
allowUnrecognizedUnionMembers: true,
|
|
90
|
+
allowUnrecognizedEnumValues: true,
|
|
91
|
+
skipValidation: true,
|
|
92
|
+
breadcrumbsPrefix: ["response"],
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
if (_response.error.reason === "status-code") {
|
|
96
|
+
throw new errors.LettaError({
|
|
97
|
+
statusCode: _response.error.statusCode,
|
|
98
|
+
body: _response.error.body,
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
switch (_response.error.reason) {
|
|
102
|
+
case "non-json":
|
|
103
|
+
throw new errors.LettaError({
|
|
104
|
+
statusCode: _response.error.statusCode,
|
|
105
|
+
body: _response.error.rawBody,
|
|
106
|
+
});
|
|
107
|
+
case "timeout":
|
|
108
|
+
throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/templates/{project}/{template_version}/agents.");
|
|
109
|
+
case "unknown":
|
|
110
|
+
throw new errors.LettaError({
|
|
111
|
+
message: _response.error.errorMessage,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
_getCustomAuthorizationHeaders() {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
const tokenValue = yield core.Supplier.get(this._options.token);
|
|
119
|
+
return { Authorization: `Bearer ${tokenValue}` };
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
exports.Agents = Agents;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type AgentsCreateRequest } from "./AgentsCreateRequest";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Letta from "
|
|
5
|
-
export interface
|
|
4
|
+
import * as Letta from "../../../../../index";
|
|
5
|
+
export interface AgentsCreateResponse {
|
|
6
6
|
agents: Letta.AgentState[];
|
|
7
7
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./AgentsCreateResponse";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AgentsCreateResponse"), exports);
|
package/dist/{serialization/resources/messages → api/resources/templates}/resources/index.js
RENAMED
|
@@ -36,6 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
__exportStar(require("./
|
|
39
|
+
exports.agents = void 0;
|
|
40
|
+
exports.agents = __importStar(require("./agents"));
|
|
41
|
+
__exportStar(require("./agents/types"), exports);
|
|
42
|
+
__exportStar(require("./agents/client/requests"), exports);
|
|
@@ -14,6 +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("./TemplatesCreateAgentsResponse"), exports);
|
|
18
17
|
__exportStar(require("./TemplatesListTemplatesResponseTemplatesItem"), exports);
|
|
19
18
|
__exportStar(require("./TemplatesListTemplatesResponse"), exports);
|
|
@@ -111,9 +111,9 @@ export declare class Tools {
|
|
|
111
111
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
112
112
|
*
|
|
113
113
|
* @example
|
|
114
|
-
* await client.tools.
|
|
114
|
+
* await client.tools.upsertBaseTools()
|
|
115
115
|
*/
|
|
116
|
-
|
|
116
|
+
upsertBaseTools(requestOptions?: Tools.RequestOptions): Promise<Letta.Tool[]>;
|
|
117
117
|
/**
|
|
118
118
|
* Attempt to build a tool from source, then run it on the provided arguments
|
|
119
119
|
*
|
|
@@ -76,7 +76,7 @@ class Tools {
|
|
|
76
76
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
77
77
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
|
|
78
78
|
method: "GET",
|
|
79
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
79
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "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),
|
|
80
80
|
contentType: "application/json",
|
|
81
81
|
requestType: "json",
|
|
82
82
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -141,7 +141,7 @@ class Tools {
|
|
|
141
141
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
142
142
|
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/tools/${encodeURIComponent(toolId)}`),
|
|
143
143
|
method: "DELETE",
|
|
144
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
144
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "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),
|
|
145
145
|
contentType: "application/json",
|
|
146
146
|
requestType: "json",
|
|
147
147
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -201,7 +201,7 @@ class Tools {
|
|
|
201
201
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
202
202
|
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/tools/${encodeURIComponent(toolId)}`),
|
|
203
203
|
method: "PATCH",
|
|
204
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
204
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "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),
|
|
205
205
|
contentType: "application/json",
|
|
206
206
|
requestType: "json",
|
|
207
207
|
body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -278,7 +278,7 @@ class Tools {
|
|
|
278
278
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
279
279
|
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/tools/"),
|
|
280
280
|
method: "GET",
|
|
281
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
281
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "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),
|
|
282
282
|
contentType: "application/json",
|
|
283
283
|
queryParameters: _queryParams,
|
|
284
284
|
requestType: "json",
|
|
@@ -346,7 +346,7 @@ class Tools {
|
|
|
346
346
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
347
347
|
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/tools/"),
|
|
348
348
|
method: "POST",
|
|
349
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
349
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "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),
|
|
350
350
|
contentType: "application/json",
|
|
351
351
|
requestType: "json",
|
|
352
352
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -414,7 +414,7 @@ class Tools {
|
|
|
414
414
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
415
415
|
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/tools/"),
|
|
416
416
|
method: "PUT",
|
|
417
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
417
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "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),
|
|
418
418
|
contentType: "application/json",
|
|
419
419
|
requestType: "json",
|
|
420
420
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -471,15 +471,15 @@ class Tools {
|
|
|
471
471
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
472
472
|
*
|
|
473
473
|
* @example
|
|
474
|
-
* await client.tools.
|
|
474
|
+
* await client.tools.upsertBaseTools()
|
|
475
475
|
*/
|
|
476
|
-
|
|
476
|
+
upsertBaseTools(requestOptions) {
|
|
477
477
|
return __awaiter(this, void 0, void 0, function* () {
|
|
478
478
|
var _a, _b, _c;
|
|
479
479
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
480
480
|
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/tools/add-base-tools"),
|
|
481
481
|
method: "POST",
|
|
482
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
482
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "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),
|
|
483
483
|
contentType: "application/json",
|
|
484
484
|
requestType: "json",
|
|
485
485
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -487,7 +487,7 @@ class Tools {
|
|
|
487
487
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
488
488
|
});
|
|
489
489
|
if (_response.ok) {
|
|
490
|
-
return serializers.tools.
|
|
490
|
+
return serializers.tools.upsertBaseTools.Response.parseOrThrow(_response.body, {
|
|
491
491
|
unrecognizedObjectKeys: "passthrough",
|
|
492
492
|
allowUnrecognizedUnionMembers: true,
|
|
493
493
|
allowUnrecognizedEnumValues: true,
|
|
@@ -549,7 +549,7 @@ class Tools {
|
|
|
549
549
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
550
550
|
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/tools/run"),
|
|
551
551
|
method: "POST",
|
|
552
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
552
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "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),
|
|
553
553
|
contentType: "application/json",
|
|
554
554
|
requestType: "json",
|
|
555
555
|
body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -616,7 +616,7 @@ class Tools {
|
|
|
616
616
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
617
617
|
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/tools/composio/apps"),
|
|
618
618
|
method: "GET",
|
|
619
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
619
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "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),
|
|
620
620
|
contentType: "application/json",
|
|
621
621
|
requestType: "json",
|
|
622
622
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -681,7 +681,7 @@ class Tools {
|
|
|
681
681
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
682
682
|
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/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
|
|
683
683
|
method: "GET",
|
|
684
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
684
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "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),
|
|
685
685
|
contentType: "application/json",
|
|
686
686
|
requestType: "json",
|
|
687
687
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -746,7 +746,7 @@ class Tools {
|
|
|
746
746
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
747
747
|
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/tools/composio/${encodeURIComponent(composioActionName)}`),
|
|
748
748
|
method: "POST",
|
|
749
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
749
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "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),
|
|
750
750
|
contentType: "application/json",
|
|
751
751
|
requestType: "json",
|
|
752
752
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -812,7 +812,7 @@ class Tools {
|
|
|
812
812
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
813
813
|
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/tools/mcp/servers"),
|
|
814
814
|
method: "GET",
|
|
815
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
815
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "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),
|
|
816
816
|
contentType: "application/json",
|
|
817
817
|
requestType: "json",
|
|
818
818
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -881,7 +881,7 @@ class Tools {
|
|
|
881
881
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
882
882
|
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/tools/mcp/servers"),
|
|
883
883
|
method: "PUT",
|
|
884
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
884
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "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),
|
|
885
885
|
contentType: "application/json",
|
|
886
886
|
requestType: "json",
|
|
887
887
|
body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -947,7 +947,7 @@ class Tools {
|
|
|
947
947
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
948
948
|
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/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/tools`),
|
|
949
949
|
method: "GET",
|
|
950
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
950
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "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),
|
|
951
951
|
contentType: "application/json",
|
|
952
952
|
requestType: "json",
|
|
953
953
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1013,7 +1013,7 @@ class Tools {
|
|
|
1013
1013
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1014
1014
|
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/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/${encodeURIComponent(mcpToolName)}`),
|
|
1015
1015
|
method: "POST",
|
|
1016
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1016
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "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),
|
|
1017
1017
|
contentType: "application/json",
|
|
1018
1018
|
requestType: "json",
|
|
1019
1019
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1078,7 +1078,7 @@ class Tools {
|
|
|
1078
1078
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1079
1079
|
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/tools/mcp/servers/${encodeURIComponent(mcpServerName)}`),
|
|
1080
1080
|
method: "DELETE",
|
|
1081
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1081
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "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),
|
|
1082
1082
|
contentType: "application/json",
|
|
1083
1083
|
requestType: "json",
|
|
1084
1084
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -84,7 +84,7 @@ class Voice {
|
|
|
84
84
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
85
85
|
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/voice-beta/${encodeURIComponent(agentId)}/chat/completions`),
|
|
86
86
|
method: "POST",
|
|
87
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
87
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "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),
|
|
88
88
|
contentType: "application/json",
|
|
89
89
|
requestType: "json",
|
|
90
90
|
body: serializers.CreateVoiceChatCompletionsRequestBody.jsonOrThrow(_body, {
|