@letta-ai/letta-client 1.0.0-alpha.7 → 1.1.0
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/CHANGELOG.md +248 -0
- package/README.md +282 -319
- package/client.d.mts +61 -36
- package/client.d.mts.map +1 -1
- package/client.d.ts +61 -36
- package/client.d.ts.map +1 -1
- package/client.js +53 -23
- package/client.js.map +1 -1
- package/client.mjs +53 -23
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +96 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +96 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +199 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +191 -0
- package/core/pagination.mjs.map +1 -0
- package/core/streaming.d.mts +33 -0
- package/core/streaming.d.mts.map +1 -0
- package/core/streaming.d.ts +33 -0
- package/core/streaming.d.ts.map +1 -0
- package/core/streaming.js +276 -0
- package/core/streaming.js.map +1 -0
- package/core/streaming.mjs +271 -0
- package/core/streaming.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/internal/decoders/line.d.mts +17 -0
- package/internal/decoders/line.d.mts.map +1 -0
- package/internal/decoders/line.d.ts +17 -0
- package/internal/decoders/line.d.ts.map +1 -0
- package/internal/decoders/line.js +113 -0
- package/internal/decoders/line.js.map +1 -0
- package/internal/decoders/line.mjs +108 -0
- package/internal/decoders/line.mjs.map +1 -0
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +10 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +10 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +2 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +2 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/package.json +21 -1
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resources/access-tokens.d.mts +105 -0
- package/resources/access-tokens.d.mts.map +1 -0
- package/resources/access-tokens.d.ts +105 -0
- package/resources/access-tokens.d.ts.map +1 -0
- package/resources/access-tokens.js +30 -0
- package/resources/access-tokens.js.map +1 -0
- package/resources/access-tokens.mjs +26 -0
- package/resources/access-tokens.mjs.map +1 -0
- package/resources/agents/agents.d.mts +517 -160
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +517 -160
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +16 -21
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +17 -22
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/archives.d.mts +31 -0
- package/resources/agents/archives.d.mts.map +1 -0
- package/resources/agents/archives.d.ts +31 -0
- package/resources/agents/archives.d.ts.map +1 -0
- package/resources/agents/archives.js +24 -0
- package/resources/agents/archives.js.map +1 -0
- package/resources/agents/archives.mjs +20 -0
- package/resources/agents/archives.mjs.map +1 -0
- package/resources/agents/blocks.d.mts +33 -55
- package/resources/agents/blocks.d.mts.map +1 -1
- package/resources/agents/blocks.d.ts +33 -55
- package/resources/agents/blocks.d.ts.map +1 -1
- package/resources/agents/blocks.js +2 -1
- package/resources/agents/blocks.js.map +1 -1
- package/resources/agents/blocks.mjs +2 -1
- package/resources/agents/blocks.mjs.map +1 -1
- package/resources/agents/files.d.mts +39 -79
- package/resources/agents/files.d.mts.map +1 -1
- package/resources/agents/files.d.ts +39 -79
- package/resources/agents/files.d.ts.map +1 -1
- package/resources/agents/files.js +5 -1
- package/resources/agents/files.js.map +1 -1
- package/resources/agents/files.mjs +5 -1
- package/resources/agents/files.mjs.map +1 -1
- package/resources/agents/folders.d.mts +50 -79
- package/resources/agents/folders.d.mts.map +1 -1
- package/resources/agents/folders.d.ts +50 -79
- package/resources/agents/folders.d.ts.map +1 -1
- package/resources/agents/folders.js +5 -1
- package/resources/agents/folders.js.map +1 -1
- package/resources/agents/folders.mjs +5 -1
- package/resources/agents/folders.mjs.map +1 -1
- package/resources/agents/groups.d.mts +6 -28
- package/resources/agents/groups.d.mts.map +1 -1
- package/resources/agents/groups.d.ts +6 -28
- package/resources/agents/groups.d.ts.map +1 -1
- package/resources/agents/groups.js +5 -1
- package/resources/agents/groups.js.map +1 -1
- package/resources/agents/groups.mjs +5 -1
- package/resources/agents/groups.mjs.map +1 -1
- package/resources/agents/identities.d.mts +31 -0
- package/resources/agents/identities.d.mts.map +1 -0
- package/resources/agents/identities.d.ts +31 -0
- package/resources/agents/identities.d.ts.map +1 -0
- package/resources/agents/identities.js +24 -0
- package/resources/agents/identities.js.map +1 -0
- package/resources/agents/identities.mjs +20 -0
- package/resources/agents/identities.mjs.map +1 -0
- package/resources/agents/index.d.mts +9 -7
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +9 -7
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js +5 -1
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs +2 -0
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/messages.d.mts +668 -422
- package/resources/agents/messages.d.mts.map +1 -1
- package/resources/agents/messages.d.ts +668 -422
- package/resources/agents/messages.d.ts.map +1 -1
- package/resources/agents/messages.js +27 -26
- package/resources/agents/messages.js.map +1 -1
- package/resources/agents/messages.mjs +27 -26
- package/resources/agents/messages.mjs.map +1 -1
- package/resources/agents/tools.d.mts +9 -30
- package/resources/agents/tools.d.mts.map +1 -1
- package/resources/agents/tools.d.ts +9 -30
- package/resources/agents/tools.d.ts.map +1 -1
- package/resources/agents/tools.js +5 -1
- package/resources/agents/tools.js.map +1 -1
- package/resources/agents/tools.mjs +5 -1
- package/resources/agents/tools.mjs.map +1 -1
- package/resources/archives/archives.d.mts +115 -0
- package/resources/archives/archives.d.mts.map +1 -0
- package/resources/archives/archives.d.ts +115 -0
- package/resources/archives/archives.d.ts.map +1 -0
- package/resources/archives/archives.js +50 -0
- package/resources/archives/archives.js.map +1 -0
- package/resources/archives/archives.mjs +45 -0
- package/resources/archives/archives.mjs.map +1 -0
- package/resources/archives/index.d.mts +3 -0
- package/resources/archives/index.d.mts.map +1 -0
- package/resources/archives/index.d.ts +3 -0
- package/resources/archives/index.d.ts.map +1 -0
- package/resources/archives/index.js +9 -0
- package/resources/archives/index.js.map +1 -0
- package/resources/archives/index.mjs +4 -0
- package/resources/archives/index.mjs.map +1 -0
- package/resources/archives/passages.d.mts +113 -0
- package/resources/archives/passages.d.mts.map +1 -0
- package/resources/archives/passages.d.ts +113 -0
- package/resources/archives/passages.d.ts.map +1 -0
- package/resources/archives/passages.js +32 -0
- package/resources/archives/passages.js.map +1 -0
- package/resources/archives/passages.mjs +28 -0
- package/resources/archives/passages.mjs.map +1 -0
- package/resources/archives.d.mts +1 -130
- package/resources/archives.d.mts.map +1 -1
- package/resources/archives.d.ts +1 -130
- package/resources/archives.d.ts.map +1 -1
- package/resources/archives.js +2 -37
- package/resources/archives.js.map +1 -1
- package/resources/archives.mjs +1 -35
- package/resources/archives.mjs.map +1 -1
- package/resources/batches/batches.d.mts +52 -34
- package/resources/batches/batches.d.mts.map +1 -1
- package/resources/batches/batches.d.ts +52 -34
- package/resources/batches/batches.d.ts.map +1 -1
- package/resources/batches/batches.js +2 -1
- package/resources/batches/batches.js.map +1 -1
- package/resources/batches/batches.mjs +2 -1
- package/resources/batches/batches.mjs.map +1 -1
- package/resources/batches/index.d.mts +2 -2
- package/resources/batches/index.d.mts.map +1 -1
- package/resources/batches/index.d.ts +2 -2
- package/resources/batches/index.d.ts.map +1 -1
- package/resources/batches/index.js.map +1 -1
- package/resources/batches/index.mjs.map +1 -1
- package/resources/batches/messages.d.mts +6 -30
- package/resources/batches/messages.d.mts.map +1 -1
- package/resources/batches/messages.d.ts +6 -30
- package/resources/batches/messages.d.ts.map +1 -1
- package/resources/batches/messages.js +2 -1
- package/resources/batches/messages.js.map +1 -1
- package/resources/batches/messages.mjs +2 -1
- package/resources/batches/messages.mjs.map +1 -1
- package/resources/blocks/agents.d.mts +6 -28
- package/resources/blocks/agents.d.mts.map +1 -1
- package/resources/blocks/agents.d.ts +6 -28
- package/resources/blocks/agents.d.ts.map +1 -1
- package/resources/blocks/agents.js +5 -1
- package/resources/blocks/agents.js.map +1 -1
- package/resources/blocks/agents.mjs +5 -1
- package/resources/blocks/agents.mjs.map +1 -1
- package/resources/blocks/blocks.d.mts +108 -48
- package/resources/blocks/blocks.d.mts.map +1 -1
- package/resources/blocks/blocks.d.ts +108 -48
- package/resources/blocks/blocks.d.ts.map +1 -1
- package/resources/blocks/blocks.js +3 -8
- package/resources/blocks/blocks.js.map +1 -1
- package/resources/blocks/blocks.mjs +3 -8
- package/resources/blocks/blocks.mjs.map +1 -1
- package/resources/blocks/index.d.mts +2 -2
- package/resources/blocks/index.d.mts.map +1 -1
- package/resources/blocks/index.d.ts +2 -2
- package/resources/blocks/index.d.ts.map +1 -1
- package/resources/blocks/index.js.map +1 -1
- package/resources/blocks/index.mjs.map +1 -1
- package/resources/folders/files.d.mts +75 -97
- package/resources/folders/files.d.mts.map +1 -1
- package/resources/folders/files.d.ts +75 -97
- package/resources/folders/files.d.ts.map +1 -1
- package/resources/folders/files.js +5 -1
- package/resources/folders/files.js.map +1 -1
- package/resources/folders/files.mjs +5 -1
- package/resources/folders/files.mjs.map +1 -1
- package/resources/folders/folders.d.mts +11 -44
- package/resources/folders/folders.d.mts.map +1 -1
- package/resources/folders/folders.d.ts +11 -44
- package/resources/folders/folders.d.ts.map +1 -1
- package/resources/folders/folders.js +2 -7
- package/resources/folders/folders.js.map +1 -1
- package/resources/folders/folders.mjs +2 -7
- package/resources/folders/folders.mjs.map +1 -1
- package/resources/folders/index.d.mts +2 -2
- package/resources/folders/index.d.mts.map +1 -1
- package/resources/folders/index.d.ts +2 -2
- package/resources/folders/index.d.ts.map +1 -1
- package/resources/folders/index.js.map +1 -1
- package/resources/folders/index.mjs.map +1 -1
- package/resources/groups/groups.d.mts +17 -67
- package/resources/groups/groups.d.mts.map +1 -1
- package/resources/groups/groups.d.ts +17 -67
- package/resources/groups/groups.d.ts.map +1 -1
- package/resources/groups/groups.js +6 -28
- package/resources/groups/groups.js.map +1 -1
- package/resources/groups/groups.mjs +6 -28
- package/resources/groups/groups.mjs.map +1 -1
- package/resources/groups/index.d.mts +2 -2
- package/resources/groups/index.d.mts.map +1 -1
- package/resources/groups/index.d.ts +2 -2
- package/resources/groups/index.d.ts.map +1 -1
- package/resources/groups/index.js.map +1 -1
- package/resources/groups/index.mjs.map +1 -1
- package/resources/groups/messages.d.mts +145 -79
- package/resources/groups/messages.d.mts.map +1 -1
- package/resources/groups/messages.d.ts +145 -79
- package/resources/groups/messages.d.ts.map +1 -1
- package/resources/groups/messages.js +18 -10
- package/resources/groups/messages.js.map +1 -1
- package/resources/groups/messages.mjs +18 -10
- package/resources/groups/messages.mjs.map +1 -1
- package/resources/identities/agents.d.mts +6 -28
- package/resources/identities/agents.d.mts.map +1 -1
- package/resources/identities/agents.d.ts +6 -28
- package/resources/identities/agents.d.ts.map +1 -1
- package/resources/identities/agents.js +2 -1
- package/resources/identities/agents.js.map +1 -1
- package/resources/identities/agents.mjs +2 -1
- package/resources/identities/agents.mjs.map +1 -1
- package/resources/identities/blocks.d.mts +7 -29
- package/resources/identities/blocks.d.mts.map +1 -1
- package/resources/identities/blocks.d.ts +7 -29
- package/resources/identities/blocks.d.ts.map +1 -1
- package/resources/identities/blocks.js +2 -1
- package/resources/identities/blocks.js.map +1 -1
- package/resources/identities/blocks.mjs +2 -1
- package/resources/identities/blocks.mjs.map +1 -1
- package/resources/identities/identities.d.mts +30 -65
- package/resources/identities/identities.d.mts.map +1 -1
- package/resources/identities/identities.d.ts +30 -65
- package/resources/identities/identities.d.ts.map +1 -1
- package/resources/identities/identities.js +7 -29
- package/resources/identities/identities.js.map +1 -1
- package/resources/identities/identities.mjs +7 -29
- package/resources/identities/identities.mjs.map +1 -1
- package/resources/identities/index.d.mts +3 -3
- package/resources/identities/index.d.mts.map +1 -1
- package/resources/identities/index.d.ts +3 -3
- package/resources/identities/index.d.ts.map +1 -1
- package/resources/identities/index.js.map +1 -1
- package/resources/identities/index.mjs.map +1 -1
- package/resources/identities/properties.d.mts +1 -1
- package/resources/identities/properties.d.ts +1 -1
- package/resources/identities/properties.js +1 -1
- package/resources/identities/properties.mjs +1 -1
- package/resources/index.d.mts +13 -11
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +13 -11
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +6 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mcp-servers/index.d.mts +3 -0
- package/resources/mcp-servers/index.d.mts.map +1 -0
- package/resources/mcp-servers/index.d.ts +3 -0
- package/resources/mcp-servers/index.d.ts.map +1 -0
- package/resources/mcp-servers/index.js +9 -0
- package/resources/mcp-servers/index.js.map +1 -0
- package/resources/mcp-servers/index.mjs +4 -0
- package/resources/mcp-servers/index.mjs.map +1 -0
- package/resources/mcp-servers/mcp-servers.d.mts +349 -0
- package/resources/mcp-servers/mcp-servers.d.mts.map +1 -0
- package/resources/mcp-servers/mcp-servers.d.ts +349 -0
- package/resources/mcp-servers/mcp-servers.d.ts.map +1 -0
- package/resources/mcp-servers/mcp-servers.js +69 -0
- package/resources/mcp-servers/mcp-servers.js.map +1 -0
- package/resources/mcp-servers/mcp-servers.mjs +64 -0
- package/resources/mcp-servers/mcp-servers.mjs.map +1 -0
- package/resources/mcp-servers/tools.d.mts +42 -0
- package/resources/mcp-servers/tools.d.mts.map +1 -0
- package/resources/mcp-servers/tools.d.ts +42 -0
- package/resources/mcp-servers/tools.d.ts.map +1 -0
- package/resources/mcp-servers/tools.js +36 -0
- package/resources/mcp-servers/tools.js.map +1 -0
- package/resources/mcp-servers/tools.mjs +32 -0
- package/resources/mcp-servers/tools.mjs.map +1 -0
- package/resources/mcp-servers.d.mts +2 -0
- package/resources/mcp-servers.d.mts.map +1 -0
- package/resources/mcp-servers.d.ts +2 -0
- package/resources/mcp-servers.d.ts.map +1 -0
- package/resources/mcp-servers.js +6 -0
- package/resources/mcp-servers.js.map +1 -0
- package/resources/mcp-servers.mjs +3 -0
- package/resources/mcp-servers.mjs.map +1 -0
- package/resources/models/embeddings.d.mts +6 -2
- package/resources/models/embeddings.d.mts.map +1 -1
- package/resources/models/embeddings.d.ts +6 -2
- package/resources/models/embeddings.d.ts.map +1 -1
- package/resources/models/embeddings.js +5 -1
- package/resources/models/embeddings.js.map +1 -1
- package/resources/models/embeddings.mjs +5 -1
- package/resources/models/embeddings.mjs.map +1 -1
- package/resources/models/index.d.mts +1 -1
- package/resources/models/index.d.mts.map +1 -1
- package/resources/models/index.d.ts +1 -1
- package/resources/models/index.d.ts.map +1 -1
- package/resources/models/index.js.map +1 -1
- package/resources/models/index.mjs.map +1 -1
- package/resources/models/models.d.mts +180 -4
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +180 -4
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js +5 -1
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs +5 -1
- package/resources/models/models.mjs.map +1 -1
- package/resources/runs/index.d.mts +3 -3
- package/resources/runs/index.d.mts.map +1 -1
- package/resources/runs/index.d.ts +3 -3
- package/resources/runs/index.d.ts.map +1 -1
- package/resources/runs/index.js.map +1 -1
- package/resources/runs/index.mjs.map +1 -1
- package/resources/runs/messages.d.mts +8 -28
- package/resources/runs/messages.d.mts.map +1 -1
- package/resources/runs/messages.d.ts +8 -28
- package/resources/runs/messages.d.ts.map +1 -1
- package/resources/runs/messages.js +10 -2
- package/resources/runs/messages.js.map +1 -1
- package/resources/runs/messages.mjs +10 -2
- package/resources/runs/messages.mjs.map +1 -1
- package/resources/runs/runs.d.mts +10 -36
- package/resources/runs/runs.d.mts.map +1 -1
- package/resources/runs/runs.d.ts +10 -36
- package/resources/runs/runs.d.ts.map +1 -1
- package/resources/runs/runs.js +2 -1
- package/resources/runs/runs.js.map +1 -1
- package/resources/runs/runs.mjs +3 -2
- package/resources/runs/runs.mjs.map +1 -1
- package/resources/runs/steps.d.mts +6 -26
- package/resources/runs/steps.d.mts.map +1 -1
- package/resources/runs/steps.d.ts +6 -26
- package/resources/runs/steps.d.ts.map +1 -1
- package/resources/runs/steps.js +5 -1
- package/resources/runs/steps.js.map +1 -1
- package/resources/runs/steps.mjs +5 -1
- package/resources/runs/steps.mjs.map +1 -1
- package/resources/steps/index.d.mts +2 -2
- package/resources/steps/index.d.mts.map +1 -1
- package/resources/steps/index.d.ts +2 -2
- package/resources/steps/index.d.ts.map +1 -1
- package/resources/steps/index.js.map +1 -1
- package/resources/steps/index.mjs +1 -1
- package/resources/steps/index.mjs.map +1 -1
- package/resources/steps/messages.d.mts +14 -28
- package/resources/steps/messages.d.mts.map +1 -1
- package/resources/steps/messages.d.ts +14 -28
- package/resources/steps/messages.d.ts.map +1 -1
- package/resources/steps/messages.js +5 -1
- package/resources/steps/messages.js.map +1 -1
- package/resources/steps/messages.mjs +5 -1
- package/resources/steps/messages.mjs.map +1 -1
- package/resources/steps/steps.d.mts +17 -44
- package/resources/steps/steps.d.mts.map +1 -1
- package/resources/steps/steps.d.ts +17 -44
- package/resources/steps/steps.d.ts.map +1 -1
- package/resources/steps/steps.js +3 -11
- package/resources/steps/steps.js.map +1 -1
- package/resources/steps/steps.mjs +3 -11
- package/resources/steps/steps.mjs.map +1 -1
- package/resources/templates/agents.d.mts +9 -14
- package/resources/templates/agents.d.mts.map +1 -1
- package/resources/templates/agents.d.ts +9 -14
- package/resources/templates/agents.d.ts.map +1 -1
- package/resources/templates/agents.js +2 -3
- package/resources/templates/agents.js.map +1 -1
- package/resources/templates/agents.mjs +2 -3
- package/resources/templates/agents.mjs.map +1 -1
- package/resources/tools.d.mts +6 -68
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +6 -68
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +2 -7
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +2 -7
- package/resources/tools.mjs.map +1 -1
- package/src/client.ts +274 -127
- package/src/core/pagination.ts +334 -0
- package/src/core/streaming.ts +331 -0
- package/src/index.ts +1 -0
- package/src/internal/decoders/line.ts +135 -0
- package/src/internal/parse.ts +14 -0
- package/src/internal/request-options.ts +2 -0
- package/src/pagination.ts +2 -0
- package/src/resources/access-tokens.ts +163 -0
- package/src/resources/agents/agents.ts +722 -242
- package/src/resources/agents/archives.ts +51 -0
- package/src/resources/agents/blocks.ts +50 -63
- package/src/resources/agents/files.ts +47 -90
- package/src/resources/agents/folders.ts +58 -88
- package/src/resources/agents/groups.ts +11 -35
- package/src/resources/agents/identities.ts +51 -0
- package/src/resources/agents/index.ts +40 -12
- package/src/resources/agents/messages.ts +941 -550
- package/src/resources/agents/tools.ts +13 -37
- package/src/resources/archives/archives.ts +170 -0
- package/src/resources/archives/index.ts +17 -0
- package/src/resources/archives/passages.ts +150 -0
- package/src/resources/archives.ts +1 -178
- package/src/resources/batches/batches.ts +74 -46
- package/src/resources/batches/index.ts +2 -2
- package/src/resources/batches/messages.ts +12 -37
- package/src/resources/blocks/agents.ts +11 -35
- package/src/resources/blocks/blocks.ts +130 -64
- package/src/resources/blocks/index.ts +3 -3
- package/src/resources/folders/files.ts +90 -113
- package/src/resources/folders/folders.ts +14 -55
- package/src/resources/folders/index.ts +2 -2
- package/src/resources/groups/groups.ts +21 -102
- package/src/resources/groups/index.ts +2 -4
- package/src/resources/groups/messages.ts +215 -103
- package/src/resources/identities/agents.ts +12 -35
- package/src/resources/identities/blocks.ts +13 -36
- package/src/resources/identities/identities.ts +35 -107
- package/src/resources/identities/index.ts +3 -4
- package/src/resources/identities/properties.ts +1 -1
- package/src/resources/index.ts +55 -18
- package/src/resources/mcp-servers/index.ts +25 -0
- package/src/resources/mcp-servers/mcp-servers.ts +460 -0
- package/src/resources/mcp-servers/tools.ts +69 -0
- package/src/resources/mcp-servers.ts +3 -0
- package/src/resources/models/embeddings.ts +6 -2
- package/src/resources/models/index.ts +2 -0
- package/src/resources/models/models.ts +260 -3
- package/src/resources/runs/index.ts +2 -3
- package/src/resources/runs/messages.ts +18 -37
- package/src/resources/runs/runs.ts +14 -54
- package/src/resources/runs/steps.ts +11 -33
- package/src/resources/steps/index.ts +7 -2
- package/src/resources/steps/messages.ts +25 -35
- package/src/resources/steps/steps.ts +20 -61
- package/src/resources/templates/agents.ts +14 -17
- package/src/resources/tools.ts +8 -92
- package/src/streaming.ts +2 -0
- package/src/version.ts +1 -1
- package/streaming.d.mts +2 -0
- package/streaming.d.mts.map +1 -0
- package/streaming.d.ts +2 -0
- package/streaming.d.ts.map +1 -0
- package/streaming.js +6 -0
- package/streaming.js.map +1 -0
- package/streaming.mjs +2 -0
- package/streaming.mjs.map +1 -0
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -2,15 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as AgentsAPI from './agents';
|
|
5
|
-
import * as ArchivesAPI from '../archives';
|
|
6
5
|
import * as ToolsAPI from '../tools';
|
|
6
|
+
import * as ArchivesAPI from './archives';
|
|
7
|
+
import {
|
|
8
|
+
ArchiveAttachParams,
|
|
9
|
+
ArchiveAttachResponse,
|
|
10
|
+
ArchiveDetachParams,
|
|
11
|
+
ArchiveDetachResponse,
|
|
12
|
+
Archives,
|
|
13
|
+
} from './archives';
|
|
7
14
|
import * as BlocksAPI from './blocks';
|
|
8
15
|
import {
|
|
9
16
|
Block,
|
|
10
17
|
BlockAttachParams,
|
|
11
18
|
BlockDetachParams,
|
|
12
19
|
BlockListParams,
|
|
13
|
-
BlockListResponse,
|
|
14
20
|
BlockRetrieveParams,
|
|
15
21
|
BlockUpdate,
|
|
16
22
|
BlockUpdateParams,
|
|
@@ -23,6 +29,7 @@ import {
|
|
|
23
29
|
FileCloseResponse,
|
|
24
30
|
FileListParams,
|
|
25
31
|
FileListResponse,
|
|
32
|
+
FileListResponsesNextFilesPage,
|
|
26
33
|
FileOpenParams,
|
|
27
34
|
FileOpenResponse,
|
|
28
35
|
Files,
|
|
@@ -33,46 +40,58 @@ import {
|
|
|
33
40
|
FolderDetachParams,
|
|
34
41
|
FolderListParams,
|
|
35
42
|
FolderListResponse,
|
|
43
|
+
FolderListResponsesArrayPage,
|
|
36
44
|
Folders,
|
|
37
45
|
} from './folders';
|
|
38
46
|
import * as GroupsAPI from './groups';
|
|
39
|
-
import { GroupListParams,
|
|
47
|
+
import { GroupListParams, Groups } from './groups';
|
|
48
|
+
import * as IdentitiesAPI from './identities';
|
|
49
|
+
import {
|
|
50
|
+
Identities,
|
|
51
|
+
IdentityAttachParams,
|
|
52
|
+
IdentityAttachResponse,
|
|
53
|
+
IdentityDetachParams,
|
|
54
|
+
IdentityDetachResponse,
|
|
55
|
+
} from './identities';
|
|
40
56
|
import * as MessagesAPI from './messages';
|
|
41
57
|
import {
|
|
42
58
|
ApprovalCreate,
|
|
43
59
|
ApprovalRequestMessage,
|
|
44
60
|
ApprovalResponseMessage,
|
|
61
|
+
ApprovalReturn,
|
|
45
62
|
AssistantMessage,
|
|
63
|
+
EventMessage,
|
|
46
64
|
HiddenReasoningMessage,
|
|
47
65
|
ImageContent,
|
|
66
|
+
InternalMessage,
|
|
48
67
|
JobStatus,
|
|
49
68
|
JobType,
|
|
50
69
|
LettaAssistantMessageContentUnion,
|
|
51
|
-
LettaMessageUnion,
|
|
52
70
|
LettaRequest,
|
|
53
71
|
LettaResponse,
|
|
54
72
|
LettaStreamingRequest,
|
|
73
|
+
LettaStreamingResponse,
|
|
55
74
|
LettaUserMessageContentUnion,
|
|
56
75
|
Message,
|
|
57
76
|
MessageCancelParams,
|
|
58
77
|
MessageCancelResponse,
|
|
78
|
+
MessageCreateAsyncParams,
|
|
79
|
+
MessageCreateParams,
|
|
80
|
+
MessageCreateParamsNonStreaming,
|
|
81
|
+
MessageCreateParamsStreaming,
|
|
59
82
|
MessageListParams,
|
|
60
|
-
MessageListResponse,
|
|
61
83
|
MessageResetParams,
|
|
62
84
|
MessageRole,
|
|
63
|
-
MessageSendAsyncParams,
|
|
64
|
-
MessageSendParams,
|
|
65
85
|
MessageStreamParams,
|
|
66
|
-
MessageStreamResponse,
|
|
67
86
|
MessageType,
|
|
68
|
-
MessageUpdateParams,
|
|
69
|
-
MessageUpdateResponse,
|
|
70
87
|
Messages,
|
|
88
|
+
MessagesArrayPage,
|
|
71
89
|
OmittedReasoningContent,
|
|
72
90
|
ReasoningContent,
|
|
73
91
|
ReasoningMessage,
|
|
74
92
|
RedactedReasoningContent,
|
|
75
93
|
Run,
|
|
94
|
+
SummaryMessage,
|
|
76
95
|
SystemMessage,
|
|
77
96
|
TextContent,
|
|
78
97
|
ToolCall,
|
|
@@ -88,19 +107,15 @@ import {
|
|
|
88
107
|
UserMessage,
|
|
89
108
|
} from './messages';
|
|
90
109
|
import * as AgentsToolsAPI from './tools';
|
|
91
|
-
import {
|
|
92
|
-
|
|
93
|
-
ToolDetachParams,
|
|
94
|
-
ToolListParams,
|
|
95
|
-
ToolListResponse,
|
|
96
|
-
ToolUpdateApprovalParams,
|
|
97
|
-
Tools,
|
|
98
|
-
} from './tools';
|
|
110
|
+
import { ToolAttachParams, ToolDetachParams, ToolListParams, ToolUpdateApprovalParams, Tools } from './tools';
|
|
111
|
+
import * as ArchivesArchivesAPI from '../archives/archives';
|
|
99
112
|
import * as BlocksBlocksAPI from '../blocks/blocks';
|
|
100
113
|
import * as GroupsGroupsAPI from '../groups/groups';
|
|
101
|
-
import * as
|
|
114
|
+
import * as IdentitiesIdentitiesAPI from '../identities/identities';
|
|
102
115
|
import * as ModelsAPI from '../models/models';
|
|
116
|
+
import * as RunsAPI from '../runs/runs';
|
|
103
117
|
import { APIPromise } from '../../core/api-promise';
|
|
118
|
+
import { ArrayPage, type ArrayPageParams, PagePromise } from '../../core/pagination';
|
|
104
119
|
import { type Uploadable } from '../../core/uploads';
|
|
105
120
|
import { buildHeaders } from '../../internal/headers';
|
|
106
121
|
import { RequestOptions } from '../../internal/request-options';
|
|
@@ -108,26 +123,20 @@ import { multipartFormRequestOptions } from '../../internal/uploads';
|
|
|
108
123
|
import { path } from '../../internal/utils/path';
|
|
109
124
|
|
|
110
125
|
export class Agents extends APIResource {
|
|
126
|
+
messages: MessagesAPI.Messages = new MessagesAPI.Messages(this._client);
|
|
127
|
+
blocks: BlocksAPI.Blocks = new BlocksAPI.Blocks(this._client);
|
|
111
128
|
tools: AgentsToolsAPI.Tools = new AgentsToolsAPI.Tools(this._client);
|
|
112
129
|
folders: FoldersAPI.Folders = new FoldersAPI.Folders(this._client);
|
|
113
130
|
files: FilesAPI.Files = new FilesAPI.Files(this._client);
|
|
114
|
-
blocks: BlocksAPI.Blocks = new BlocksAPI.Blocks(this._client);
|
|
115
131
|
groups: GroupsAPI.Groups = new GroupsAPI.Groups(this._client);
|
|
116
|
-
|
|
132
|
+
archives: ArchivesAPI.Archives = new ArchivesAPI.Archives(this._client);
|
|
133
|
+
identities: IdentitiesAPI.Identities = new IdentitiesAPI.Identities(this._client);
|
|
117
134
|
|
|
118
135
|
/**
|
|
119
136
|
* Create an agent.
|
|
120
137
|
*/
|
|
121
|
-
create(
|
|
122
|
-
|
|
123
|
-
return this._client.post('/v1/agents/', {
|
|
124
|
-
body,
|
|
125
|
-
...options,
|
|
126
|
-
headers: buildHeaders([
|
|
127
|
-
{ ...(xProject != null ? { 'X-Project': xProject } : undefined) },
|
|
128
|
-
options?.headers,
|
|
129
|
-
]),
|
|
130
|
-
});
|
|
138
|
+
create(body: AgentCreateParams, options?: RequestOptions): APIPromise<AgentState> {
|
|
139
|
+
return this._client.post('/v1/agents/', { body, ...options });
|
|
131
140
|
}
|
|
132
141
|
|
|
133
142
|
/**
|
|
@@ -154,8 +163,8 @@ export class Agents extends APIResource {
|
|
|
154
163
|
list(
|
|
155
164
|
query: AgentListParams | null | undefined = {},
|
|
156
165
|
options?: RequestOptions,
|
|
157
|
-
):
|
|
158
|
-
return this._client.
|
|
166
|
+
): PagePromise<AgentStatesArrayPage, AgentState> {
|
|
167
|
+
return this._client.getAPIList('/v1/agents/', ArrayPage<AgentState>, { query, ...options });
|
|
159
168
|
}
|
|
160
169
|
|
|
161
170
|
/**
|
|
@@ -165,13 +174,6 @@ export class Agents extends APIResource {
|
|
|
165
174
|
return this._client.delete(path`/v1/agents/${agentID}`, options);
|
|
166
175
|
}
|
|
167
176
|
|
|
168
|
-
/**
|
|
169
|
-
* Get the total number of agents.
|
|
170
|
-
*/
|
|
171
|
-
count(options?: RequestOptions): APIPromise<AgentCountResponse> {
|
|
172
|
-
return this._client.get('/v1/agents/count', options);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
177
|
/**
|
|
176
178
|
* Export the serialized JSON representation of an agent, formatted with
|
|
177
179
|
* indentation.
|
|
@@ -211,6 +213,8 @@ export class Agents extends APIResource {
|
|
|
211
213
|
}
|
|
212
214
|
}
|
|
213
215
|
|
|
216
|
+
export type AgentStatesArrayPage = ArrayPage<AgentState>;
|
|
217
|
+
|
|
214
218
|
export interface AgentEnvironmentVariable {
|
|
215
219
|
/**
|
|
216
220
|
* The ID of the agent this environment variable belongs to.
|
|
@@ -267,16 +271,6 @@ export interface AgentEnvironmentVariable {
|
|
|
267
271
|
* Representation of an agent's state. This is the state of the agent at a given
|
|
268
272
|
* time, and is persisted in the DB backend. The state has all the information
|
|
269
273
|
* needed to recreate a persisted agent.
|
|
270
|
-
*
|
|
271
|
-
* Parameters: id (str): The unique identifier of the agent. name (str): The name
|
|
272
|
-
* of the agent (must be unique to the user). created_at (datetime): The datetime
|
|
273
|
-
* the agent was created. message_ids (List[str]): The ids of the messages in the
|
|
274
|
-
* agent's in-context memory. memory (Memory): The in-context memory of the agent.
|
|
275
|
-
* tools (List[str]): The tools used by the agent. This includes any memory editing
|
|
276
|
-
* functions specified in `memory`. system (str): The system prompt used by the
|
|
277
|
-
* agent. llm_config (LLMConfig): The LLM configuration used by the agent.
|
|
278
|
-
* embedding_config (EmbeddingConfig): The embedding configuration used by the
|
|
279
|
-
* agent.
|
|
280
274
|
*/
|
|
281
275
|
export interface AgentState {
|
|
282
276
|
/**
|
|
@@ -295,17 +289,20 @@ export interface AgentState {
|
|
|
295
289
|
blocks: Array<BlocksAPI.Block>;
|
|
296
290
|
|
|
297
291
|
/**
|
|
298
|
-
*
|
|
292
|
+
* @deprecated Deprecated: Use `embedding` field instead. The embedding
|
|
293
|
+
* configuration used by the agent.
|
|
299
294
|
*/
|
|
300
295
|
embedding_config: ModelsAPI.EmbeddingConfig;
|
|
301
296
|
|
|
302
297
|
/**
|
|
303
|
-
* The LLM configuration used by
|
|
298
|
+
* @deprecated Deprecated: Use `model` field instead. The LLM configuration used by
|
|
299
|
+
* the agent.
|
|
304
300
|
*/
|
|
305
301
|
llm_config: ModelsAPI.LlmConfig;
|
|
306
302
|
|
|
307
303
|
/**
|
|
308
|
-
* @deprecated The in-context memory of the
|
|
304
|
+
* @deprecated Deprecated: Use `blocks` field instead. The in-context memory of the
|
|
305
|
+
* agent.
|
|
309
306
|
*/
|
|
310
307
|
memory: AgentState.Memory;
|
|
311
308
|
|
|
@@ -315,7 +312,8 @@ export interface AgentState {
|
|
|
315
312
|
name: string;
|
|
316
313
|
|
|
317
314
|
/**
|
|
318
|
-
* The sources used by the
|
|
315
|
+
* @deprecated Deprecated: Use `folders` field instead. The sources used by the
|
|
316
|
+
* agent.
|
|
319
317
|
*/
|
|
320
318
|
sources: Array<AgentState.Source>;
|
|
321
319
|
|
|
@@ -359,6 +357,11 @@ export interface AgentState {
|
|
|
359
357
|
*/
|
|
360
358
|
description?: string | null;
|
|
361
359
|
|
|
360
|
+
/**
|
|
361
|
+
* The embedding model handle used by the agent (format: provider/model-name).
|
|
362
|
+
*/
|
|
363
|
+
embedding?: string | null;
|
|
364
|
+
|
|
362
365
|
/**
|
|
363
366
|
* If set to True, memory management will move to a background agent thread.
|
|
364
367
|
*/
|
|
@@ -377,10 +380,11 @@ export interface AgentState {
|
|
|
377
380
|
/**
|
|
378
381
|
* The identities associated with this agent.
|
|
379
382
|
*/
|
|
380
|
-
identities?: Array<
|
|
383
|
+
identities?: Array<IdentitiesIdentitiesAPI.Identity>;
|
|
381
384
|
|
|
382
385
|
/**
|
|
383
|
-
* @deprecated
|
|
386
|
+
* @deprecated Deprecated: Use `identities` field instead. The ids of the
|
|
387
|
+
* identities associated with this agent.
|
|
384
388
|
*/
|
|
385
389
|
identity_ids?: Array<string>;
|
|
386
390
|
|
|
@@ -394,6 +398,11 @@ export interface AgentState {
|
|
|
394
398
|
*/
|
|
395
399
|
last_run_duration_ms?: number | null;
|
|
396
400
|
|
|
401
|
+
/**
|
|
402
|
+
* The stop reason from the agent's last run.
|
|
403
|
+
*/
|
|
404
|
+
last_stop_reason?: RunsAPI.StopReasonType | null;
|
|
405
|
+
|
|
397
406
|
/**
|
|
398
407
|
* The id of the user that made this object.
|
|
399
408
|
*/
|
|
@@ -428,7 +437,29 @@ export interface AgentState {
|
|
|
428
437
|
metadata?: { [key: string]: unknown } | null;
|
|
429
438
|
|
|
430
439
|
/**
|
|
431
|
-
*
|
|
440
|
+
* The model handle used by the agent (format: provider/model-name).
|
|
441
|
+
*/
|
|
442
|
+
model?: string | null;
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* The model settings used by the agent.
|
|
446
|
+
*/
|
|
447
|
+
model_settings?:
|
|
448
|
+
| OpenAIModelSettings
|
|
449
|
+
| AnthropicModelSettings
|
|
450
|
+
| GoogleAIModelSettings
|
|
451
|
+
| GoogleVertexModelSettings
|
|
452
|
+
| AzureModelSettings
|
|
453
|
+
| XaiModelSettings
|
|
454
|
+
| GroqModelSettings
|
|
455
|
+
| DeepseekModelSettings
|
|
456
|
+
| TogetherModelSettings
|
|
457
|
+
| BedrockModelSettings
|
|
458
|
+
| null;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* @deprecated Deprecated: Use `managed_group` field instead. The multi-agent group
|
|
462
|
+
* that this agent manages.
|
|
432
463
|
*/
|
|
433
464
|
multi_agent_group?: GroupsGroupsAPI.Group | null;
|
|
434
465
|
|
|
@@ -444,7 +475,7 @@ export interface AgentState {
|
|
|
444
475
|
project_id?: string | null;
|
|
445
476
|
|
|
446
477
|
/**
|
|
447
|
-
* The response format used by the agent
|
|
478
|
+
* The response format used by the agent
|
|
448
479
|
*/
|
|
449
480
|
response_format?: TextResponseFormat | JsonSchemaResponseFormat | JsonObjectResponseFormat | null;
|
|
450
481
|
|
|
@@ -491,7 +522,8 @@ export interface AgentState {
|
|
|
491
522
|
|
|
492
523
|
export namespace AgentState {
|
|
493
524
|
/**
|
|
494
|
-
* @deprecated The in-context memory of the
|
|
525
|
+
* @deprecated Deprecated: Use `blocks` field instead. The in-context memory of the
|
|
526
|
+
* agent.
|
|
495
527
|
*/
|
|
496
528
|
export interface Memory {
|
|
497
529
|
/**
|
|
@@ -528,7 +560,8 @@ export namespace AgentState {
|
|
|
528
560
|
is_open: boolean;
|
|
529
561
|
|
|
530
562
|
/**
|
|
531
|
-
* Unique identifier of the
|
|
563
|
+
* @deprecated Deprecated: Use `folder_id` field instead. Unique identifier of the
|
|
564
|
+
* source.
|
|
532
565
|
*/
|
|
533
566
|
source_id: string;
|
|
534
567
|
|
|
@@ -603,11 +636,6 @@ export namespace AgentState {
|
|
|
603
636
|
*/
|
|
604
637
|
metadata?: { [key: string]: unknown } | null;
|
|
605
638
|
|
|
606
|
-
/**
|
|
607
|
-
* The id of the template.
|
|
608
|
-
*/
|
|
609
|
-
name?: string | null;
|
|
610
|
-
|
|
611
639
|
/**
|
|
612
640
|
* Preserve the block on template migration.
|
|
613
641
|
*/
|
|
@@ -622,19 +650,29 @@ export namespace AgentState {
|
|
|
622
650
|
* Whether the agent has read-only access to the block.
|
|
623
651
|
*/
|
|
624
652
|
read_only?: boolean;
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* The id of the template.
|
|
656
|
+
*/
|
|
657
|
+
template_id?: string | null;
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* Name of the block if it is a template.
|
|
661
|
+
*/
|
|
662
|
+
template_name?: string | null;
|
|
625
663
|
}
|
|
626
664
|
}
|
|
627
665
|
|
|
628
666
|
/**
|
|
629
|
-
* Representation of a source, which is a collection of
|
|
630
|
-
*
|
|
631
|
-
* Parameters: id (str): The ID of the source name (str): The name of the source.
|
|
632
|
-
* embedding_config (EmbeddingConfig): The embedding configuration used by the
|
|
633
|
-
* source. user_id (str): The ID of the user that created the source. metadata
|
|
634
|
-
* (dict): Metadata associated with the source. description (str): The description
|
|
635
|
-
* of the source.
|
|
667
|
+
* (Deprecated: Use Folder) Representation of a source, which is a collection of
|
|
668
|
+
* files and passages.
|
|
636
669
|
*/
|
|
637
670
|
export interface Source {
|
|
671
|
+
/**
|
|
672
|
+
* The human-friendly ID of the Source
|
|
673
|
+
*/
|
|
674
|
+
id: string;
|
|
675
|
+
|
|
638
676
|
/**
|
|
639
677
|
* The embedding configuration used by the source.
|
|
640
678
|
*/
|
|
@@ -645,11 +683,6 @@ export namespace AgentState {
|
|
|
645
683
|
*/
|
|
646
684
|
name: string;
|
|
647
685
|
|
|
648
|
-
/**
|
|
649
|
-
* The human-friendly ID of the Source
|
|
650
|
-
*/
|
|
651
|
-
id?: string;
|
|
652
|
-
|
|
653
686
|
/**
|
|
654
687
|
* The timestamp when the source was created.
|
|
655
688
|
*/
|
|
@@ -688,7 +721,7 @@ export namespace AgentState {
|
|
|
688
721
|
/**
|
|
689
722
|
* The vector database provider used for this source's passages
|
|
690
723
|
*/
|
|
691
|
-
vector_db_provider?:
|
|
724
|
+
vector_db_provider?: ArchivesArchivesAPI.VectorDBProvider;
|
|
692
725
|
}
|
|
693
726
|
}
|
|
694
727
|
|
|
@@ -706,6 +739,115 @@ export type AgentType =
|
|
|
706
739
|
| 'voice_convo_agent'
|
|
707
740
|
| 'voice_sleeptime_agent';
|
|
708
741
|
|
|
742
|
+
export interface AnthropicModelSettings {
|
|
743
|
+
/**
|
|
744
|
+
* The maximum number of tokens the model can generate.
|
|
745
|
+
*/
|
|
746
|
+
max_output_tokens?: number;
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* Whether to enable parallel tool calling.
|
|
750
|
+
*/
|
|
751
|
+
parallel_tool_calls?: boolean;
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* The type of the provider.
|
|
755
|
+
*/
|
|
756
|
+
provider_type?: 'anthropic';
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* The temperature of the model.
|
|
760
|
+
*/
|
|
761
|
+
temperature?: number;
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* The thinking configuration for the model.
|
|
765
|
+
*/
|
|
766
|
+
thinking?: AnthropicModelSettings.Thinking;
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* Soft control for how verbose model output should be, used for GPT-5 models.
|
|
770
|
+
*/
|
|
771
|
+
verbosity?: 'low' | 'medium' | 'high' | null;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
export namespace AnthropicModelSettings {
|
|
775
|
+
/**
|
|
776
|
+
* The thinking configuration for the model.
|
|
777
|
+
*/
|
|
778
|
+
export interface Thinking {
|
|
779
|
+
/**
|
|
780
|
+
* The maximum number of tokens the model can use for extended thinking.
|
|
781
|
+
*/
|
|
782
|
+
budget_tokens?: number;
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* The type of thinking to use.
|
|
786
|
+
*/
|
|
787
|
+
type?: 'enabled' | 'disabled';
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* Azure OpenAI model configuration (OpenAI-compatible).
|
|
793
|
+
*/
|
|
794
|
+
export interface AzureModelSettings {
|
|
795
|
+
/**
|
|
796
|
+
* The maximum number of tokens the model can generate.
|
|
797
|
+
*/
|
|
798
|
+
max_output_tokens?: number;
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* Whether to enable parallel tool calling.
|
|
802
|
+
*/
|
|
803
|
+
parallel_tool_calls?: boolean;
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* The type of the provider.
|
|
807
|
+
*/
|
|
808
|
+
provider_type?: 'azure';
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* The response format for the model.
|
|
812
|
+
*/
|
|
813
|
+
response_format?: TextResponseFormat | JsonSchemaResponseFormat | JsonObjectResponseFormat | null;
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* The temperature of the model.
|
|
817
|
+
*/
|
|
818
|
+
temperature?: number;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
/**
|
|
822
|
+
* AWS Bedrock model configuration.
|
|
823
|
+
*/
|
|
824
|
+
export interface BedrockModelSettings {
|
|
825
|
+
/**
|
|
826
|
+
* The maximum number of tokens the model can generate.
|
|
827
|
+
*/
|
|
828
|
+
max_output_tokens?: number;
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* Whether to enable parallel tool calling.
|
|
832
|
+
*/
|
|
833
|
+
parallel_tool_calls?: boolean;
|
|
834
|
+
|
|
835
|
+
/**
|
|
836
|
+
* The type of the provider.
|
|
837
|
+
*/
|
|
838
|
+
provider_type?: 'bedrock';
|
|
839
|
+
|
|
840
|
+
/**
|
|
841
|
+
* The response format for the model.
|
|
842
|
+
*/
|
|
843
|
+
response_format?: TextResponseFormat | JsonSchemaResponseFormat | JsonObjectResponseFormat | null;
|
|
844
|
+
|
|
845
|
+
/**
|
|
846
|
+
* The temperature of the model.
|
|
847
|
+
*/
|
|
848
|
+
temperature?: number;
|
|
849
|
+
}
|
|
850
|
+
|
|
709
851
|
/**
|
|
710
852
|
* A ToolRule represents a tool that can be invoked by the agent.
|
|
711
853
|
*/
|
|
@@ -806,6 +948,164 @@ export interface ContinueToolRule {
|
|
|
806
948
|
type?: 'continue_loop';
|
|
807
949
|
}
|
|
808
950
|
|
|
951
|
+
/**
|
|
952
|
+
* Deepseek model configuration (OpenAI-compatible).
|
|
953
|
+
*/
|
|
954
|
+
export interface DeepseekModelSettings {
|
|
955
|
+
/**
|
|
956
|
+
* The maximum number of tokens the model can generate.
|
|
957
|
+
*/
|
|
958
|
+
max_output_tokens?: number;
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
* Whether to enable parallel tool calling.
|
|
962
|
+
*/
|
|
963
|
+
parallel_tool_calls?: boolean;
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* The type of the provider.
|
|
967
|
+
*/
|
|
968
|
+
provider_type?: 'deepseek';
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* The response format for the model.
|
|
972
|
+
*/
|
|
973
|
+
response_format?: TextResponseFormat | JsonSchemaResponseFormat | JsonObjectResponseFormat | null;
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* The temperature of the model.
|
|
977
|
+
*/
|
|
978
|
+
temperature?: number;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
export interface GoogleAIModelSettings {
|
|
982
|
+
/**
|
|
983
|
+
* The maximum number of tokens the model can generate.
|
|
984
|
+
*/
|
|
985
|
+
max_output_tokens?: number;
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* Whether to enable parallel tool calling.
|
|
989
|
+
*/
|
|
990
|
+
parallel_tool_calls?: boolean;
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* The type of the provider.
|
|
994
|
+
*/
|
|
995
|
+
provider_type?: 'google_ai';
|
|
996
|
+
|
|
997
|
+
/**
|
|
998
|
+
* The response schema for the model.
|
|
999
|
+
*/
|
|
1000
|
+
response_schema?: TextResponseFormat | JsonSchemaResponseFormat | JsonObjectResponseFormat | null;
|
|
1001
|
+
|
|
1002
|
+
/**
|
|
1003
|
+
* The temperature of the model.
|
|
1004
|
+
*/
|
|
1005
|
+
temperature?: number;
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* The thinking configuration for the model.
|
|
1009
|
+
*/
|
|
1010
|
+
thinking_config?: GoogleAIModelSettings.ThinkingConfig;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
export namespace GoogleAIModelSettings {
|
|
1014
|
+
/**
|
|
1015
|
+
* The thinking configuration for the model.
|
|
1016
|
+
*/
|
|
1017
|
+
export interface ThinkingConfig {
|
|
1018
|
+
/**
|
|
1019
|
+
* Whether to include thoughts in the model's response.
|
|
1020
|
+
*/
|
|
1021
|
+
include_thoughts?: boolean;
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* The thinking budget for the model.
|
|
1025
|
+
*/
|
|
1026
|
+
thinking_budget?: number;
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
export interface GoogleVertexModelSettings {
|
|
1031
|
+
/**
|
|
1032
|
+
* The maximum number of tokens the model can generate.
|
|
1033
|
+
*/
|
|
1034
|
+
max_output_tokens?: number;
|
|
1035
|
+
|
|
1036
|
+
/**
|
|
1037
|
+
* Whether to enable parallel tool calling.
|
|
1038
|
+
*/
|
|
1039
|
+
parallel_tool_calls?: boolean;
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* The type of the provider.
|
|
1043
|
+
*/
|
|
1044
|
+
provider_type?: 'google_vertex';
|
|
1045
|
+
|
|
1046
|
+
/**
|
|
1047
|
+
* The response schema for the model.
|
|
1048
|
+
*/
|
|
1049
|
+
response_schema?: TextResponseFormat | JsonSchemaResponseFormat | JsonObjectResponseFormat | null;
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* The temperature of the model.
|
|
1053
|
+
*/
|
|
1054
|
+
temperature?: number;
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* The thinking configuration for the model.
|
|
1058
|
+
*/
|
|
1059
|
+
thinking_config?: GoogleVertexModelSettings.ThinkingConfig;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
export namespace GoogleVertexModelSettings {
|
|
1063
|
+
/**
|
|
1064
|
+
* The thinking configuration for the model.
|
|
1065
|
+
*/
|
|
1066
|
+
export interface ThinkingConfig {
|
|
1067
|
+
/**
|
|
1068
|
+
* Whether to include thoughts in the model's response.
|
|
1069
|
+
*/
|
|
1070
|
+
include_thoughts?: boolean;
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* The thinking budget for the model.
|
|
1074
|
+
*/
|
|
1075
|
+
thinking_budget?: number;
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
/**
|
|
1080
|
+
* Groq model configuration (OpenAI-compatible).
|
|
1081
|
+
*/
|
|
1082
|
+
export interface GroqModelSettings {
|
|
1083
|
+
/**
|
|
1084
|
+
* The maximum number of tokens the model can generate.
|
|
1085
|
+
*/
|
|
1086
|
+
max_output_tokens?: number;
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* Whether to enable parallel tool calling.
|
|
1090
|
+
*/
|
|
1091
|
+
parallel_tool_calls?: boolean;
|
|
1092
|
+
|
|
1093
|
+
/**
|
|
1094
|
+
* The type of the provider.
|
|
1095
|
+
*/
|
|
1096
|
+
provider_type?: 'groq';
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* The response format for the model.
|
|
1100
|
+
*/
|
|
1101
|
+
response_format?: TextResponseFormat | JsonSchemaResponseFormat | JsonObjectResponseFormat | null;
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* The temperature of the model.
|
|
1105
|
+
*/
|
|
1106
|
+
temperature?: number;
|
|
1107
|
+
}
|
|
1108
|
+
|
|
809
1109
|
/**
|
|
810
1110
|
* Represents the initial tool rule configuration.
|
|
811
1111
|
*/
|
|
@@ -939,6 +1239,50 @@ export interface MessageCreate {
|
|
|
939
1239
|
type?: 'message' | null;
|
|
940
1240
|
}
|
|
941
1241
|
|
|
1242
|
+
export interface OpenAIModelSettings {
|
|
1243
|
+
/**
|
|
1244
|
+
* The maximum number of tokens the model can generate.
|
|
1245
|
+
*/
|
|
1246
|
+
max_output_tokens?: number;
|
|
1247
|
+
|
|
1248
|
+
/**
|
|
1249
|
+
* Whether to enable parallel tool calling.
|
|
1250
|
+
*/
|
|
1251
|
+
parallel_tool_calls?: boolean;
|
|
1252
|
+
|
|
1253
|
+
/**
|
|
1254
|
+
* The type of the provider.
|
|
1255
|
+
*/
|
|
1256
|
+
provider_type?: 'openai';
|
|
1257
|
+
|
|
1258
|
+
/**
|
|
1259
|
+
* The reasoning configuration for the model.
|
|
1260
|
+
*/
|
|
1261
|
+
reasoning?: OpenAIModelSettings.Reasoning;
|
|
1262
|
+
|
|
1263
|
+
/**
|
|
1264
|
+
* The response format for the model.
|
|
1265
|
+
*/
|
|
1266
|
+
response_format?: TextResponseFormat | JsonSchemaResponseFormat | JsonObjectResponseFormat | null;
|
|
1267
|
+
|
|
1268
|
+
/**
|
|
1269
|
+
* The temperature of the model.
|
|
1270
|
+
*/
|
|
1271
|
+
temperature?: number;
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
export namespace OpenAIModelSettings {
|
|
1275
|
+
/**
|
|
1276
|
+
* The reasoning configuration for the model.
|
|
1277
|
+
*/
|
|
1278
|
+
export interface Reasoning {
|
|
1279
|
+
/**
|
|
1280
|
+
* The reasoning effort to use when generating text reasoning models
|
|
1281
|
+
*/
|
|
1282
|
+
reasoning_effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high';
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
|
|
942
1286
|
/**
|
|
943
1287
|
* A ToolRule that only allows a child tool to be called if the parent has been
|
|
944
1288
|
* called.
|
|
@@ -1027,11 +1371,67 @@ export interface TextResponseFormat {
|
|
|
1027
1371
|
type?: 'text';
|
|
1028
1372
|
}
|
|
1029
1373
|
|
|
1030
|
-
|
|
1374
|
+
/**
|
|
1375
|
+
* Together AI model configuration (OpenAI-compatible).
|
|
1376
|
+
*/
|
|
1377
|
+
export interface TogetherModelSettings {
|
|
1378
|
+
/**
|
|
1379
|
+
* The maximum number of tokens the model can generate.
|
|
1380
|
+
*/
|
|
1381
|
+
max_output_tokens?: number;
|
|
1031
1382
|
|
|
1032
|
-
|
|
1383
|
+
/**
|
|
1384
|
+
* Whether to enable parallel tool calling.
|
|
1385
|
+
*/
|
|
1386
|
+
parallel_tool_calls?: boolean;
|
|
1033
1387
|
|
|
1034
|
-
|
|
1388
|
+
/**
|
|
1389
|
+
* The type of the provider.
|
|
1390
|
+
*/
|
|
1391
|
+
provider_type?: 'together';
|
|
1392
|
+
|
|
1393
|
+
/**
|
|
1394
|
+
* The response format for the model.
|
|
1395
|
+
*/
|
|
1396
|
+
response_format?: TextResponseFormat | JsonSchemaResponseFormat | JsonObjectResponseFormat | null;
|
|
1397
|
+
|
|
1398
|
+
/**
|
|
1399
|
+
* The temperature of the model.
|
|
1400
|
+
*/
|
|
1401
|
+
temperature?: number;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* xAI model configuration (OpenAI-compatible).
|
|
1406
|
+
*/
|
|
1407
|
+
export interface XaiModelSettings {
|
|
1408
|
+
/**
|
|
1409
|
+
* The maximum number of tokens the model can generate.
|
|
1410
|
+
*/
|
|
1411
|
+
max_output_tokens?: number;
|
|
1412
|
+
|
|
1413
|
+
/**
|
|
1414
|
+
* Whether to enable parallel tool calling.
|
|
1415
|
+
*/
|
|
1416
|
+
parallel_tool_calls?: boolean;
|
|
1417
|
+
|
|
1418
|
+
/**
|
|
1419
|
+
* The type of the provider.
|
|
1420
|
+
*/
|
|
1421
|
+
provider_type?: 'xai';
|
|
1422
|
+
|
|
1423
|
+
/**
|
|
1424
|
+
* The response format for the model.
|
|
1425
|
+
*/
|
|
1426
|
+
response_format?: TextResponseFormat | JsonSchemaResponseFormat | JsonObjectResponseFormat | null;
|
|
1427
|
+
|
|
1428
|
+
/**
|
|
1429
|
+
* The temperature of the model.
|
|
1430
|
+
*/
|
|
1431
|
+
temperature?: number;
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
export type AgentDeleteResponse = unknown;
|
|
1035
1435
|
|
|
1036
1436
|
export type AgentExportFileResponse = string;
|
|
1037
1437
|
|
|
@@ -1047,241 +1447,270 @@ export interface AgentImportFileResponse {
|
|
|
1047
1447
|
|
|
1048
1448
|
export interface AgentCreateParams {
|
|
1049
1449
|
/**
|
|
1050
|
-
*
|
|
1450
|
+
* The type of agent.
|
|
1051
1451
|
*/
|
|
1052
1452
|
agent_type?: AgentType;
|
|
1053
1453
|
|
|
1054
1454
|
/**
|
|
1055
|
-
*
|
|
1455
|
+
* @deprecated Deprecated: No longer used. The base template id of the agent.
|
|
1056
1456
|
*/
|
|
1057
1457
|
base_template_id?: string | null;
|
|
1058
1458
|
|
|
1059
1459
|
/**
|
|
1060
|
-
*
|
|
1460
|
+
* The ids of the blocks used by the agent.
|
|
1061
1461
|
*/
|
|
1062
1462
|
block_ids?: Array<string> | null;
|
|
1063
1463
|
|
|
1064
1464
|
/**
|
|
1065
|
-
*
|
|
1465
|
+
* The context window limit used by the agent.
|
|
1066
1466
|
*/
|
|
1067
1467
|
context_window_limit?: number | null;
|
|
1068
1468
|
|
|
1069
1469
|
/**
|
|
1070
|
-
*
|
|
1470
|
+
* The description of the agent.
|
|
1071
1471
|
*/
|
|
1072
1472
|
description?: string | null;
|
|
1073
1473
|
|
|
1074
1474
|
/**
|
|
1075
|
-
*
|
|
1076
|
-
* the format provider/model-name.
|
|
1475
|
+
* The embedding model handle used by the agent (format: provider/model-name).
|
|
1077
1476
|
*/
|
|
1078
1477
|
embedding?: string | null;
|
|
1079
1478
|
|
|
1080
1479
|
/**
|
|
1081
|
-
*
|
|
1480
|
+
* @deprecated Deprecated: No longer used. The embedding chunk size used by the
|
|
1481
|
+
* agent.
|
|
1082
1482
|
*/
|
|
1083
1483
|
embedding_chunk_size?: number | null;
|
|
1084
1484
|
|
|
1085
1485
|
/**
|
|
1086
|
-
*
|
|
1087
|
-
* parameters.
|
|
1486
|
+
* Configuration for embedding model connection and processing parameters.
|
|
1088
1487
|
*/
|
|
1089
1488
|
embedding_config?: ModelsAPI.EmbeddingConfig | null;
|
|
1090
1489
|
|
|
1091
1490
|
/**
|
|
1092
|
-
*
|
|
1093
|
-
* model.
|
|
1491
|
+
* @deprecated Deprecated: Use `model` field to configure reasoning instead.
|
|
1492
|
+
* Whether to enable internal extended thinking step for a reasoner model.
|
|
1094
1493
|
*/
|
|
1095
1494
|
enable_reasoner?: boolean | null;
|
|
1096
1495
|
|
|
1097
1496
|
/**
|
|
1098
|
-
*
|
|
1099
|
-
* thread.
|
|
1497
|
+
* If set to True, memory management will move to a background agent thread.
|
|
1100
1498
|
*/
|
|
1101
1499
|
enable_sleeptime?: boolean | null;
|
|
1102
1500
|
|
|
1103
1501
|
/**
|
|
1104
|
-
*
|
|
1502
|
+
* The ids of the folders used by the agent.
|
|
1503
|
+
*/
|
|
1504
|
+
folder_ids?: Array<string> | null;
|
|
1505
|
+
|
|
1506
|
+
/**
|
|
1507
|
+
* @deprecated Deprecated: please use the 'create agents from a template' endpoint
|
|
1105
1508
|
* instead.
|
|
1106
1509
|
*/
|
|
1107
1510
|
from_template?: string | null;
|
|
1108
1511
|
|
|
1109
1512
|
/**
|
|
1110
|
-
*
|
|
1513
|
+
* @deprecated Deprecated: No longer used. If set to True, the agent will be
|
|
1514
|
+
* hidden.
|
|
1111
1515
|
*/
|
|
1112
1516
|
hidden?: boolean | null;
|
|
1113
1517
|
|
|
1114
1518
|
/**
|
|
1115
|
-
*
|
|
1519
|
+
* The ids of the identities associated with this agent.
|
|
1116
1520
|
*/
|
|
1117
1521
|
identity_ids?: Array<string> | null;
|
|
1118
1522
|
|
|
1119
1523
|
/**
|
|
1120
|
-
*
|
|
1121
|
-
*
|
|
1524
|
+
* If true, attaches the Letta base tool rules (e.g. deny all tools not explicitly
|
|
1525
|
+
* allowed).
|
|
1122
1526
|
*/
|
|
1123
1527
|
include_base_tool_rules?: boolean | null;
|
|
1124
1528
|
|
|
1125
1529
|
/**
|
|
1126
|
-
*
|
|
1127
|
-
* functions).
|
|
1530
|
+
* If true, attaches the Letta core tools (e.g. core_memory related functions).
|
|
1128
1531
|
*/
|
|
1129
1532
|
include_base_tools?: boolean;
|
|
1130
1533
|
|
|
1131
1534
|
/**
|
|
1132
|
-
*
|
|
1535
|
+
* @deprecated If true, automatically creates and attaches a default data source
|
|
1133
1536
|
* for this agent.
|
|
1134
1537
|
*/
|
|
1135
1538
|
include_default_source?: boolean;
|
|
1136
1539
|
|
|
1137
1540
|
/**
|
|
1138
|
-
*
|
|
1139
|
-
*
|
|
1541
|
+
* If true, attaches the Letta multi-agent tools (e.g. sending a message to another
|
|
1542
|
+
* agent).
|
|
1140
1543
|
*/
|
|
1141
1544
|
include_multi_agent_tools?: boolean;
|
|
1142
1545
|
|
|
1143
1546
|
/**
|
|
1144
|
-
*
|
|
1547
|
+
* The initial set of messages to put in the agent's in-context memory.
|
|
1145
1548
|
*/
|
|
1146
1549
|
initial_message_sequence?: Array<MessageCreate> | null;
|
|
1147
1550
|
|
|
1148
1551
|
/**
|
|
1149
|
-
*
|
|
1150
|
-
*
|
|
1552
|
+
* Configuration for Language Model (LLM) connection and generation parameters.
|
|
1553
|
+
*
|
|
1554
|
+
* .. deprecated:: LLMConfig is deprecated and should not be used as an input or
|
|
1555
|
+
* return type in API calls. Use the schemas in letta.schemas.model (ModelSettings,
|
|
1556
|
+
* OpenAIModelSettings, etc.) instead. For conversion, use the \_to_model() method
|
|
1557
|
+
* or Model.\_from_llm_config() method.
|
|
1151
1558
|
*/
|
|
1152
1559
|
llm_config?: ModelsAPI.LlmConfig | null;
|
|
1153
1560
|
|
|
1154
1561
|
/**
|
|
1155
|
-
*
|
|
1156
|
-
*
|
|
1562
|
+
* Maximum number of files that can be open at once for this agent. Setting this
|
|
1563
|
+
* too high may exceed the context window, which will break the agent.
|
|
1157
1564
|
*/
|
|
1158
1565
|
max_files_open?: number | null;
|
|
1159
1566
|
|
|
1160
1567
|
/**
|
|
1161
|
-
*
|
|
1162
|
-
*
|
|
1568
|
+
* @deprecated Deprecated: Use `model` field to configure reasoning tokens instead.
|
|
1569
|
+
* The maximum number of tokens to generate for reasoning step.
|
|
1163
1570
|
*/
|
|
1164
1571
|
max_reasoning_tokens?: number | null;
|
|
1165
1572
|
|
|
1166
1573
|
/**
|
|
1167
|
-
*
|
|
1168
|
-
*
|
|
1574
|
+
* @deprecated Deprecated: Use `model` field to configure max output tokens
|
|
1575
|
+
* instead. The maximum number of tokens to generate, including reasoning step.
|
|
1169
1576
|
*/
|
|
1170
1577
|
max_tokens?: number | null;
|
|
1171
1578
|
|
|
1172
1579
|
/**
|
|
1173
|
-
*
|
|
1580
|
+
* The blocks to create in the agent's in-context memory.
|
|
1174
1581
|
*/
|
|
1175
1582
|
memory_blocks?: Array<BlocksBlocksAPI.CreateBlock> | null;
|
|
1176
1583
|
|
|
1177
1584
|
/**
|
|
1178
|
-
*
|
|
1585
|
+
* @deprecated Deprecated: Only relevant for creating agents from a template. Use
|
|
1586
|
+
* the 'create agents from a template' endpoint instead.
|
|
1179
1587
|
*/
|
|
1180
1588
|
memory_variables?: { [key: string]: string } | null;
|
|
1181
1589
|
|
|
1182
1590
|
/**
|
|
1183
|
-
*
|
|
1184
|
-
*
|
|
1185
|
-
*
|
|
1591
|
+
* If set to True, the agent will not remember previous messages (though the agent
|
|
1592
|
+
* will still retain state via core memory blocks and archival/recall memory). Not
|
|
1593
|
+
* recommended unless you have an advanced use case.
|
|
1186
1594
|
*/
|
|
1187
1595
|
message_buffer_autoclear?: boolean;
|
|
1188
1596
|
|
|
1189
1597
|
/**
|
|
1190
|
-
*
|
|
1598
|
+
* The metadata of the agent.
|
|
1191
1599
|
*/
|
|
1192
1600
|
metadata?: { [key: string]: unknown } | null;
|
|
1193
1601
|
|
|
1194
1602
|
/**
|
|
1195
|
-
*
|
|
1196
|
-
* format provider/model-name, as an alternative to specifying llm_config.
|
|
1603
|
+
* The model handle for the agent to use (format: provider/model-name).
|
|
1197
1604
|
*/
|
|
1198
1605
|
model?: string | null;
|
|
1199
1606
|
|
|
1200
1607
|
/**
|
|
1201
|
-
*
|
|
1608
|
+
* The model settings for the agent.
|
|
1609
|
+
*/
|
|
1610
|
+
model_settings?:
|
|
1611
|
+
| OpenAIModelSettings
|
|
1612
|
+
| AnthropicModelSettings
|
|
1613
|
+
| GoogleAIModelSettings
|
|
1614
|
+
| GoogleVertexModelSettings
|
|
1615
|
+
| AzureModelSettings
|
|
1616
|
+
| XaiModelSettings
|
|
1617
|
+
| GroqModelSettings
|
|
1618
|
+
| DeepseekModelSettings
|
|
1619
|
+
| TogetherModelSettings
|
|
1620
|
+
| BedrockModelSettings
|
|
1621
|
+
| null;
|
|
1622
|
+
|
|
1623
|
+
/**
|
|
1624
|
+
* The name of the agent.
|
|
1202
1625
|
*/
|
|
1203
1626
|
name?: string;
|
|
1204
1627
|
|
|
1205
1628
|
/**
|
|
1206
|
-
*
|
|
1629
|
+
* @deprecated Deprecated: Use `model` field to configure parallel tool calls
|
|
1630
|
+
* instead. If set to True, enables parallel tool calling.
|
|
1207
1631
|
*/
|
|
1208
1632
|
parallel_tool_calls?: boolean | null;
|
|
1209
1633
|
|
|
1210
1634
|
/**
|
|
1211
|
-
*
|
|
1212
|
-
*
|
|
1635
|
+
* The per-file view window character limit for this agent. Setting this too high
|
|
1636
|
+
* may exceed the context window, which will break the agent.
|
|
1213
1637
|
*/
|
|
1214
1638
|
per_file_view_window_char_limit?: number | null;
|
|
1215
1639
|
|
|
1216
1640
|
/**
|
|
1217
|
-
* @deprecated
|
|
1218
|
-
*
|
|
1219
|
-
*
|
|
1641
|
+
* @deprecated Deprecated: Project should now be passed via the X-Project header
|
|
1642
|
+
* instead of in the request body. If using the SDK, this can be done via the
|
|
1643
|
+
* x_project parameter.
|
|
1220
1644
|
*/
|
|
1221
1645
|
project?: string | null;
|
|
1222
1646
|
|
|
1223
1647
|
/**
|
|
1224
|
-
*
|
|
1648
|
+
* @deprecated Deprecated: No longer used. The id of the project the agent belongs
|
|
1649
|
+
* to.
|
|
1225
1650
|
*/
|
|
1226
1651
|
project_id?: string | null;
|
|
1227
1652
|
|
|
1228
1653
|
/**
|
|
1229
|
-
*
|
|
1654
|
+
* @deprecated Deprecated: Use `model` field to configure reasoning instead.
|
|
1655
|
+
* Whether to enable reasoning for this agent.
|
|
1230
1656
|
*/
|
|
1231
1657
|
reasoning?: boolean | null;
|
|
1232
1658
|
|
|
1233
1659
|
/**
|
|
1234
|
-
*
|
|
1660
|
+
* The response format for the agent.
|
|
1235
1661
|
*/
|
|
1236
1662
|
response_format?: TextResponseFormat | JsonSchemaResponseFormat | JsonObjectResponseFormat | null;
|
|
1237
1663
|
|
|
1238
1664
|
/**
|
|
1239
|
-
*
|
|
1665
|
+
* The environment variables for tool execution specific to this agent.
|
|
1240
1666
|
*/
|
|
1241
1667
|
secrets?: { [key: string]: string } | null;
|
|
1242
1668
|
|
|
1243
1669
|
/**
|
|
1244
|
-
*
|
|
1670
|
+
* @deprecated Deprecated: Use `folder_ids` field instead. The ids of the sources
|
|
1671
|
+
* used by the agent.
|
|
1245
1672
|
*/
|
|
1246
1673
|
source_ids?: Array<string> | null;
|
|
1247
1674
|
|
|
1248
1675
|
/**
|
|
1249
|
-
*
|
|
1676
|
+
* The system prompt used by the agent.
|
|
1250
1677
|
*/
|
|
1251
1678
|
system?: string | null;
|
|
1252
1679
|
|
|
1253
1680
|
/**
|
|
1254
|
-
*
|
|
1681
|
+
* The tags associated with the agent.
|
|
1255
1682
|
*/
|
|
1256
1683
|
tags?: Array<string> | null;
|
|
1257
1684
|
|
|
1258
1685
|
/**
|
|
1259
|
-
*
|
|
1686
|
+
* @deprecated Deprecated: No longer used.
|
|
1260
1687
|
*/
|
|
1261
1688
|
template?: boolean;
|
|
1262
1689
|
|
|
1263
1690
|
/**
|
|
1264
|
-
*
|
|
1691
|
+
* @deprecated Deprecated: No longer used. The id of the template the agent belongs
|
|
1692
|
+
* to.
|
|
1265
1693
|
*/
|
|
1266
1694
|
template_id?: string | null;
|
|
1267
1695
|
|
|
1268
1696
|
/**
|
|
1269
|
-
*
|
|
1697
|
+
* The timezone of the agent (IANA format).
|
|
1270
1698
|
*/
|
|
1271
1699
|
timezone?: string | null;
|
|
1272
1700
|
|
|
1273
1701
|
/**
|
|
1274
|
-
*
|
|
1702
|
+
* @deprecated Deprecated: Use `secrets` field instead. Environment variables for
|
|
1703
|
+
* tool execution.
|
|
1275
1704
|
*/
|
|
1276
1705
|
tool_exec_environment_variables?: { [key: string]: string } | null;
|
|
1277
1706
|
|
|
1278
1707
|
/**
|
|
1279
|
-
*
|
|
1708
|
+
* The ids of the tools used by the agent.
|
|
1280
1709
|
*/
|
|
1281
1710
|
tool_ids?: Array<string> | null;
|
|
1282
1711
|
|
|
1283
1712
|
/**
|
|
1284
|
-
*
|
|
1713
|
+
* The tool rules governing the agent.
|
|
1285
1714
|
*/
|
|
1286
1715
|
tool_rules?: Array<
|
|
1287
1716
|
| ChildToolRule
|
|
@@ -1296,14 +1725,9 @@ export interface AgentCreateParams {
|
|
|
1296
1725
|
> | null;
|
|
1297
1726
|
|
|
1298
1727
|
/**
|
|
1299
|
-
*
|
|
1728
|
+
* The tools used by the agent.
|
|
1300
1729
|
*/
|
|
1301
1730
|
tools?: Array<string> | null;
|
|
1302
|
-
|
|
1303
|
-
/**
|
|
1304
|
-
* Header param: The project slug to associate with the agent (cloud only).
|
|
1305
|
-
*/
|
|
1306
|
-
'X-Project'?: string;
|
|
1307
1731
|
}
|
|
1308
1732
|
|
|
1309
1733
|
export interface AgentRetrieveParams {
|
|
@@ -1352,8 +1776,7 @@ export interface AgentUpdateParams {
|
|
|
1352
1776
|
description?: string | null;
|
|
1353
1777
|
|
|
1354
1778
|
/**
|
|
1355
|
-
* The embedding
|
|
1356
|
-
* provider/model-name.
|
|
1779
|
+
* The embedding model handle used by the agent (format: provider/model-name).
|
|
1357
1780
|
*/
|
|
1358
1781
|
embedding?: string | null;
|
|
1359
1782
|
|
|
@@ -1367,6 +1790,11 @@ export interface AgentUpdateParams {
|
|
|
1367
1790
|
*/
|
|
1368
1791
|
enable_sleeptime?: boolean | null;
|
|
1369
1792
|
|
|
1793
|
+
/**
|
|
1794
|
+
* The ids of the folders used by the agent.
|
|
1795
|
+
*/
|
|
1796
|
+
folder_ids?: Array<string> | null;
|
|
1797
|
+
|
|
1370
1798
|
/**
|
|
1371
1799
|
* If set to True, the agent will be hidden.
|
|
1372
1800
|
*/
|
|
@@ -1387,8 +1815,18 @@ export interface AgentUpdateParams {
|
|
|
1387
1815
|
*/
|
|
1388
1816
|
last_run_duration_ms?: number | null;
|
|
1389
1817
|
|
|
1818
|
+
/**
|
|
1819
|
+
* The stop reason from the agent's last run.
|
|
1820
|
+
*/
|
|
1821
|
+
last_stop_reason?: RunsAPI.StopReasonType | null;
|
|
1822
|
+
|
|
1390
1823
|
/**
|
|
1391
1824
|
* Configuration for Language Model (LLM) connection and generation parameters.
|
|
1825
|
+
*
|
|
1826
|
+
* .. deprecated:: LLMConfig is deprecated and should not be used as an input or
|
|
1827
|
+
* return type in API calls. Use the schemas in letta.schemas.model (ModelSettings,
|
|
1828
|
+
* OpenAIModelSettings, etc.) instead. For conversion, use the \_to_model() method
|
|
1829
|
+
* or Model.\_from_llm_config() method.
|
|
1392
1830
|
*/
|
|
1393
1831
|
llm_config?: ModelsAPI.LlmConfig | null;
|
|
1394
1832
|
|
|
@@ -1399,8 +1837,8 @@ export interface AgentUpdateParams {
|
|
|
1399
1837
|
max_files_open?: number | null;
|
|
1400
1838
|
|
|
1401
1839
|
/**
|
|
1402
|
-
*
|
|
1403
|
-
*
|
|
1840
|
+
* @deprecated Deprecated: Use `model` field to configure max output tokens
|
|
1841
|
+
* instead. The maximum number of tokens to generate, including reasoning step.
|
|
1404
1842
|
*/
|
|
1405
1843
|
max_tokens?: number | null;
|
|
1406
1844
|
|
|
@@ -1422,18 +1860,34 @@ export interface AgentUpdateParams {
|
|
|
1422
1860
|
metadata?: { [key: string]: unknown } | null;
|
|
1423
1861
|
|
|
1424
1862
|
/**
|
|
1425
|
-
* The
|
|
1426
|
-
* provider/model-name, as an alternative to specifying llm_config.
|
|
1863
|
+
* The model handle used by the agent (format: provider/model-name).
|
|
1427
1864
|
*/
|
|
1428
1865
|
model?: string | null;
|
|
1429
1866
|
|
|
1867
|
+
/**
|
|
1868
|
+
* The model settings for the agent.
|
|
1869
|
+
*/
|
|
1870
|
+
model_settings?:
|
|
1871
|
+
| OpenAIModelSettings
|
|
1872
|
+
| AnthropicModelSettings
|
|
1873
|
+
| GoogleAIModelSettings
|
|
1874
|
+
| GoogleVertexModelSettings
|
|
1875
|
+
| AzureModelSettings
|
|
1876
|
+
| XaiModelSettings
|
|
1877
|
+
| GroqModelSettings
|
|
1878
|
+
| DeepseekModelSettings
|
|
1879
|
+
| TogetherModelSettings
|
|
1880
|
+
| BedrockModelSettings
|
|
1881
|
+
| null;
|
|
1882
|
+
|
|
1430
1883
|
/**
|
|
1431
1884
|
* The name of the agent.
|
|
1432
1885
|
*/
|
|
1433
1886
|
name?: string | null;
|
|
1434
1887
|
|
|
1435
1888
|
/**
|
|
1436
|
-
*
|
|
1889
|
+
* @deprecated Deprecated: Use `model` field to configure parallel tool calls
|
|
1890
|
+
* instead. If set to True, enables parallel tool calling.
|
|
1437
1891
|
*/
|
|
1438
1892
|
parallel_tool_calls?: boolean | null;
|
|
1439
1893
|
|
|
@@ -1449,11 +1903,13 @@ export interface AgentUpdateParams {
|
|
|
1449
1903
|
project_id?: string | null;
|
|
1450
1904
|
|
|
1451
1905
|
/**
|
|
1906
|
+
* @deprecated Deprecated: Use `model` field to configure reasoning instead.
|
|
1452
1907
|
* Whether to enable reasoning for this agent.
|
|
1453
1908
|
*/
|
|
1454
1909
|
reasoning?: boolean | null;
|
|
1455
1910
|
|
|
1456
1911
|
/**
|
|
1912
|
+
* @deprecated Deprecated: Use `model` field to configure response format instead.
|
|
1457
1913
|
* The response format for the agent.
|
|
1458
1914
|
*/
|
|
1459
1915
|
response_format?: TextResponseFormat | JsonSchemaResponseFormat | JsonObjectResponseFormat | null;
|
|
@@ -1464,7 +1920,8 @@ export interface AgentUpdateParams {
|
|
|
1464
1920
|
secrets?: { [key: string]: string } | null;
|
|
1465
1921
|
|
|
1466
1922
|
/**
|
|
1467
|
-
* The ids of the sources
|
|
1923
|
+
* @deprecated Deprecated: Use `folder_ids` field instead. The ids of the sources
|
|
1924
|
+
* used by the agent.
|
|
1468
1925
|
*/
|
|
1469
1926
|
source_ids?: Array<string> | null;
|
|
1470
1927
|
|
|
@@ -1514,12 +1971,7 @@ export interface AgentUpdateParams {
|
|
|
1514
1971
|
> | null;
|
|
1515
1972
|
}
|
|
1516
1973
|
|
|
1517
|
-
export interface AgentListParams {
|
|
1518
|
-
/**
|
|
1519
|
-
* Cursor for pagination
|
|
1520
|
-
*/
|
|
1521
|
-
after?: string | null;
|
|
1522
|
-
|
|
1974
|
+
export interface AgentListParams extends ArrayPageParams {
|
|
1523
1975
|
/**
|
|
1524
1976
|
* @deprecated Whether to sort agents oldest to newest (True) or newest to oldest
|
|
1525
1977
|
* (False, default)
|
|
@@ -1531,11 +1983,6 @@ export interface AgentListParams {
|
|
|
1531
1983
|
*/
|
|
1532
1984
|
base_template_id?: string | null;
|
|
1533
1985
|
|
|
1534
|
-
/**
|
|
1535
|
-
* Cursor for pagination
|
|
1536
|
-
*/
|
|
1537
|
-
before?: string | null;
|
|
1538
|
-
|
|
1539
1986
|
/**
|
|
1540
1987
|
* Search agents by identifier keys
|
|
1541
1988
|
*/
|
|
@@ -1569,9 +2016,9 @@ export interface AgentListParams {
|
|
|
1569
2016
|
include_relationships?: Array<string> | null;
|
|
1570
2017
|
|
|
1571
2018
|
/**
|
|
1572
|
-
*
|
|
2019
|
+
* Filter agents by their last stop reason.
|
|
1573
2020
|
*/
|
|
1574
|
-
|
|
2021
|
+
last_stop_reason?: RunsAPI.StopReasonType | null;
|
|
1575
2022
|
|
|
1576
2023
|
/**
|
|
1577
2024
|
* If True, only returns agents that match ALL given tags. Otherwise, return agents
|
|
@@ -1584,17 +2031,6 @@ export interface AgentListParams {
|
|
|
1584
2031
|
*/
|
|
1585
2032
|
name?: string | null;
|
|
1586
2033
|
|
|
1587
|
-
/**
|
|
1588
|
-
* Sort order for agents by creation time. 'asc' for oldest first, 'desc' for
|
|
1589
|
-
* newest first
|
|
1590
|
-
*/
|
|
1591
|
-
order?: 'asc' | 'desc';
|
|
1592
|
-
|
|
1593
|
-
/**
|
|
1594
|
-
* Field to sort by
|
|
1595
|
-
*/
|
|
1596
|
-
order_by?: 'created_at' | 'last_run_completion';
|
|
1597
|
-
|
|
1598
2034
|
/**
|
|
1599
2035
|
* Search agents by project ID - this will default to your default project on cloud
|
|
1600
2036
|
*/
|
|
@@ -1649,13 +2085,24 @@ export interface AgentImportFileParams {
|
|
|
1649
2085
|
append_copy_suffix?: boolean;
|
|
1650
2086
|
|
|
1651
2087
|
/**
|
|
1652
|
-
* Body param:
|
|
1653
|
-
|
|
2088
|
+
* Body param: Embedding handle to override with.
|
|
2089
|
+
*/
|
|
2090
|
+
embedding?: string | null;
|
|
2091
|
+
|
|
2092
|
+
/**
|
|
2093
|
+
* @deprecated Body param: Environment variables as a JSON string to pass to the
|
|
2094
|
+
* agent for tool execution. Use 'secrets' instead.
|
|
1654
2095
|
*/
|
|
1655
2096
|
env_vars_json?: string | null;
|
|
1656
2097
|
|
|
1657
2098
|
/**
|
|
1658
|
-
* Body param:
|
|
2099
|
+
* Body param: If provided, overrides the agent name with this value.
|
|
2100
|
+
*/
|
|
2101
|
+
name?: string | null;
|
|
2102
|
+
|
|
2103
|
+
/**
|
|
2104
|
+
* @deprecated Body param: Override import with specific embedding handle. Use
|
|
2105
|
+
* 'embedding' instead.
|
|
1659
2106
|
*/
|
|
1660
2107
|
override_embedding_handle?: string | null;
|
|
1661
2108
|
|
|
@@ -1667,15 +2114,22 @@ export interface AgentImportFileParams {
|
|
|
1667
2114
|
override_existing_tools?: boolean;
|
|
1668
2115
|
|
|
1669
2116
|
/**
|
|
1670
|
-
* Body param: If provided, overrides the agent name with this value.
|
|
2117
|
+
* @deprecated Body param: If provided, overrides the agent name with this value.
|
|
2118
|
+
* Use 'name' instead.
|
|
1671
2119
|
*/
|
|
1672
2120
|
override_name?: string | null;
|
|
1673
2121
|
|
|
1674
2122
|
/**
|
|
1675
|
-
* Body param: The project ID to associate the uploaded agent with.
|
|
2123
|
+
* @deprecated Body param: The project ID to associate the uploaded agent with.
|
|
2124
|
+
* This is now passed via headers.
|
|
1676
2125
|
*/
|
|
1677
2126
|
project_id?: string | null;
|
|
1678
2127
|
|
|
2128
|
+
/**
|
|
2129
|
+
* Body param: Secrets as a JSON string to pass to the agent for tool execution.
|
|
2130
|
+
*/
|
|
2131
|
+
secrets?: string | null;
|
|
2132
|
+
|
|
1679
2133
|
/**
|
|
1680
2134
|
* Body param: If set to True, strips all messages from the agent before importing.
|
|
1681
2135
|
*/
|
|
@@ -1687,37 +2141,48 @@ export interface AgentImportFileParams {
|
|
|
1687
2141
|
'x-override-embedding-model'?: string;
|
|
1688
2142
|
}
|
|
1689
2143
|
|
|
2144
|
+
Agents.Messages = Messages;
|
|
2145
|
+
Agents.Blocks = Blocks;
|
|
1690
2146
|
Agents.Tools = Tools;
|
|
1691
2147
|
Agents.Folders = Folders;
|
|
1692
2148
|
Agents.Files = Files;
|
|
1693
|
-
Agents.Blocks = Blocks;
|
|
1694
2149
|
Agents.Groups = Groups;
|
|
1695
|
-
Agents.
|
|
2150
|
+
Agents.Archives = Archives;
|
|
2151
|
+
Agents.Identities = Identities;
|
|
1696
2152
|
|
|
1697
2153
|
export declare namespace Agents {
|
|
1698
2154
|
export {
|
|
1699
2155
|
type AgentEnvironmentVariable as AgentEnvironmentVariable,
|
|
1700
2156
|
type AgentState as AgentState,
|
|
1701
2157
|
type AgentType as AgentType,
|
|
2158
|
+
type AnthropicModelSettings as AnthropicModelSettings,
|
|
2159
|
+
type AzureModelSettings as AzureModelSettings,
|
|
2160
|
+
type BedrockModelSettings as BedrockModelSettings,
|
|
1702
2161
|
type ChildToolRule as ChildToolRule,
|
|
1703
2162
|
type ConditionalToolRule as ConditionalToolRule,
|
|
1704
2163
|
type ContinueToolRule as ContinueToolRule,
|
|
2164
|
+
type DeepseekModelSettings as DeepseekModelSettings,
|
|
2165
|
+
type GoogleAIModelSettings as GoogleAIModelSettings,
|
|
2166
|
+
type GoogleVertexModelSettings as GoogleVertexModelSettings,
|
|
2167
|
+
type GroqModelSettings as GroqModelSettings,
|
|
1705
2168
|
type InitToolRule as InitToolRule,
|
|
1706
2169
|
type JsonObjectResponseFormat as JsonObjectResponseFormat,
|
|
1707
2170
|
type JsonSchemaResponseFormat as JsonSchemaResponseFormat,
|
|
1708
2171
|
type LettaMessageContentUnion as LettaMessageContentUnion,
|
|
1709
2172
|
type MaxCountPerStepToolRule as MaxCountPerStepToolRule,
|
|
1710
2173
|
type MessageCreate as MessageCreate,
|
|
2174
|
+
type OpenAIModelSettings as OpenAIModelSettings,
|
|
1711
2175
|
type ParentToolRule as ParentToolRule,
|
|
1712
2176
|
type RequiredBeforeExitToolRule as RequiredBeforeExitToolRule,
|
|
1713
2177
|
type RequiresApprovalToolRule as RequiresApprovalToolRule,
|
|
1714
2178
|
type TerminalToolRule as TerminalToolRule,
|
|
1715
2179
|
type TextResponseFormat as TextResponseFormat,
|
|
1716
|
-
type
|
|
2180
|
+
type TogetherModelSettings as TogetherModelSettings,
|
|
2181
|
+
type XaiModelSettings as XaiModelSettings,
|
|
1717
2182
|
type AgentDeleteResponse as AgentDeleteResponse,
|
|
1718
|
-
type AgentCountResponse as AgentCountResponse,
|
|
1719
2183
|
type AgentExportFileResponse as AgentExportFileResponse,
|
|
1720
2184
|
type AgentImportFileResponse as AgentImportFileResponse,
|
|
2185
|
+
type AgentStatesArrayPage as AgentStatesArrayPage,
|
|
1721
2186
|
type AgentCreateParams as AgentCreateParams,
|
|
1722
2187
|
type AgentRetrieveParams as AgentRetrieveParams,
|
|
1723
2188
|
type AgentUpdateParams as AgentUpdateParams,
|
|
@@ -1726,67 +2191,24 @@ export declare namespace Agents {
|
|
|
1726
2191
|
type AgentImportFileParams as AgentImportFileParams,
|
|
1727
2192
|
};
|
|
1728
2193
|
|
|
1729
|
-
export {
|
|
1730
|
-
Tools as Tools,
|
|
1731
|
-
type ToolListResponse as ToolListResponse,
|
|
1732
|
-
type ToolListParams as ToolListParams,
|
|
1733
|
-
type ToolAttachParams as ToolAttachParams,
|
|
1734
|
-
type ToolDetachParams as ToolDetachParams,
|
|
1735
|
-
type ToolUpdateApprovalParams as ToolUpdateApprovalParams,
|
|
1736
|
-
};
|
|
1737
|
-
|
|
1738
|
-
export {
|
|
1739
|
-
Folders as Folders,
|
|
1740
|
-
type FolderListResponse as FolderListResponse,
|
|
1741
|
-
type FolderListParams as FolderListParams,
|
|
1742
|
-
type FolderAttachParams as FolderAttachParams,
|
|
1743
|
-
type FolderDetachParams as FolderDetachParams,
|
|
1744
|
-
};
|
|
1745
|
-
|
|
1746
|
-
export {
|
|
1747
|
-
Files as Files,
|
|
1748
|
-
type FileListResponse as FileListResponse,
|
|
1749
|
-
type FileCloseResponse as FileCloseResponse,
|
|
1750
|
-
type FileCloseAllResponse as FileCloseAllResponse,
|
|
1751
|
-
type FileOpenResponse as FileOpenResponse,
|
|
1752
|
-
type FileListParams as FileListParams,
|
|
1753
|
-
type FileCloseParams as FileCloseParams,
|
|
1754
|
-
type FileOpenParams as FileOpenParams,
|
|
1755
|
-
};
|
|
1756
|
-
|
|
1757
|
-
export {
|
|
1758
|
-
Blocks as Blocks,
|
|
1759
|
-
type Block as Block,
|
|
1760
|
-
type BlockUpdate as BlockUpdate,
|
|
1761
|
-
type BlockListResponse as BlockListResponse,
|
|
1762
|
-
type BlockRetrieveParams as BlockRetrieveParams,
|
|
1763
|
-
type BlockUpdateParams as BlockUpdateParams,
|
|
1764
|
-
type BlockListParams as BlockListParams,
|
|
1765
|
-
type BlockAttachParams as BlockAttachParams,
|
|
1766
|
-
type BlockDetachParams as BlockDetachParams,
|
|
1767
|
-
};
|
|
1768
|
-
|
|
1769
|
-
export {
|
|
1770
|
-
Groups as Groups,
|
|
1771
|
-
type GroupListResponse as GroupListResponse,
|
|
1772
|
-
type GroupListParams as GroupListParams,
|
|
1773
|
-
};
|
|
1774
|
-
|
|
1775
2194
|
export {
|
|
1776
2195
|
Messages as Messages,
|
|
1777
2196
|
type ApprovalCreate as ApprovalCreate,
|
|
1778
2197
|
type ApprovalRequestMessage as ApprovalRequestMessage,
|
|
1779
2198
|
type ApprovalResponseMessage as ApprovalResponseMessage,
|
|
2199
|
+
type ApprovalReturn as ApprovalReturn,
|
|
1780
2200
|
type AssistantMessage as AssistantMessage,
|
|
2201
|
+
type EventMessage as EventMessage,
|
|
1781
2202
|
type HiddenReasoningMessage as HiddenReasoningMessage,
|
|
1782
2203
|
type ImageContent as ImageContent,
|
|
2204
|
+
type InternalMessage as InternalMessage,
|
|
1783
2205
|
type JobStatus as JobStatus,
|
|
1784
2206
|
type JobType as JobType,
|
|
1785
2207
|
type LettaAssistantMessageContentUnion as LettaAssistantMessageContentUnion,
|
|
1786
|
-
type LettaMessageUnion as LettaMessageUnion,
|
|
1787
2208
|
type LettaRequest as LettaRequest,
|
|
1788
2209
|
type LettaResponse as LettaResponse,
|
|
1789
2210
|
type LettaStreamingRequest as LettaStreamingRequest,
|
|
2211
|
+
type LettaStreamingResponse as LettaStreamingResponse,
|
|
1790
2212
|
type LettaUserMessageContentUnion as LettaUserMessageContentUnion,
|
|
1791
2213
|
type Message as Message,
|
|
1792
2214
|
type MessageRole as MessageRole,
|
|
@@ -1796,6 +2218,7 @@ export declare namespace Agents {
|
|
|
1796
2218
|
type ReasoningMessage as ReasoningMessage,
|
|
1797
2219
|
type RedactedReasoningContent as RedactedReasoningContent,
|
|
1798
2220
|
type Run as Run,
|
|
2221
|
+
type SummaryMessage as SummaryMessage,
|
|
1799
2222
|
type SystemMessage as SystemMessage,
|
|
1800
2223
|
type TextContent as TextContent,
|
|
1801
2224
|
type ToolCall as ToolCall,
|
|
@@ -1809,16 +2232,73 @@ export declare namespace Agents {
|
|
|
1809
2232
|
type UpdateSystemMessage as UpdateSystemMessage,
|
|
1810
2233
|
type UpdateUserMessage as UpdateUserMessage,
|
|
1811
2234
|
type UserMessage as UserMessage,
|
|
1812
|
-
type MessageUpdateResponse as MessageUpdateResponse,
|
|
1813
|
-
type MessageListResponse as MessageListResponse,
|
|
1814
2235
|
type MessageCancelResponse as MessageCancelResponse,
|
|
1815
|
-
type
|
|
1816
|
-
type
|
|
2236
|
+
type MessagesArrayPage as MessagesArrayPage,
|
|
2237
|
+
type MessageCreateParams as MessageCreateParams,
|
|
2238
|
+
type MessageCreateParamsNonStreaming as MessageCreateParamsNonStreaming,
|
|
2239
|
+
type MessageCreateParamsStreaming as MessageCreateParamsStreaming,
|
|
1817
2240
|
type MessageListParams as MessageListParams,
|
|
1818
2241
|
type MessageCancelParams as MessageCancelParams,
|
|
2242
|
+
type MessageCreateAsyncParams as MessageCreateAsyncParams,
|
|
1819
2243
|
type MessageResetParams as MessageResetParams,
|
|
1820
|
-
type MessageSendParams as MessageSendParams,
|
|
1821
|
-
type MessageSendAsyncParams as MessageSendAsyncParams,
|
|
1822
2244
|
type MessageStreamParams as MessageStreamParams,
|
|
1823
2245
|
};
|
|
2246
|
+
|
|
2247
|
+
export {
|
|
2248
|
+
Blocks as Blocks,
|
|
2249
|
+
type Block as Block,
|
|
2250
|
+
type BlockUpdate as BlockUpdate,
|
|
2251
|
+
type BlockRetrieveParams as BlockRetrieveParams,
|
|
2252
|
+
type BlockUpdateParams as BlockUpdateParams,
|
|
2253
|
+
type BlockListParams as BlockListParams,
|
|
2254
|
+
type BlockAttachParams as BlockAttachParams,
|
|
2255
|
+
type BlockDetachParams as BlockDetachParams,
|
|
2256
|
+
};
|
|
2257
|
+
|
|
2258
|
+
export {
|
|
2259
|
+
Tools as Tools,
|
|
2260
|
+
type ToolListParams as ToolListParams,
|
|
2261
|
+
type ToolAttachParams as ToolAttachParams,
|
|
2262
|
+
type ToolDetachParams as ToolDetachParams,
|
|
2263
|
+
type ToolUpdateApprovalParams as ToolUpdateApprovalParams,
|
|
2264
|
+
};
|
|
2265
|
+
|
|
2266
|
+
export {
|
|
2267
|
+
Folders as Folders,
|
|
2268
|
+
type FolderListResponse as FolderListResponse,
|
|
2269
|
+
type FolderListResponsesArrayPage as FolderListResponsesArrayPage,
|
|
2270
|
+
type FolderListParams as FolderListParams,
|
|
2271
|
+
type FolderAttachParams as FolderAttachParams,
|
|
2272
|
+
type FolderDetachParams as FolderDetachParams,
|
|
2273
|
+
};
|
|
2274
|
+
|
|
2275
|
+
export {
|
|
2276
|
+
Files as Files,
|
|
2277
|
+
type FileListResponse as FileListResponse,
|
|
2278
|
+
type FileCloseResponse as FileCloseResponse,
|
|
2279
|
+
type FileCloseAllResponse as FileCloseAllResponse,
|
|
2280
|
+
type FileOpenResponse as FileOpenResponse,
|
|
2281
|
+
type FileListResponsesNextFilesPage as FileListResponsesNextFilesPage,
|
|
2282
|
+
type FileListParams as FileListParams,
|
|
2283
|
+
type FileCloseParams as FileCloseParams,
|
|
2284
|
+
type FileOpenParams as FileOpenParams,
|
|
2285
|
+
};
|
|
2286
|
+
|
|
2287
|
+
export { Groups as Groups, type GroupListParams as GroupListParams };
|
|
2288
|
+
|
|
2289
|
+
export {
|
|
2290
|
+
Archives as Archives,
|
|
2291
|
+
type ArchiveAttachResponse as ArchiveAttachResponse,
|
|
2292
|
+
type ArchiveDetachResponse as ArchiveDetachResponse,
|
|
2293
|
+
type ArchiveAttachParams as ArchiveAttachParams,
|
|
2294
|
+
type ArchiveDetachParams as ArchiveDetachParams,
|
|
2295
|
+
};
|
|
2296
|
+
|
|
2297
|
+
export {
|
|
2298
|
+
Identities as Identities,
|
|
2299
|
+
type IdentityAttachResponse as IdentityAttachResponse,
|
|
2300
|
+
type IdentityDetachResponse as IdentityDetachResponse,
|
|
2301
|
+
type IdentityAttachParams as IdentityAttachParams,
|
|
2302
|
+
type IdentityDetachParams as IdentityDetachParams,
|
|
2303
|
+
};
|
|
1824
2304
|
}
|