@letta-ai/letta-client 0.1.98 → 0.1.100
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.d.ts +5 -5
- package/api/resources/clientSideAccessTokens/client/Client.js +9 -9
- package/api/resources/clientSideAccessTokens/client/requests/{ClientSideAccessTokensCreateClientSideAccessTokenRequest.d.ts → ClientSideAccessTokensCreateRequest.d.ts} +2 -2
- package/api/resources/clientSideAccessTokens/client/requests/index.d.ts +1 -1
- package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItem.d.ts +9 -0
- package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.d.ts +10 -0
- package/{dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.js → api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.js} +2 -2
- package/{dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponse.d.ts → api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponse.d.ts} +2 -2
- package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicy.d.ts +8 -0
- package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItem.d.ts +9 -0
- package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.d.ts +10 -0
- package/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.js → ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.js} +2 -2
- package/api/resources/clientSideAccessTokens/types/index.d.ts +6 -6
- package/api/resources/clientSideAccessTokens/types/index.js +6 -6
- 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.d.ts +3 -3
- package/api/resources/projects/client/Client.js +5 -5
- package/{dist/api/resources/projects/client/requests/ProjectsListProjectsRequest.d.ts → api/resources/projects/client/requests/ProjectsListRequest.d.ts} +1 -1
- package/api/resources/projects/client/requests/index.d.ts +1 -1
- package/api/resources/projects/types/{ProjectsListProjectsResponse.d.ts → ProjectsListResponse.d.ts} +2 -2
- package/api/resources/projects/types/{ProjectsListProjectsResponseProjectsItem.d.ts → ProjectsListResponseProjectsItem.d.ts} +1 -1
- package/api/resources/projects/types/index.d.ts +2 -2
- package/api/resources/projects/types/index.js +2 -2
- package/api/resources/providers/client/Client.d.ts +21 -5
- package/api/resources/providers/client/Client.js +98 -10
- package/{dist/api/resources/providers/client/requests/ListProvidersRequest.d.ts → api/resources/providers/client/requests/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/api/resources/runs/client/requests/{ListActiveRunsRequest.d.ts → 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/{dist/api/resources/runs/client/requests/ListRunStepsRequest.d.ts → api/resources/runs/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 +6 -15
- package/api/resources/templates/client/Client.js +10 -60
- package/api/resources/templates/client/requests/{TemplatesListTemplatesRequest.d.ts → TemplatesListRequest.d.ts} +1 -1
- package/api/resources/templates/client/requests/index.d.ts +1 -2
- 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/{dist/api/resources/templates/types/TemplatesCreateAgentsResponse.d.ts → api/resources/templates/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/{dist/api/resources/projects/types/ProjectsListProjectsResponse.d.ts → api/resources/templates/types/TemplatesListResponse.d.ts} +2 -2
- package/api/resources/templates/types/{TemplatesListTemplatesResponseTemplatesItem.d.ts → TemplatesListResponseTemplatesItem.d.ts} +1 -1
- package/api/resources/templates/types/index.d.ts +2 -3
- package/api/resources/templates/types/index.js +2 -3
- 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.d.ts +5 -5
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +9 -9
- package/dist/api/resources/clientSideAccessTokens/client/requests/{ClientSideAccessTokensCreateClientSideAccessTokenRequest.d.ts → ClientSideAccessTokensCreateRequest.d.ts} +2 -2
- package/dist/api/resources/clientSideAccessTokens/client/requests/index.d.ts +1 -1
- package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItem.d.ts +9 -0
- package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.d.ts +10 -0
- package/{api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.js → dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.js} +2 -2
- package/{api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponse.d.ts → dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponse.d.ts} +2 -2
- package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicy.d.ts +8 -0
- package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItem.d.ts +9 -0
- package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.d.ts +10 -0
- package/dist/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.js → ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.js} +2 -2
- package/dist/api/resources/clientSideAccessTokens/types/index.d.ts +6 -6
- package/dist/api/resources/clientSideAccessTokens/types/index.js +6 -6
- 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.d.ts +3 -3
- package/dist/api/resources/projects/client/Client.js +5 -5
- package/{api/resources/projects/client/requests/ProjectsListProjectsRequest.d.ts → dist/api/resources/projects/client/requests/ProjectsListRequest.d.ts} +1 -1
- package/dist/api/resources/projects/client/requests/index.d.ts +1 -1
- package/{api/resources/templates/types/TemplatesListTemplatesResponse.d.ts → dist/api/resources/projects/types/ProjectsListResponse.d.ts} +2 -2
- package/dist/api/resources/projects/types/{ProjectsListProjectsResponseProjectsItem.d.ts → ProjectsListResponseProjectsItem.d.ts} +1 -1
- package/dist/api/resources/projects/types/index.d.ts +2 -2
- package/dist/api/resources/projects/types/index.js +2 -2
- package/dist/api/resources/providers/client/Client.d.ts +21 -5
- package/dist/api/resources/providers/client/Client.js +98 -10
- package/{api/resources/providers/client/requests/ListProvidersRequest.d.ts → dist/api/resources/providers/client/requests/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/dist/api/resources/runs/client/requests/{ListActiveRunsRequest.d.ts → 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/{api/resources/runs/client/requests/ListRunStepsRequest.d.ts → dist/api/resources/runs/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 +6 -15
- package/dist/api/resources/templates/client/Client.js +10 -60
- package/dist/api/resources/templates/client/requests/{TemplatesListTemplatesRequest.d.ts → TemplatesListRequest.d.ts} +1 -1
- package/dist/api/resources/templates/client/requests/index.d.ts +1 -2
- 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/{api/resources/templates/types/TemplatesCreateAgentsResponse.d.ts → dist/api/resources/templates/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/{TemplatesListTemplatesResponse.d.ts → TemplatesListResponse.d.ts} +2 -2
- package/dist/api/resources/templates/types/{TemplatesListTemplatesResponseTemplatesItem.d.ts → TemplatesListResponseTemplatesItem.d.ts} +1 -1
- package/dist/api/resources/templates/types/index.d.ts +2 -3
- package/dist/api/resources/templates/types/index.js +2 -3
- 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/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateRequest.d.ts +15 -0
- package/{serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.js → dist/serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateRequest.js} +4 -4
- package/dist/serialization/resources/clientSideAccessTokens/client/requests/index.d.ts +1 -1
- package/dist/serialization/resources/clientSideAccessTokens/client/requests/index.js +3 -3
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItem.d.ts +15 -0
- package/{serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.js → dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItem.js} +4 -4
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.d.ts +10 -0
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.js +41 -0
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponse.d.ts +16 -0
- package/dist/serialization/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponse.js → ClientSideAccessTokensCreateResponse.js} +4 -4
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicy.d.ts +14 -0
- package/dist/serialization/resources/{templates/types/TemplatesListTemplatesResponse.js → clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicy.js} +5 -5
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItem.d.ts +15 -0
- package/dist/serialization/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.js → ClientSideAccessTokensCreateResponsePolicyDataItem.js} +4 -4
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.d.ts +10 -0
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.js +41 -0
- package/dist/serialization/resources/clientSideAccessTokens/types/index.d.ts +6 -6
- package/dist/serialization/resources/clientSideAccessTokens/types/index.js +6 -6
- 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/projects/types/ProjectsListResponse.d.ts +14 -0
- package/dist/serialization/resources/projects/types/{ProjectsListProjectsResponse.js → ProjectsListResponse.js} +4 -4
- package/dist/serialization/resources/projects/types/{ProjectsListProjectsResponseProjectsItem.d.ts → ProjectsListResponseProjectsItem.d.ts} +2 -2
- package/dist/serialization/resources/projects/types/{ProjectsListProjectsResponseProjectsItem.js → ProjectsListResponseProjectsItem.js} +2 -2
- package/dist/serialization/resources/projects/types/index.d.ts +2 -2
- package/dist/serialization/resources/projects/types/index.js +2 -2
- 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/dist/serialization/resources/templates/{client/requests/TemplatesCreateAgentsRequest.js → 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/TemplatesListResponse.d.ts +14 -0
- package/{serialization/resources/projects/types/ProjectsListProjectsResponse.js → dist/serialization/resources/templates/types/TemplatesListResponse.js} +4 -4
- package/dist/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +13 -0
- package/dist/serialization/resources/templates/types/{TemplatesListTemplatesResponseTemplatesItem.js → TemplatesListResponseTemplatesItem.js} +2 -2
- package/dist/serialization/resources/templates/types/index.d.ts +2 -3
- package/dist/serialization/resources/templates/types/index.js +2 -3
- 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 +921 -639
- 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/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateRequest.d.ts +15 -0
- package/{dist/serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.js → serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateRequest.js} +4 -4
- package/serialization/resources/clientSideAccessTokens/client/requests/index.d.ts +1 -1
- package/serialization/resources/clientSideAccessTokens/client/requests/index.js +3 -3
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItem.d.ts +15 -0
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItem.js +46 -0
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.d.ts +10 -0
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.js +41 -0
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponse.d.ts +16 -0
- package/serialization/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponse.js → ClientSideAccessTokensCreateResponse.js} +4 -4
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicy.d.ts +14 -0
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicy.js +45 -0
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItem.d.ts +15 -0
- package/{dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.js → serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItem.js} +4 -4
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.d.ts +10 -0
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.js +41 -0
- package/serialization/resources/clientSideAccessTokens/types/index.d.ts +6 -6
- package/serialization/resources/clientSideAccessTokens/types/index.js +6 -6
- 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/projects/types/ProjectsListResponse.d.ts +14 -0
- package/serialization/resources/projects/types/ProjectsListResponse.js +45 -0
- package/serialization/resources/projects/types/{ProjectsListProjectsResponseProjectsItem.d.ts → ProjectsListResponseProjectsItem.d.ts} +2 -2
- package/serialization/resources/projects/types/{ProjectsListProjectsResponseProjectsItem.js → ProjectsListResponseProjectsItem.js} +2 -2
- package/serialization/resources/projects/types/index.d.ts +2 -2
- package/serialization/resources/projects/types/index.js +2 -2
- 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/serialization/resources/templates/{client/requests/TemplatesCreateAgentsRequest.js → 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/{dist/serialization/resources/templates/types/TemplatesCreateAgentsResponse.js → serialization/resources/templates/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/TemplatesListResponse.d.ts +14 -0
- package/serialization/resources/templates/types/{TemplatesListTemplatesResponse.js → TemplatesListResponse.js} +4 -4
- package/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +13 -0
- package/serialization/resources/templates/types/{TemplatesListTemplatesResponseTemplatesItem.js → TemplatesListResponseTemplatesItem.js} +2 -2
- package/serialization/resources/templates/types/index.d.ts +2 -3
- package/serialization/resources/templates/types/index.js +2 -3
- 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/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.d.ts +0 -9
- package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.d.ts +0 -10
- package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.d.ts +0 -8
- package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.d.ts +0 -9
- package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.d.ts +0 -10
- package/api/resources/messages/resources/index.d.ts +0 -2
- package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.d.ts +0 -9
- package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.d.ts +0 -10
- package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.d.ts +0 -8
- package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.d.ts +0 -9
- package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.d.ts +0 -10
- 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/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.d.ts +0 -15
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.d.ts +0 -15
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.d.ts +0 -10
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.js +0 -41
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponse.d.ts +0 -16
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.d.ts +0 -14
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.js +0 -45
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.d.ts +0 -15
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.d.ts +0 -10
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.js +0 -41
- 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/projects/types/ProjectsListProjectsResponse.d.ts +0 -14
- 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/TemplatesListTemplatesResponse.d.ts +0 -14
- package/dist/serialization/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.d.ts +0 -13
- 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/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.d.ts +0 -15
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.d.ts +0 -15
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.d.ts +0 -10
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.js +0 -41
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponse.d.ts +0 -16
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.d.ts +0 -14
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.js +0 -45
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.d.ts +0 -15
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.js +0 -46
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.d.ts +0 -10
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.js +0 -41
- 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/projects/types/ProjectsListProjectsResponse.d.ts +0 -14
- 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/serialization/resources/templates/types/TemplatesCreateAgentsResponse.js +0 -44
- package/serialization/resources/templates/types/TemplatesListTemplatesResponse.d.ts +0 -14
- package/serialization/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.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/api/resources/{agents/client/requests/ResetMessagesRequest.js → clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateRequest.js} +0 -0
- /package/api/resources/clientSideAccessTokens/{client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.js → types/ClientSideAccessTokensCreateRequestPolicyItem.js} +0 -0
- /package/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.js → ClientSideAccessTokensCreateResponse.js} +0 -0
- /package/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponse.js → ClientSideAccessTokensCreateResponsePolicy.js} +0 -0
- /package/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.js → ClientSideAccessTokensCreateResponsePolicyDataItem.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/{clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.js → projects/client/requests/ProjectsListRequest.js} +0 -0
- /package/api/resources/projects/{client/requests/ProjectsListProjectsRequest.js → types/ProjectsListResponse.js} +0 -0
- /package/api/resources/projects/types/{ProjectsListProjectsResponse.js → ProjectsListResponseProjectsItem.js} +0 -0
- /package/api/resources/{projects/types/ProjectsListProjectsResponseProjectsItem.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/client/requests/TemplatesListRequest.js} +0 -0
- /package/api/resources/templates/{client/requests/TemplatesCreateAgentsRequest.js → resources/agents/client/requests/AgentsCreateRequest.js} +0 -0
- /package/api/resources/templates/{client/requests/TemplatesListTemplatesRequest.js → resources/agents/types/AgentsCreateResponse.js} +0 -0
- /package/api/resources/templates/types/{TemplatesCreateAgentsResponse.js → TemplatesListResponse.js} +0 -0
- /package/api/resources/templates/types/{TemplatesListTemplatesResponse.js → TemplatesListResponseTemplatesItem.js} +0 -0
- /package/{api/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.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/clientSideAccessTokens/client/requests/{ClientSideAccessTokensCreateClientSideAccessTokenRequest.js → ClientSideAccessTokensCreateRequest.js} +0 -0
- /package/dist/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.js → ClientSideAccessTokensCreateRequestPolicyItem.js} +0 -0
- /package/dist/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponse.js → ClientSideAccessTokensCreateResponse.js} +0 -0
- /package/dist/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.js → ClientSideAccessTokensCreateResponsePolicy.js} +0 -0
- /package/dist/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.js → ClientSideAccessTokensCreateResponsePolicyDataItem.js} +0 -0
- /package/dist/api/resources/projects/client/requests/{ProjectsListProjectsRequest.js → ProjectsListRequest.js} +0 -0
- /package/dist/api/resources/projects/types/{ProjectsListProjectsResponse.js → ProjectsListResponse.js} +0 -0
- /package/dist/api/resources/projects/types/{ProjectsListProjectsResponseProjectsItem.js → ProjectsListResponseProjectsItem.js} +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 → TemplatesListRequest.js} +0 -0
- /package/dist/api/resources/templates/{client/requests/TemplatesListTemplatesRequest.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/api/resources/templates/types/{TemplatesListTemplatesResponse.js → TemplatesListResponse.js} +0 -0
- /package/dist/api/resources/templates/types/{TemplatesListTemplatesResponseTemplatesItem.js → TemplatesListResponseTemplatesItem.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
|
@@ -55,10 +55,25 @@ const Letta = __importStar(require("../../../index"));
|
|
|
55
55
|
const url_join_1 = __importDefault(require("url-join"));
|
|
56
56
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
57
57
|
const errors = __importStar(require("../../../../errors/index"));
|
|
58
|
+
const Client_1 = require("../resources/messages/client/Client");
|
|
59
|
+
const Client_2 = require("../resources/usage/client/Client");
|
|
60
|
+
const Client_3 = require("../resources/steps/client/Client");
|
|
58
61
|
class Runs {
|
|
59
62
|
constructor(_options = {}) {
|
|
60
63
|
this._options = _options;
|
|
61
64
|
}
|
|
65
|
+
get messages() {
|
|
66
|
+
var _a;
|
|
67
|
+
return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Client_1.Messages(this._options)));
|
|
68
|
+
}
|
|
69
|
+
get usage() {
|
|
70
|
+
var _a;
|
|
71
|
+
return ((_a = this._usage) !== null && _a !== void 0 ? _a : (this._usage = new Client_2.Usage(this._options)));
|
|
72
|
+
}
|
|
73
|
+
get steps() {
|
|
74
|
+
var _a;
|
|
75
|
+
return ((_a = this._steps) !== null && _a !== void 0 ? _a : (this._steps = new Client_3.Steps(this._options)));
|
|
76
|
+
}
|
|
62
77
|
/**
|
|
63
78
|
* List all runs.
|
|
64
79
|
*
|
|
@@ -86,7 +101,7 @@ class Runs {
|
|
|
86
101
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
87
102
|
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/runs/"),
|
|
88
103
|
method: "GET",
|
|
89
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
104
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.100", "User-Agent": "@letta-ai/letta-client/0.1.100", "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),
|
|
90
105
|
contentType: "application/json",
|
|
91
106
|
queryParameters: _queryParams,
|
|
92
107
|
requestType: "json",
|
|
@@ -138,15 +153,15 @@ class Runs {
|
|
|
138
153
|
/**
|
|
139
154
|
* List all active runs.
|
|
140
155
|
*
|
|
141
|
-
* @param {Letta.
|
|
156
|
+
* @param {Letta.RunsListActiveRequest} request
|
|
142
157
|
* @param {Runs.RequestOptions} requestOptions - Request-specific configuration.
|
|
143
158
|
*
|
|
144
159
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
145
160
|
*
|
|
146
161
|
* @example
|
|
147
|
-
* await client.runs.
|
|
162
|
+
* await client.runs.listActive()
|
|
148
163
|
*/
|
|
149
|
-
|
|
164
|
+
listActive() {
|
|
150
165
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
151
166
|
var _a, _b, _c;
|
|
152
167
|
const { agentIds } = request;
|
|
@@ -162,7 +177,7 @@ class Runs {
|
|
|
162
177
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
163
178
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/runs/active"),
|
|
164
179
|
method: "GET",
|
|
165
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
180
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.100", "User-Agent": "@letta-ai/letta-client/0.1.100", "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),
|
|
166
181
|
contentType: "application/json",
|
|
167
182
|
queryParameters: _queryParams,
|
|
168
183
|
requestType: "json",
|
|
@@ -171,7 +186,7 @@ class Runs {
|
|
|
171
186
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
172
187
|
});
|
|
173
188
|
if (_response.ok) {
|
|
174
|
-
return serializers.runs.
|
|
189
|
+
return serializers.runs.listActive.Response.parseOrThrow(_response.body, {
|
|
175
190
|
unrecognizedObjectKeys: "passthrough",
|
|
176
191
|
allowUnrecognizedUnionMembers: true,
|
|
177
192
|
allowUnrecognizedEnumValues: true,
|
|
@@ -220,15 +235,15 @@ class Runs {
|
|
|
220
235
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
221
236
|
*
|
|
222
237
|
* @example
|
|
223
|
-
* await client.runs.
|
|
238
|
+
* await client.runs.retrieve("run_id")
|
|
224
239
|
*/
|
|
225
|
-
|
|
240
|
+
retrieve(runId, requestOptions) {
|
|
226
241
|
return __awaiter(this, void 0, void 0, function* () {
|
|
227
242
|
var _a, _b, _c;
|
|
228
243
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
229
244
|
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/runs/${encodeURIComponent(runId)}`),
|
|
230
245
|
method: "GET",
|
|
231
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
246
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.100", "User-Agent": "@letta-ai/letta-client/0.1.100", "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),
|
|
232
247
|
contentType: "application/json",
|
|
233
248
|
requestType: "json",
|
|
234
249
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -285,15 +300,15 @@ class Runs {
|
|
|
285
300
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
286
301
|
*
|
|
287
302
|
* @example
|
|
288
|
-
* await client.runs.
|
|
303
|
+
* await client.runs.delete("run_id")
|
|
289
304
|
*/
|
|
290
|
-
|
|
305
|
+
delete(runId, requestOptions) {
|
|
291
306
|
return __awaiter(this, void 0, void 0, function* () {
|
|
292
307
|
var _a, _b, _c;
|
|
293
308
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
294
309
|
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/runs/${encodeURIComponent(runId)}`),
|
|
295
310
|
method: "DELETE",
|
|
296
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
311
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.100", "User-Agent": "@letta-ai/letta-client/0.1.100", "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),
|
|
297
312
|
contentType: "application/json",
|
|
298
313
|
requestType: "json",
|
|
299
314
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -342,120 +357,18 @@ class Runs {
|
|
|
342
357
|
});
|
|
343
358
|
}
|
|
344
359
|
/**
|
|
345
|
-
* Get messages associated with a run with filtering options.
|
|
346
|
-
*
|
|
347
|
-
* Args:
|
|
348
|
-
* run_id: ID of the run
|
|
349
|
-
* before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
|
|
350
|
-
* after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
|
|
351
|
-
* limit: Maximum number of messages to return
|
|
352
|
-
* order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.
|
|
353
|
-
* role: Filter by role (user/assistant/system/tool)
|
|
354
|
-
* return_message_object: Whether to return Message objects or LettaMessage objects
|
|
355
|
-
* user_id: ID of the user making the request
|
|
356
|
-
*
|
|
357
|
-
* Returns:
|
|
358
|
-
* A list of messages associated with the run. Default is List[LettaMessage].
|
|
359
|
-
*
|
|
360
|
-
* @param {string} runId
|
|
361
|
-
* @param {Letta.ListRunMessagesRequest} request
|
|
362
360
|
* @param {Runs.RequestOptions} requestOptions - Request-specific configuration.
|
|
363
361
|
*
|
|
364
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
365
|
-
*
|
|
366
362
|
* @example
|
|
367
|
-
* await client.runs.
|
|
363
|
+
* await client.runs.list()
|
|
368
364
|
*/
|
|
369
|
-
|
|
370
|
-
return __awaiter(this, arguments, void 0, function* (runId, request = {}, requestOptions) {
|
|
371
|
-
var _a, _b, _c;
|
|
372
|
-
const { before, after, limit, order, role } = request;
|
|
373
|
-
const _queryParams = {};
|
|
374
|
-
if (before != null) {
|
|
375
|
-
_queryParams["before"] = before;
|
|
376
|
-
}
|
|
377
|
-
if (after != null) {
|
|
378
|
-
_queryParams["after"] = after;
|
|
379
|
-
}
|
|
380
|
-
if (limit != null) {
|
|
381
|
-
_queryParams["limit"] = limit.toString();
|
|
382
|
-
}
|
|
383
|
-
if (order != null) {
|
|
384
|
-
_queryParams["order"] = order;
|
|
385
|
-
}
|
|
386
|
-
if (role != null) {
|
|
387
|
-
_queryParams["role"] = role;
|
|
388
|
-
}
|
|
389
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
390
|
-
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/runs/${encodeURIComponent(runId)}/messages`),
|
|
391
|
-
method: "GET",
|
|
392
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.98", "User-Agent": "@letta-ai/letta-client/0.1.98", "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),
|
|
393
|
-
contentType: "application/json",
|
|
394
|
-
queryParameters: _queryParams,
|
|
395
|
-
requestType: "json",
|
|
396
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
397
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
398
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
399
|
-
});
|
|
400
|
-
if (_response.ok) {
|
|
401
|
-
return serializers.runs.listRunMessages.Response.parseOrThrow(_response.body, {
|
|
402
|
-
unrecognizedObjectKeys: "passthrough",
|
|
403
|
-
allowUnrecognizedUnionMembers: true,
|
|
404
|
-
allowUnrecognizedEnumValues: true,
|
|
405
|
-
skipValidation: true,
|
|
406
|
-
breadcrumbsPrefix: ["response"],
|
|
407
|
-
});
|
|
408
|
-
}
|
|
409
|
-
if (_response.error.reason === "status-code") {
|
|
410
|
-
switch (_response.error.statusCode) {
|
|
411
|
-
case 422:
|
|
412
|
-
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
413
|
-
unrecognizedObjectKeys: "passthrough",
|
|
414
|
-
allowUnrecognizedUnionMembers: true,
|
|
415
|
-
allowUnrecognizedEnumValues: true,
|
|
416
|
-
skipValidation: true,
|
|
417
|
-
breadcrumbsPrefix: ["response"],
|
|
418
|
-
}));
|
|
419
|
-
default:
|
|
420
|
-
throw new errors.LettaError({
|
|
421
|
-
statusCode: _response.error.statusCode,
|
|
422
|
-
body: _response.error.body,
|
|
423
|
-
});
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
switch (_response.error.reason) {
|
|
427
|
-
case "non-json":
|
|
428
|
-
throw new errors.LettaError({
|
|
429
|
-
statusCode: _response.error.statusCode,
|
|
430
|
-
body: _response.error.rawBody,
|
|
431
|
-
});
|
|
432
|
-
case "timeout":
|
|
433
|
-
throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/runs/{run_id}/messages.");
|
|
434
|
-
case "unknown":
|
|
435
|
-
throw new errors.LettaError({
|
|
436
|
-
message: _response.error.errorMessage,
|
|
437
|
-
});
|
|
438
|
-
}
|
|
439
|
-
});
|
|
440
|
-
}
|
|
441
|
-
/**
|
|
442
|
-
* Get usage statistics for a run.
|
|
443
|
-
*
|
|
444
|
-
* @param {string} runId
|
|
445
|
-
* @param {Runs.RequestOptions} requestOptions - Request-specific configuration.
|
|
446
|
-
*
|
|
447
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
448
|
-
*
|
|
449
|
-
* @example
|
|
450
|
-
* await client.runs.retrieveRunUsage("run_id")
|
|
451
|
-
*/
|
|
452
|
-
retrieveRunUsage(runId, requestOptions) {
|
|
365
|
+
list(requestOptions) {
|
|
453
366
|
return __awaiter(this, void 0, void 0, function* () {
|
|
454
367
|
var _a, _b, _c;
|
|
455
368
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
456
|
-
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,
|
|
369
|
+
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/runs"),
|
|
457
370
|
method: "GET",
|
|
458
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
371
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.100", "User-Agent": "@letta-ai/letta-client/0.1.100", "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),
|
|
459
372
|
contentType: "application/json",
|
|
460
373
|
requestType: "json",
|
|
461
374
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -463,122 +376,14 @@ class Runs {
|
|
|
463
376
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
464
377
|
});
|
|
465
378
|
if (_response.ok) {
|
|
466
|
-
return
|
|
467
|
-
unrecognizedObjectKeys: "passthrough",
|
|
468
|
-
allowUnrecognizedUnionMembers: true,
|
|
469
|
-
allowUnrecognizedEnumValues: true,
|
|
470
|
-
skipValidation: true,
|
|
471
|
-
breadcrumbsPrefix: ["response"],
|
|
472
|
-
});
|
|
379
|
+
return;
|
|
473
380
|
}
|
|
474
381
|
if (_response.error.reason === "status-code") {
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
unrecognizedObjectKeys: "passthrough",
|
|
479
|
-
allowUnrecognizedUnionMembers: true,
|
|
480
|
-
allowUnrecognizedEnumValues: true,
|
|
481
|
-
skipValidation: true,
|
|
482
|
-
breadcrumbsPrefix: ["response"],
|
|
483
|
-
}));
|
|
484
|
-
default:
|
|
485
|
-
throw new errors.LettaError({
|
|
486
|
-
statusCode: _response.error.statusCode,
|
|
487
|
-
body: _response.error.body,
|
|
488
|
-
});
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
switch (_response.error.reason) {
|
|
492
|
-
case "non-json":
|
|
493
|
-
throw new errors.LettaError({
|
|
494
|
-
statusCode: _response.error.statusCode,
|
|
495
|
-
body: _response.error.rawBody,
|
|
496
|
-
});
|
|
497
|
-
case "timeout":
|
|
498
|
-
throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/runs/{run_id}/usage.");
|
|
499
|
-
case "unknown":
|
|
500
|
-
throw new errors.LettaError({
|
|
501
|
-
message: _response.error.errorMessage,
|
|
502
|
-
});
|
|
503
|
-
}
|
|
504
|
-
});
|
|
505
|
-
}
|
|
506
|
-
/**
|
|
507
|
-
* Get messages associated with a run with filtering options.
|
|
508
|
-
*
|
|
509
|
-
* Args:
|
|
510
|
-
* run_id: ID of the run
|
|
511
|
-
* before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
|
|
512
|
-
* after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
|
|
513
|
-
* limit: Maximum number of steps to return
|
|
514
|
-
* order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.
|
|
515
|
-
*
|
|
516
|
-
* Returns:
|
|
517
|
-
* A list of steps associated with the run.
|
|
518
|
-
*
|
|
519
|
-
* @param {string} runId
|
|
520
|
-
* @param {Letta.ListRunStepsRequest} request
|
|
521
|
-
* @param {Runs.RequestOptions} requestOptions - Request-specific configuration.
|
|
522
|
-
*
|
|
523
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
524
|
-
*
|
|
525
|
-
* @example
|
|
526
|
-
* await client.runs.listRunSteps("run_id")
|
|
527
|
-
*/
|
|
528
|
-
listRunSteps(runId_1) {
|
|
529
|
-
return __awaiter(this, arguments, void 0, function* (runId, request = {}, requestOptions) {
|
|
530
|
-
var _a, _b, _c;
|
|
531
|
-
const { before, after, limit, order } = request;
|
|
532
|
-
const _queryParams = {};
|
|
533
|
-
if (before != null) {
|
|
534
|
-
_queryParams["before"] = before;
|
|
535
|
-
}
|
|
536
|
-
if (after != null) {
|
|
537
|
-
_queryParams["after"] = after;
|
|
538
|
-
}
|
|
539
|
-
if (limit != null) {
|
|
540
|
-
_queryParams["limit"] = limit.toString();
|
|
541
|
-
}
|
|
542
|
-
if (order != null) {
|
|
543
|
-
_queryParams["order"] = order;
|
|
544
|
-
}
|
|
545
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
546
|
-
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/runs/${encodeURIComponent(runId)}/steps`),
|
|
547
|
-
method: "GET",
|
|
548
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.98", "User-Agent": "@letta-ai/letta-client/0.1.98", "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),
|
|
549
|
-
contentType: "application/json",
|
|
550
|
-
queryParameters: _queryParams,
|
|
551
|
-
requestType: "json",
|
|
552
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
553
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
554
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
555
|
-
});
|
|
556
|
-
if (_response.ok) {
|
|
557
|
-
return serializers.runs.listRunSteps.Response.parseOrThrow(_response.body, {
|
|
558
|
-
unrecognizedObjectKeys: "passthrough",
|
|
559
|
-
allowUnrecognizedUnionMembers: true,
|
|
560
|
-
allowUnrecognizedEnumValues: true,
|
|
561
|
-
skipValidation: true,
|
|
562
|
-
breadcrumbsPrefix: ["response"],
|
|
382
|
+
throw new errors.LettaError({
|
|
383
|
+
statusCode: _response.error.statusCode,
|
|
384
|
+
body: _response.error.body,
|
|
563
385
|
});
|
|
564
386
|
}
|
|
565
|
-
if (_response.error.reason === "status-code") {
|
|
566
|
-
switch (_response.error.statusCode) {
|
|
567
|
-
case 422:
|
|
568
|
-
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
569
|
-
unrecognizedObjectKeys: "passthrough",
|
|
570
|
-
allowUnrecognizedUnionMembers: true,
|
|
571
|
-
allowUnrecognizedEnumValues: true,
|
|
572
|
-
skipValidation: true,
|
|
573
|
-
breadcrumbsPrefix: ["response"],
|
|
574
|
-
}));
|
|
575
|
-
default:
|
|
576
|
-
throw new errors.LettaError({
|
|
577
|
-
statusCode: _response.error.statusCode,
|
|
578
|
-
body: _response.error.body,
|
|
579
|
-
});
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
387
|
switch (_response.error.reason) {
|
|
583
388
|
case "non-json":
|
|
584
389
|
throw new errors.LettaError({
|
|
@@ -586,7 +391,7 @@ class Runs {
|
|
|
586
391
|
body: _response.error.rawBody,
|
|
587
392
|
});
|
|
588
393
|
case "timeout":
|
|
589
|
-
throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/runs
|
|
394
|
+
throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/runs.");
|
|
590
395
|
case "unknown":
|
|
591
396
|
throw new errors.LettaError({
|
|
592
397
|
message: _response.error.errorMessage,
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
export { type ListRunsRequest } from "./ListRunsRequest";
|
|
2
|
-
export { type
|
|
3
|
-
export { type ListRunMessagesRequest } from "./ListRunMessagesRequest";
|
|
4
|
-
export { type ListRunStepsRequest } from "./ListRunStepsRequest";
|
|
2
|
+
export { type RunsListActiveRequest } from "./RunsListActiveRequest";
|
|
@@ -0,0 +1,44 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.steps = exports.usage = exports.messages = void 0;
|
|
40
|
+
exports.messages = __importStar(require("./messages"));
|
|
41
|
+
exports.usage = __importStar(require("./usage"));
|
|
42
|
+
exports.steps = __importStar(require("./steps"));
|
|
43
|
+
__exportStar(require("./messages/client/requests"), exports);
|
|
44
|
+
__exportStar(require("./steps/client/requests"), exports);
|
|
@@ -0,0 +1,58 @@
|
|
|
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 Messages {
|
|
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 Messages {
|
|
27
|
+
protected readonly _options: Messages.Options;
|
|
28
|
+
constructor(_options?: Messages.Options);
|
|
29
|
+
/**
|
|
30
|
+
* Get messages associated with a run with filtering options.
|
|
31
|
+
*
|
|
32
|
+
* Args:
|
|
33
|
+
* run_id: ID of the run
|
|
34
|
+
* before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
|
|
35
|
+
* after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
|
|
36
|
+
* limit: Maximum number of messages to return
|
|
37
|
+
* order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.
|
|
38
|
+
* role: Filter by role (user/assistant/system/tool)
|
|
39
|
+
* return_message_object: Whether to return Message objects or LettaMessage objects
|
|
40
|
+
* user_id: ID of the user making the request
|
|
41
|
+
*
|
|
42
|
+
* Returns:
|
|
43
|
+
* A list of messages associated with the run. Default is List[LettaMessage].
|
|
44
|
+
*
|
|
45
|
+
* @param {string} runId
|
|
46
|
+
* @param {Letta.runs.MessagesListRequest} request
|
|
47
|
+
* @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
|
+
*
|
|
49
|
+
* @throws {@link Letta.UnprocessableEntityError}
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* await client.runs.messages.list("run_id")
|
|
53
|
+
*/
|
|
54
|
+
list(runId: string, request?: Letta.runs.MessagesListRequest, requestOptions?: Messages.RequestOptions): Promise<Letta.LettaMessageUnion[]>;
|
|
55
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
56
|
+
Authorization: string;
|
|
57
|
+
}>;
|
|
58
|
+
}
|