@letta-ai/letta-client 1.0.0-alpha.6 → 1.0.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 +271 -0
- package/LICENSE +1 -1
- package/README.md +46 -46
- package/client.d.mts +82 -80
- package/client.d.mts.map +1 -1
- package/client.d.ts +82 -80
- package/client.d.ts.map +1 -1
- package/client.js +110 -104
- package/client.js.map +1 -1
- package/client.mjs +108 -102
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts +2 -2
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts +2 -2
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.d.mts +2 -2
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts +2 -2
- package/core/error.d.ts.map +1 -1
- package/core/error.js +4 -4
- package/core/error.js.map +1 -1
- package/core/error.mjs +2 -2
- package/core/error.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/resource.d.mts +3 -3
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts +3 -3
- package/core/resource.d.ts.map +1 -1
- package/core/resource.js.map +1 -1
- package/core/resource.mjs.map +1 -1
- 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 +4 -3
- package/index.d.mts.map +1 -1
- package/index.d.ts +4 -3
- package/index.d.ts.map +1 -1
- package/index.js +6 -4
- package/index.js.map +1 -1
- package/index.mjs +4 -3
- 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 +2 -2
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts +2 -2
- 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/shims.js +1 -1
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs +1 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/internal/uploads.d.mts +4 -4
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts +4 -4
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.js +2 -2
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +3 -3
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts +3 -3
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts +3 -3
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.js +1 -1
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +2 -2
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/values.js +5 -5
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +6 -6
- package/internal/utils/values.mjs.map +1 -1
- package/package.json +23 -3
- 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 +770 -346
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +770 -346
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +26 -90
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +28 -92
- 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 +268 -0
- package/resources/agents/blocks.d.mts.map +1 -0
- package/resources/agents/blocks.d.ts +268 -0
- package/resources/agents/blocks.d.ts.map +1 -0
- package/resources/agents/blocks.js +48 -0
- package/resources/agents/blocks.js.map +1 -0
- package/resources/agents/blocks.mjs +44 -0
- package/resources/agents/blocks.mjs.map +1 -0
- package/resources/agents/files.d.mts +49 -63
- package/resources/agents/files.d.mts.map +1 -1
- package/resources/agents/files.d.ts +49 -63
- package/resources/agents/files.d.ts.map +1 -1
- package/resources/agents/files.js +6 -2
- package/resources/agents/files.js.map +1 -1
- package/resources/agents/files.mjs +6 -2
- package/resources/agents/files.mjs.map +1 -1
- package/resources/agents/folders.d.mts +68 -6
- package/resources/agents/folders.d.mts.map +1 -1
- package/resources/agents/folders.d.ts +68 -6
- package/resources/agents/folders.d.ts.map +1 -1
- package/resources/agents/folders.js +6 -2
- package/resources/agents/folders.js.map +1 -1
- package/resources/agents/folders.mjs +6 -2
- package/resources/agents/folders.mjs.map +1 -1
- package/resources/agents/groups.d.mts +22 -0
- package/resources/agents/groups.d.mts.map +1 -0
- package/resources/agents/groups.d.ts +22 -0
- package/resources/agents/groups.d.ts.map +1 -0
- package/resources/agents/groups.js +20 -0
- package/resources/agents/groups.js.map +1 -0
- package/resources/agents/groups.mjs +16 -0
- package/resources/agents/groups.mjs.map +1 -0
- 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 -8
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +9 -8
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js +9 -7
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs +4 -3
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/messages.d.mts +782 -490
- package/resources/agents/messages.d.mts.map +1 -1
- package/resources/agents/messages.d.ts +782 -490
- package/resources/agents/messages.d.ts.map +1 -1
- package/resources/agents/messages.js +33 -35
- package/resources/agents/messages.js.map +1 -1
- package/resources/agents/messages.mjs +33 -35
- package/resources/agents/messages.mjs.map +1 -1
- package/resources/agents/tools.d.mts +30 -13
- package/resources/agents/tools.d.mts.map +1 -1
- package/resources/agents/tools.d.ts +30 -13
- package/resources/agents/tools.d.ts.map +1 -1
- package/resources/agents/tools.js +15 -7
- package/resources/agents/tools.js.map +1 -1
- package/resources/agents/tools.mjs +15 -7
- 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 -105
- package/resources/archives.d.mts.map +1 -1
- package/resources/archives.d.ts +1 -105
- package/resources/archives.d.ts.map +1 -1
- package/resources/archives.js +2 -18
- package/resources/archives.js.map +1 -1
- package/resources/archives.mjs +1 -16
- package/resources/archives.mjs.map +1 -1
- package/resources/batches/batches.d.mts +211 -0
- package/resources/batches/batches.d.mts.map +1 -0
- package/resources/batches/batches.d.ts +211 -0
- package/resources/batches/batches.d.ts.map +1 -0
- package/resources/batches/batches.js +46 -0
- package/resources/batches/batches.js.map +1 -0
- package/resources/batches/batches.mjs +41 -0
- package/resources/batches/batches.mjs.map +1 -0
- package/resources/batches/index.d.mts +3 -0
- package/resources/batches/index.d.mts.map +1 -0
- package/resources/batches/index.d.ts +3 -0
- package/resources/batches/index.d.ts.map +1 -0
- package/resources/batches/index.js.map +1 -0
- package/resources/batches/index.mjs.map +1 -0
- package/resources/batches/messages.d.mts +22 -0
- package/resources/batches/messages.d.mts.map +1 -0
- package/resources/batches/messages.d.ts +22 -0
- package/resources/batches/messages.d.ts.map +1 -0
- package/resources/batches/messages.js +17 -0
- package/resources/batches/messages.js.map +1 -0
- package/resources/batches/messages.mjs +13 -0
- package/resources/batches/messages.mjs.map +1 -0
- package/resources/batches.d.mts +2 -0
- package/resources/batches.d.mts.map +1 -0
- package/resources/batches.d.ts +2 -0
- package/resources/batches.d.ts.map +1 -0
- package/resources/batches.js +6 -0
- package/resources/batches.js.map +1 -0
- package/resources/batches.mjs +3 -0
- package/resources/batches.mjs.map +1 -0
- package/resources/blocks/agents.d.mts +31 -0
- package/resources/blocks/agents.d.mts.map +1 -0
- package/resources/blocks/agents.d.ts +31 -0
- package/resources/blocks/agents.d.ts.map +1 -0
- package/resources/blocks/agents.js +21 -0
- package/resources/blocks/agents.js.map +1 -0
- package/resources/blocks/agents.mjs +17 -0
- package/resources/blocks/agents.mjs.map +1 -0
- package/resources/blocks/blocks.d.mts +356 -0
- package/resources/blocks/blocks.d.mts.map +1 -0
- package/resources/blocks/blocks.d.ts +356 -0
- package/resources/blocks/blocks.d.ts.map +1 -0
- package/resources/blocks/blocks.js +49 -0
- package/resources/blocks/blocks.js.map +1 -0
- package/resources/blocks/blocks.mjs +44 -0
- package/resources/blocks/blocks.mjs.map +1 -0
- package/resources/blocks/index.d.mts +3 -0
- package/resources/blocks/index.d.mts.map +1 -0
- package/resources/blocks/index.d.ts +3 -0
- package/resources/blocks/index.d.ts.map +1 -0
- package/resources/blocks/index.js +9 -0
- package/resources/blocks/index.js.map +1 -0
- package/resources/blocks/index.mjs +4 -0
- package/resources/blocks/index.mjs.map +1 -0
- package/resources/blocks.d.mts +1 -329
- package/resources/blocks.d.mts.map +1 -1
- package/resources/blocks.d.ts +1 -329
- package/resources/blocks.d.ts.map +1 -1
- package/resources/blocks.js +2 -49
- package/resources/blocks.js.map +1 -1
- package/resources/blocks.mjs +1 -47
- package/resources/blocks.mjs.map +1 -1
- package/resources/folders/agents.d.mts +39 -0
- package/resources/folders/agents.d.mts.map +1 -0
- package/resources/folders/agents.d.ts +39 -0
- package/resources/folders/agents.d.ts.map +1 -0
- package/resources/folders/agents.js +16 -0
- package/resources/folders/agents.js.map +1 -0
- package/resources/folders/agents.mjs +12 -0
- package/resources/folders/agents.mjs.map +1 -0
- package/resources/folders/files.d.mts +194 -0
- package/resources/folders/files.d.mts.map +1 -0
- package/resources/folders/files.d.ts +194 -0
- package/resources/folders/files.d.ts.map +1 -0
- package/resources/folders/files.js +39 -0
- package/resources/folders/files.js.map +1 -0
- package/resources/folders/files.mjs +35 -0
- package/resources/folders/files.mjs.map +1 -0
- package/resources/folders/folders.d.mts +150 -0
- package/resources/folders/folders.d.mts.map +1 -0
- package/resources/folders/folders.d.ts +150 -0
- package/resources/folders/folders.d.ts.map +1 -0
- package/resources/folders/folders.js +53 -0
- package/resources/folders/folders.js.map +1 -0
- package/resources/folders/folders.mjs +48 -0
- package/resources/folders/folders.mjs.map +1 -0
- package/resources/folders/index.d.mts +4 -0
- package/resources/folders/index.d.mts.map +1 -0
- package/resources/folders/index.d.ts +4 -0
- package/resources/folders/index.d.ts.map +1 -0
- package/resources/folders/index.js +11 -0
- package/resources/folders/index.js.map +1 -0
- package/resources/folders/index.mjs +5 -0
- package/resources/folders/index.mjs.map +1 -0
- package/resources/folders.d.mts +1 -319
- package/resources/folders.d.mts.map +1 -1
- package/resources/folders.d.ts +1 -319
- package/resources/folders.d.ts.map +1 -1
- package/resources/folders.js +2 -103
- package/resources/folders.js.map +1 -1
- package/resources/folders.mjs +1 -101
- package/resources/folders.mjs.map +1 -1
- package/resources/groups/groups.d.mts +17 -72
- package/resources/groups/groups.d.mts.map +1 -1
- package/resources/groups/groups.d.ts +17 -72
- package/resources/groups/groups.d.ts.map +1 -1
- package/resources/groups/groups.js +6 -34
- package/resources/groups/groups.js.map +1 -1
- package/resources/groups/groups.mjs +6 -34
- 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 +168 -87
- package/resources/groups/messages.d.mts.map +1 -1
- package/resources/groups/messages.d.ts +168 -87
- package/resources/groups/messages.d.ts.map +1 -1
- package/resources/groups/messages.js +22 -8
- package/resources/groups/messages.js.map +1 -1
- package/resources/groups/messages.mjs +22 -8
- package/resources/groups/messages.mjs.map +1 -1
- package/resources/identities/agents.d.mts +23 -0
- package/resources/identities/agents.d.mts.map +1 -0
- package/resources/identities/agents.d.ts +23 -0
- package/resources/identities/agents.d.ts.map +1 -0
- package/resources/identities/agents.js +17 -0
- package/resources/identities/agents.js.map +1 -0
- package/resources/identities/agents.mjs +13 -0
- package/resources/identities/agents.mjs.map +1 -0
- package/resources/identities/blocks.d.mts +18 -0
- package/resources/identities/blocks.d.mts.map +1 -0
- package/resources/identities/blocks.d.ts +18 -0
- package/resources/identities/blocks.d.ts.map +1 -0
- package/resources/identities/blocks.js +17 -0
- package/resources/identities/blocks.js.map +1 -0
- package/resources/identities/blocks.mjs +13 -0
- package/resources/identities/blocks.mjs.map +1 -0
- package/resources/identities/identities.d.mts +200 -0
- package/resources/identities/identities.d.mts.map +1 -0
- package/resources/identities/identities.d.ts +200 -0
- package/resources/identities/identities.d.ts.map +1 -0
- package/resources/identities/identities.js +63 -0
- package/resources/identities/identities.js.map +1 -0
- package/resources/identities/identities.mjs +58 -0
- package/resources/identities/identities.mjs.map +1 -0
- package/resources/identities/index.d.mts +5 -0
- package/resources/identities/index.d.mts.map +1 -0
- package/resources/identities/index.d.ts +5 -0
- package/resources/identities/index.d.ts.map +1 -0
- package/resources/identities/index.js +13 -0
- package/resources/identities/index.js.map +1 -0
- package/resources/identities/index.mjs +6 -0
- package/resources/identities/index.mjs.map +1 -0
- package/resources/identities/properties.d.mts +18 -0
- package/resources/identities/properties.d.mts.map +1 -0
- package/resources/identities/properties.d.ts +18 -0
- package/resources/identities/properties.d.ts.map +1 -0
- package/resources/identities/properties.js +17 -0
- package/resources/identities/properties.js.map +1 -0
- package/resources/identities/properties.mjs +13 -0
- package/resources/identities/properties.mjs.map +1 -0
- package/resources/identities.d.mts +1 -292
- package/resources/identities.d.mts.map +1 -1
- package/resources/identities.d.ts +1 -292
- package/resources/identities.d.ts.map +1 -1
- package/resources/identities.js +2 -84
- package/resources/identities.js.map +1 -1
- package/resources/identities.mjs +1 -82
- package/resources/identities.mjs.map +1 -1
- package/resources/index.d.mts +15 -22
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +15 -22
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +16 -32
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +12 -20
- 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 +20 -0
- package/resources/models/embeddings.d.mts.map +1 -0
- package/resources/models/embeddings.d.ts +20 -0
- package/resources/models/embeddings.d.ts.map +1 -0
- package/resources/models/embeddings.js +20 -0
- package/resources/models/embeddings.js.map +1 -0
- package/resources/models/embeddings.mjs +16 -0
- package/resources/models/embeddings.mjs.map +1 -0
- package/resources/models/index.d.mts +3 -0
- package/resources/models/index.d.mts.map +1 -0
- package/resources/models/index.d.ts +3 -0
- package/resources/models/index.d.ts.map +1 -0
- package/resources/models/index.js +9 -0
- package/resources/models/index.js.map +1 -0
- package/resources/models/index.mjs +4 -0
- package/resources/models/index.mjs.map +1 -0
- package/resources/models/models.d.mts +341 -0
- package/resources/models/models.d.mts.map +1 -0
- package/resources/models/models.d.ts +341 -0
- package/resources/models/models.d.ts.map +1 -0
- package/resources/models/models.js +28 -0
- package/resources/models/models.js.map +1 -0
- package/resources/models/models.mjs +23 -0
- package/resources/models/models.mjs.map +1 -0
- package/resources/models.d.mts +1 -159
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +1 -159
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +2 -26
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +1 -24
- package/resources/models.mjs.map +1 -1
- package/resources/runs/index.d.mts +5 -0
- package/resources/runs/index.d.mts.map +1 -0
- package/resources/runs/index.d.ts +5 -0
- package/resources/runs/index.d.ts.map +1 -0
- package/resources/runs/index.js +13 -0
- package/resources/runs/index.js.map +1 -0
- package/resources/runs/index.mjs +6 -0
- package/resources/runs/index.mjs.map +1 -0
- package/resources/runs/messages.d.mts +45 -0
- package/resources/runs/messages.d.mts.map +1 -0
- package/resources/runs/messages.d.ts +45 -0
- package/resources/runs/messages.d.ts.map +1 -0
- package/resources/runs/messages.js +30 -0
- package/resources/runs/messages.js.map +1 -0
- package/resources/runs/messages.mjs +26 -0
- package/resources/runs/messages.mjs.map +1 -0
- package/resources/runs/runs.d.mts +146 -0
- package/resources/runs/runs.d.mts.map +1 -0
- package/resources/runs/runs.d.ts +146 -0
- package/resources/runs/runs.d.ts.map +1 -0
- package/resources/runs/runs.js +39 -0
- package/resources/runs/runs.js.map +1 -0
- package/resources/runs/runs.mjs +34 -0
- package/resources/runs/runs.mjs.map +1 -0
- package/resources/runs/steps.d.mts +18 -0
- package/resources/runs/steps.d.mts.map +1 -0
- package/resources/runs/steps.d.ts +18 -0
- package/resources/runs/steps.d.ts.map +1 -0
- package/resources/runs/steps.js +20 -0
- package/resources/runs/steps.js.map +1 -0
- package/resources/runs/steps.mjs +16 -0
- package/resources/runs/steps.mjs.map +1 -0
- package/resources/runs/usage.d.mts +28 -0
- package/resources/runs/usage.d.mts.map +1 -0
- package/resources/runs/usage.d.ts +28 -0
- package/resources/runs/usage.d.ts.map +1 -0
- package/resources/runs/usage.js +16 -0
- package/resources/runs/usage.js.map +1 -0
- package/resources/runs/usage.mjs +12 -0
- package/resources/runs/usage.mjs.map +1 -0
- package/resources/runs.d.mts +1 -183
- package/resources/runs.d.mts.map +1 -1
- package/resources/runs.d.ts +1 -183
- package/resources/runs.d.ts.map +1 -1
- package/resources/runs.js +2 -69
- package/resources/runs.js.map +1 -1
- package/resources/runs.mjs +1 -67
- package/resources/runs.mjs.map +1 -1
- package/resources/steps/feedback.d.mts +24 -0
- package/resources/steps/feedback.d.mts.map +1 -0
- package/resources/steps/feedback.d.ts +24 -0
- package/resources/steps/feedback.d.ts.map +1 -0
- package/resources/steps/feedback.js +16 -0
- package/resources/steps/feedback.js.map +1 -0
- package/resources/steps/feedback.mjs +12 -0
- package/resources/steps/feedback.mjs.map +1 -0
- package/resources/steps/index.d.mts +6 -0
- package/resources/steps/index.d.mts.map +1 -0
- package/resources/steps/index.d.ts +6 -0
- package/resources/steps/index.d.ts.map +1 -0
- package/resources/steps/index.js +15 -0
- package/resources/steps/index.js.map +1 -0
- package/resources/steps/index.mjs +7 -0
- package/resources/steps/index.mjs.map +1 -0
- package/resources/steps/messages.d.mts +27 -0
- package/resources/steps/messages.d.mts.map +1 -0
- package/resources/steps/messages.d.ts +27 -0
- package/resources/steps/messages.d.ts.map +1 -0
- package/resources/steps/messages.js +20 -0
- package/resources/steps/messages.js.map +1 -0
- package/resources/steps/messages.mjs +16 -0
- package/resources/steps/messages.mjs.map +1 -0
- package/resources/steps/metrics.d.mts +63 -0
- package/resources/steps/metrics.d.mts.map +1 -0
- package/resources/steps/metrics.d.ts +63 -0
- package/resources/steps/metrics.d.ts.map +1 -0
- package/resources/steps/metrics.js +16 -0
- package/resources/steps/metrics.js.map +1 -0
- package/resources/steps/metrics.mjs +12 -0
- package/resources/steps/metrics.mjs.map +1 -0
- package/resources/steps/steps.d.mts +227 -0
- package/resources/steps/steps.d.mts.map +1 -0
- package/resources/steps/steps.d.ts +227 -0
- package/resources/steps/steps.d.ts.map +1 -0
- package/resources/steps/steps.js +43 -0
- package/resources/steps/steps.js.map +1 -0
- package/resources/steps/steps.mjs +38 -0
- package/resources/steps/steps.mjs.map +1 -0
- package/resources/steps/trace.d.mts +11 -0
- package/resources/steps/trace.d.mts.map +1 -0
- package/resources/steps/trace.d.ts +11 -0
- package/resources/steps/trace.d.ts.map +1 -0
- package/resources/steps/trace.js +16 -0
- package/resources/steps/trace.js.map +1 -0
- package/resources/steps/trace.mjs +12 -0
- package/resources/steps/trace.mjs.map +1 -0
- package/resources/steps.d.mts +1 -340
- package/resources/steps.d.mts.map +1 -1
- package/resources/steps.d.ts +1 -340
- package/resources/steps.d.ts.map +1 -1
- package/resources/steps.js +2 -51
- package/resources/steps.js.map +1 -1
- package/resources/steps.mjs +1 -49
- package/resources/steps.mjs.map +1 -1
- package/resources/templates/agents.d.mts +56 -0
- package/resources/templates/agents.d.mts.map +1 -0
- package/resources/templates/agents.d.ts +56 -0
- package/resources/templates/agents.d.ts.map +1 -0
- package/resources/templates/agents.js +21 -0
- package/resources/templates/agents.js.map +1 -0
- package/resources/templates/agents.mjs +17 -0
- package/resources/templates/agents.mjs.map +1 -0
- package/resources/templates/index.d.mts +3 -0
- package/resources/templates/index.d.mts.map +1 -0
- package/resources/templates/index.d.ts +3 -0
- package/resources/templates/index.d.ts.map +1 -0
- package/resources/templates/index.js +9 -0
- package/resources/templates/index.js.map +1 -0
- package/resources/templates/index.mjs +4 -0
- package/resources/templates/index.mjs.map +1 -0
- package/resources/templates/templates.d.mts +10 -0
- package/resources/templates/templates.d.mts.map +1 -0
- package/resources/templates/templates.d.ts +10 -0
- package/resources/templates/templates.d.ts.map +1 -0
- package/resources/templates/templates.js +17 -0
- package/resources/templates/templates.js.map +1 -0
- package/resources/templates/templates.mjs +12 -0
- package/resources/templates/templates.mjs.map +1 -0
- package/resources/templates.d.mts +1 -493
- package/resources/templates.d.mts.map +1 -1
- package/resources/templates.d.ts +1 -493
- package/resources/templates.d.ts.map +1 -1
- package/resources/templates.js +2 -81
- package/resources/templates.js.map +1 -1
- package/resources/templates.mjs +1 -79
- package/resources/templates.mjs.map +1 -1
- package/resources/tools.d.mts +437 -1
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +437 -1
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +49 -2
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +47 -1
- package/resources/tools.mjs.map +1 -1
- package/resources/top-level.d.mts +11 -0
- package/resources/top-level.d.mts.map +1 -0
- package/resources/top-level.d.ts +11 -0
- package/resources/top-level.d.ts.map +1 -0
- package/resources/top-level.js +4 -0
- package/resources/top-level.js.map +1 -0
- package/resources/top-level.mjs +3 -0
- package/resources/top-level.mjs.map +1 -0
- package/src/client.ts +370 -502
- package/src/core/api-promise.ts +4 -4
- package/src/core/error.ts +2 -2
- package/src/core/pagination.ts +334 -0
- package/src/core/resource.ts +3 -3
- package/src/core/streaming.ts +331 -0
- package/src/index.ts +4 -3
- package/src/internal/decoders/line.ts +135 -0
- package/src/internal/parse.ts +16 -2
- package/src/internal/request-options.ts +2 -0
- package/src/internal/shims.ts +1 -1
- package/src/internal/uploads.ts +5 -5
- package/src/internal/utils/base64.ts +3 -3
- package/src/internal/utils/log.ts +3 -3
- package/src/internal/utils/path.ts +2 -2
- package/src/internal/utils/values.ts +6 -6
- package/src/pagination.ts +2 -0
- package/src/resources/access-tokens.ts +163 -0
- package/src/resources/agents/agents.ts +1070 -578
- package/src/resources/agents/archives.ts +51 -0
- package/src/resources/agents/blocks.ts +372 -0
- package/src/resources/agents/files.ts +60 -73
- package/src/resources/agents/folders.ts +86 -6
- package/src/resources/agents/groups.ts +37 -0
- package/src/resources/agents/identities.ts +51 -0
- package/src/resources/agents/index.ts +58 -46
- package/src/resources/agents/messages.ts +1109 -667
- package/src/resources/agents/tools.ts +45 -19
- 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 -138
- package/src/resources/batches/batches.ts +286 -0
- package/src/resources/batches/index.ts +11 -0
- package/src/resources/batches/messages.ts +38 -0
- package/src/resources/batches.ts +3 -0
- package/src/resources/blocks/agents.ts +55 -0
- package/src/resources/blocks/blocks.ts +458 -0
- package/src/resources/blocks/index.ts +13 -0
- package/src/resources/blocks.ts +1 -436
- package/src/resources/folders/agents.ts +55 -0
- package/src/resources/folders/files.ts +272 -0
- package/src/resources/folders/folders.ts +223 -0
- package/src/resources/folders/index.ts +21 -0
- package/src/resources/folders.ts +1 -460
- package/src/resources/groups/groups.ts +27 -116
- package/src/resources/groups/index.ts +5 -7
- package/src/resources/groups/messages.ts +238 -106
- package/src/resources/identities/agents.ts +47 -0
- package/src/resources/identities/blocks.ts +33 -0
- package/src/resources/identities/identities.ts +282 -0
- package/src/resources/identities/index.ts +17 -0
- package/src/resources/identities/properties.ts +30 -0
- package/src/resources/identities.ts +1 -432
- package/src/resources/index.ts +79 -169
- 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 +26 -0
- package/src/resources/models/index.ts +14 -0
- package/src/resources/models/models.ts +534 -0
- package/src/resources/models.ts +1 -276
- package/src/resources/runs/index.ts +11 -0
- package/src/resources/runs/messages.ts +79 -0
- package/src/resources/runs/runs.ts +206 -0
- package/src/resources/runs/steps.ts +32 -0
- package/src/resources/runs/usage.ts +41 -0
- package/src/resources/runs.ts +1 -282
- package/src/resources/steps/feedback.ts +32 -0
- package/src/resources/steps/index.ts +12 -0
- package/src/resources/steps/messages.ts +57 -0
- package/src/resources/steps/metrics.ts +81 -0
- package/src/resources/steps/steps.ts +293 -0
- package/src/resources/steps/trace.ts +16 -0
- package/src/resources/steps.ts +1 -455
- package/src/resources/templates/agents.ts +80 -0
- package/src/resources/templates/index.ts +4 -0
- package/src/resources/templates/templates.ts +15 -0
- package/src/resources/templates.ts +1 -783
- package/src/resources/tools.ts +557 -1
- package/src/resources/top-level.ts +14 -0
- 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
- package/resources/-internal-templates/-internal-templates.d.mts +0 -324
- package/resources/-internal-templates/-internal-templates.d.mts.map +0 -1
- package/resources/-internal-templates/-internal-templates.d.ts +0 -324
- package/resources/-internal-templates/-internal-templates.d.ts.map +0 -1
- package/resources/-internal-templates/-internal-templates.js +0 -35
- package/resources/-internal-templates/-internal-templates.js.map +0 -1
- package/resources/-internal-templates/-internal-templates.mjs +0 -30
- package/resources/-internal-templates/-internal-templates.mjs.map +0 -1
- package/resources/-internal-templates/deployment.d.mts +0 -56
- package/resources/-internal-templates/deployment.d.mts.map +0 -1
- package/resources/-internal-templates/deployment.d.ts +0 -56
- package/resources/-internal-templates/deployment.d.ts.map +0 -1
- package/resources/-internal-templates/deployment.js +0 -24
- package/resources/-internal-templates/deployment.js.map +0 -1
- package/resources/-internal-templates/deployment.mjs +0 -20
- package/resources/-internal-templates/deployment.mjs.map +0 -1
- package/resources/-internal-templates/index.d.mts +0 -3
- package/resources/-internal-templates/index.d.mts.map +0 -1
- package/resources/-internal-templates/index.d.ts +0 -3
- package/resources/-internal-templates/index.d.ts.map +0 -1
- package/resources/-internal-templates/index.js +0 -9
- package/resources/-internal-templates/index.js.map +0 -1
- package/resources/-internal-templates/index.mjs +0 -4
- package/resources/-internal-templates/index.mjs.map +0 -1
- package/resources/-internal-templates.d.mts +0 -2
- package/resources/-internal-templates.d.mts.map +0 -1
- package/resources/-internal-templates.d.ts +0 -2
- package/resources/-internal-templates.d.ts.map +0 -1
- package/resources/-internal-templates.js +0 -6
- package/resources/-internal-templates.js.map +0 -1
- package/resources/-internal-templates.mjs +0 -3
- package/resources/-internal-templates.mjs.map +0 -1
- package/resources/agents/archival-memory.d.mts +0 -128
- package/resources/agents/archival-memory.d.mts.map +0 -1
- package/resources/agents/archival-memory.d.ts +0 -128
- package/resources/agents/archival-memory.d.ts.map +0 -1
- package/resources/agents/archival-memory.js +0 -41
- package/resources/agents/archival-memory.js.map +0 -1
- package/resources/agents/archival-memory.mjs +0 -37
- package/resources/agents/archival-memory.mjs.map +0 -1
- package/resources/agents/core-memory/blocks.d.mts +0 -256
- package/resources/agents/core-memory/blocks.d.mts.map +0 -1
- package/resources/agents/core-memory/blocks.d.ts +0 -256
- package/resources/agents/core-memory/blocks.d.ts.map +0 -1
- package/resources/agents/core-memory/blocks.js +0 -47
- package/resources/agents/core-memory/blocks.js.map +0 -1
- package/resources/agents/core-memory/blocks.mjs +0 -43
- package/resources/agents/core-memory/blocks.mjs.map +0 -1
- package/resources/agents/core-memory/core-memory.d.mts +0 -142
- package/resources/agents/core-memory/core-memory.d.mts.map +0 -1
- package/resources/agents/core-memory/core-memory.d.ts +0 -142
- package/resources/agents/core-memory/core-memory.d.ts.map +0 -1
- package/resources/agents/core-memory/core-memory.js +0 -31
- package/resources/agents/core-memory/core-memory.js.map +0 -1
- package/resources/agents/core-memory/core-memory.mjs +0 -26
- package/resources/agents/core-memory/core-memory.mjs.map +0 -1
- package/resources/agents/core-memory/index.d.mts +0 -3
- package/resources/agents/core-memory/index.d.mts.map +0 -1
- package/resources/agents/core-memory/index.d.ts +0 -3
- package/resources/agents/core-memory/index.d.ts.map +0 -1
- package/resources/agents/core-memory/index.js +0 -9
- package/resources/agents/core-memory/index.js.map +0 -1
- package/resources/agents/core-memory/index.mjs +0 -4
- package/resources/agents/core-memory/index.mjs.map +0 -1
- package/resources/agents/core-memory.d.mts +0 -2
- package/resources/agents/core-memory.d.mts.map +0 -1
- package/resources/agents/core-memory.d.ts +0 -2
- package/resources/agents/core-memory.d.ts.map +0 -1
- package/resources/agents/core-memory.js +0 -6
- package/resources/agents/core-memory.js.map +0 -1
- package/resources/agents/core-memory.mjs +0 -3
- package/resources/agents/core-memory.mjs.map +0 -1
- package/resources/agents/sources.d.mts +0 -30
- package/resources/agents/sources.d.mts.map +0 -1
- package/resources/agents/sources.d.ts +0 -30
- package/resources/agents/sources.d.ts.map +0 -1
- package/resources/agents/sources.js +0 -30
- package/resources/agents/sources.js.map +0 -1
- package/resources/agents/sources.mjs +0 -26
- package/resources/agents/sources.mjs.map +0 -1
- package/resources/client-side-access-tokens.d.mts +0 -105
- package/resources/client-side-access-tokens.d.mts.map +0 -1
- package/resources/client-side-access-tokens.d.ts +0 -105
- package/resources/client-side-access-tokens.d.ts.map +0 -1
- package/resources/client-side-access-tokens.js +0 -30
- package/resources/client-side-access-tokens.js.map +0 -1
- package/resources/client-side-access-tokens.mjs +0 -26
- package/resources/client-side-access-tokens.mjs.map +0 -1
- package/resources/embeddings.d.mts +0 -18
- package/resources/embeddings.d.mts.map +0 -1
- package/resources/embeddings.d.ts +0 -18
- package/resources/embeddings.d.ts.map +0 -1
- package/resources/embeddings.js +0 -24
- package/resources/embeddings.js.map +0 -1
- package/resources/embeddings.mjs +0 -20
- package/resources/embeddings.mjs.map +0 -1
- package/resources/health.d.mts +0 -20
- package/resources/health.d.mts.map +0 -1
- package/resources/health.d.ts +0 -20
- package/resources/health.d.ts.map +0 -1
- package/resources/health.js +0 -15
- package/resources/health.js.map +0 -1
- package/resources/health.mjs +0 -11
- package/resources/health.mjs.map +0 -1
- package/resources/jobs.d.mts +0 -165
- package/resources/jobs.d.mts.map +0 -1
- package/resources/jobs.d.ts +0 -165
- package/resources/jobs.d.ts.map +0 -1
- package/resources/jobs.js +0 -45
- package/resources/jobs.js.map +0 -1
- package/resources/jobs.mjs +0 -41
- package/resources/jobs.mjs.map +0 -1
- package/resources/messages/batches.d.mts +0 -212
- package/resources/messages/batches.d.mts.map +0 -1
- package/resources/messages/batches.d.ts +0 -212
- package/resources/messages/batches.d.ts.map +0 -1
- package/resources/messages/batches.js +0 -43
- package/resources/messages/batches.js.map +0 -1
- package/resources/messages/batches.mjs +0 -39
- package/resources/messages/batches.mjs.map +0 -1
- package/resources/messages/index.d.mts +0 -3
- package/resources/messages/index.d.mts.map +0 -1
- package/resources/messages/index.d.ts +0 -3
- package/resources/messages/index.d.ts.map +0 -1
- package/resources/messages/index.js.map +0 -1
- package/resources/messages/index.mjs.map +0 -1
- package/resources/messages/messages.d.mts +0 -10
- package/resources/messages/messages.d.mts.map +0 -1
- package/resources/messages/messages.d.ts +0 -10
- package/resources/messages/messages.d.ts.map +0 -1
- package/resources/messages/messages.js +0 -17
- package/resources/messages/messages.js.map +0 -1
- package/resources/messages/messages.mjs +0 -12
- package/resources/messages/messages.mjs.map +0 -1
- package/resources/messages.d.mts +0 -2
- package/resources/messages.d.mts.map +0 -1
- package/resources/messages.d.ts +0 -2
- package/resources/messages.d.ts.map +0 -1
- package/resources/messages.js +0 -6
- package/resources/messages.js.map +0 -1
- package/resources/messages.mjs +0 -3
- package/resources/messages.mjs.map +0 -1
- package/resources/projects.d.mts +0 -29
- package/resources/projects.d.mts.map +0 -1
- package/resources/projects.d.ts +0 -29
- package/resources/projects.d.ts.map +0 -1
- package/resources/projects.js +0 -15
- package/resources/projects.js.map +0 -1
- package/resources/projects.mjs +0 -11
- package/resources/projects.mjs.map +0 -1
- package/resources/providers.d.mts +0 -190
- package/resources/providers.d.mts.map +0 -1
- package/resources/providers.d.ts +0 -190
- package/resources/providers.d.ts.map +0 -1
- package/resources/providers.js +0 -46
- package/resources/providers.js.map +0 -1
- package/resources/providers.mjs +0 -42
- package/resources/providers.mjs.map +0 -1
- package/resources/sources/files.d.mts +0 -53
- package/resources/sources/files.d.mts.map +0 -1
- package/resources/sources/files.d.ts +0 -53
- package/resources/sources/files.d.ts.map +0 -1
- package/resources/sources/files.js +0 -27
- package/resources/sources/files.js.map +0 -1
- package/resources/sources/files.mjs +0 -23
- package/resources/sources/files.mjs.map +0 -1
- package/resources/sources/index.d.mts +0 -3
- package/resources/sources/index.d.mts.map +0 -1
- package/resources/sources/index.d.ts +0 -3
- package/resources/sources/index.d.ts.map +0 -1
- package/resources/sources/index.js +0 -9
- package/resources/sources/index.js.map +0 -1
- package/resources/sources/index.mjs +0 -4
- package/resources/sources/index.mjs.map +0 -1
- package/resources/sources/sources.d.mts +0 -530
- package/resources/sources/sources.d.mts.map +0 -1
- package/resources/sources/sources.d.ts +0 -530
- package/resources/sources/sources.d.ts.map +0 -1
- package/resources/sources/sources.js +0 -129
- package/resources/sources/sources.js.map +0 -1
- package/resources/sources/sources.mjs +0 -124
- package/resources/sources/sources.mjs.map +0 -1
- package/resources/sources.d.mts +0 -2
- package/resources/sources.d.mts.map +0 -1
- package/resources/sources.d.ts +0 -2
- package/resources/sources.d.ts.map +0 -1
- package/resources/sources.js +0 -6
- package/resources/sources.js.map +0 -1
- package/resources/sources.mjs +0 -3
- package/resources/sources.mjs.map +0 -1
- package/resources/telemetry.d.mts +0 -15
- package/resources/telemetry.d.mts.map +0 -1
- package/resources/telemetry.d.ts +0 -15
- package/resources/telemetry.d.ts.map +0 -1
- package/resources/telemetry.js +0 -20
- package/resources/telemetry.js.map +0 -1
- package/resources/telemetry.mjs +0 -16
- package/resources/telemetry.mjs.map +0 -1
- package/resources/tools/composio/apps.d.mts +0 -131
- package/resources/tools/composio/apps.d.mts.map +0 -1
- package/resources/tools/composio/apps.d.ts +0 -131
- package/resources/tools/composio/apps.d.ts.map +0 -1
- package/resources/tools/composio/apps.js +0 -22
- package/resources/tools/composio/apps.js.map +0 -1
- package/resources/tools/composio/apps.mjs +0 -18
- package/resources/tools/composio/apps.mjs.map +0 -1
- package/resources/tools/composio/composio.d.mts +0 -18
- package/resources/tools/composio/composio.d.mts.map +0 -1
- package/resources/tools/composio/composio.d.ts +0 -18
- package/resources/tools/composio/composio.d.ts.map +0 -1
- package/resources/tools/composio/composio.js +0 -25
- package/resources/tools/composio/composio.js.map +0 -1
- package/resources/tools/composio/composio.mjs +0 -20
- package/resources/tools/composio/composio.mjs.map +0 -1
- package/resources/tools/composio/index.d.mts +0 -3
- package/resources/tools/composio/index.d.mts.map +0 -1
- package/resources/tools/composio/index.d.ts +0 -3
- package/resources/tools/composio/index.d.ts.map +0 -1
- package/resources/tools/composio/index.js +0 -9
- package/resources/tools/composio/index.js.map +0 -1
- package/resources/tools/composio/index.mjs +0 -4
- package/resources/tools/composio/index.mjs.map +0 -1
- package/resources/tools/composio.d.mts +0 -2
- package/resources/tools/composio.d.mts.map +0 -1
- package/resources/tools/composio.d.ts +0 -2
- package/resources/tools/composio.d.ts.map +0 -1
- package/resources/tools/composio.js +0 -6
- package/resources/tools/composio.js.map +0 -1
- package/resources/tools/composio.mjs +0 -3
- package/resources/tools/composio.mjs.map +0 -1
- package/resources/tools/index.d.mts +0 -4
- package/resources/tools/index.d.mts.map +0 -1
- package/resources/tools/index.d.ts +0 -4
- package/resources/tools/index.d.ts.map +0 -1
- package/resources/tools/index.js +0 -11
- package/resources/tools/index.js.map +0 -1
- package/resources/tools/index.mjs +0 -5
- package/resources/tools/index.mjs.map +0 -1
- package/resources/tools/mcp/index.d.mts +0 -4
- package/resources/tools/mcp/index.d.mts.map +0 -1
- package/resources/tools/mcp/index.d.ts +0 -4
- package/resources/tools/mcp/index.d.ts.map +0 -1
- package/resources/tools/mcp/index.js +0 -11
- package/resources/tools/mcp/index.js.map +0 -1
- package/resources/tools/mcp/index.mjs +0 -5
- package/resources/tools/mcp/index.mjs.map +0 -1
- package/resources/tools/mcp/mcp.d.mts +0 -14
- package/resources/tools/mcp/mcp.d.mts.map +0 -1
- package/resources/tools/mcp/mcp.d.ts +0 -14
- package/resources/tools/mcp/mcp.d.ts.map +0 -1
- package/resources/tools/mcp/mcp.js +0 -21
- package/resources/tools/mcp/mcp.js.map +0 -1
- package/resources/tools/mcp/mcp.mjs +0 -16
- package/resources/tools/mcp/mcp.mjs.map +0 -1
- package/resources/tools/mcp/oauth.d.mts +0 -32
- package/resources/tools/mcp/oauth.d.mts.map +0 -1
- package/resources/tools/mcp/oauth.d.ts +0 -32
- package/resources/tools/mcp/oauth.d.ts.map +0 -1
- package/resources/tools/mcp/oauth.js +0 -16
- package/resources/tools/mcp/oauth.js.map +0 -1
- package/resources/tools/mcp/oauth.mjs +0 -12
- package/resources/tools/mcp/oauth.mjs.map +0 -1
- package/resources/tools/mcp/servers/index.d.mts +0 -3
- package/resources/tools/mcp/servers/index.d.mts.map +0 -1
- package/resources/tools/mcp/servers/index.d.ts +0 -3
- package/resources/tools/mcp/servers/index.d.ts.map +0 -1
- package/resources/tools/mcp/servers/index.js +0 -9
- package/resources/tools/mcp/servers/index.js.map +0 -1
- package/resources/tools/mcp/servers/index.mjs +0 -4
- package/resources/tools/mcp/servers/index.mjs.map +0 -1
- package/resources/tools/mcp/servers/servers.d.mts +0 -442
- package/resources/tools/mcp/servers/servers.d.mts.map +0 -1
- package/resources/tools/mcp/servers/servers.d.ts +0 -442
- package/resources/tools/mcp/servers/servers.d.ts.map +0 -1
- package/resources/tools/mcp/servers/servers.js +0 -80
- package/resources/tools/mcp/servers/servers.js.map +0 -1
- package/resources/tools/mcp/servers/servers.mjs +0 -75
- package/resources/tools/mcp/servers/servers.mjs.map +0 -1
- package/resources/tools/mcp/servers/tools.d.mts +0 -100
- package/resources/tools/mcp/servers/tools.d.mts.map +0 -1
- package/resources/tools/mcp/servers/tools.d.ts +0 -100
- package/resources/tools/mcp/servers/tools.d.ts.map +0 -1
- package/resources/tools/mcp/servers/tools.js +0 -27
- package/resources/tools/mcp/servers/tools.js.map +0 -1
- package/resources/tools/mcp/servers/tools.mjs +0 -23
- package/resources/tools/mcp/servers/tools.mjs.map +0 -1
- package/resources/tools/mcp/servers.d.mts +0 -2
- package/resources/tools/mcp/servers.d.mts.map +0 -1
- package/resources/tools/mcp/servers.d.ts +0 -2
- package/resources/tools/mcp/servers.d.ts.map +0 -1
- package/resources/tools/mcp/servers.js +0 -6
- package/resources/tools/mcp/servers.js.map +0 -1
- package/resources/tools/mcp/servers.mjs +0 -3
- package/resources/tools/mcp/servers.mjs.map +0 -1
- package/resources/tools/mcp.d.mts +0 -2
- package/resources/tools/mcp.d.mts.map +0 -1
- package/resources/tools/mcp.d.ts +0 -2
- package/resources/tools/mcp.d.ts.map +0 -1
- package/resources/tools/mcp.js +0 -6
- package/resources/tools/mcp.js.map +0 -1
- package/resources/tools/mcp.mjs +0 -3
- package/resources/tools/mcp.mjs.map +0 -1
- package/resources/tools/tools.d.mts +0 -515
- package/resources/tools/tools.d.mts.map +0 -1
- package/resources/tools/tools.d.ts +0 -515
- package/resources/tools/tools.d.ts.map +0 -1
- package/resources/tools/tools.js +0 -76
- package/resources/tools/tools.js.map +0 -1
- package/resources/tools/tools.mjs +0 -71
- package/resources/tools/tools.mjs.map +0 -1
- package/resources/voice-beta/chat.d.mts +0 -19
- package/resources/voice-beta/chat.d.mts.map +0 -1
- package/resources/voice-beta/chat.d.ts +0 -19
- package/resources/voice-beta/chat.d.ts.map +0 -1
- package/resources/voice-beta/chat.js +0 -17
- package/resources/voice-beta/chat.js.map +0 -1
- package/resources/voice-beta/chat.mjs +0 -13
- package/resources/voice-beta/chat.mjs.map +0 -1
- package/resources/voice-beta/index.d.mts +0 -3
- package/resources/voice-beta/index.d.mts.map +0 -1
- package/resources/voice-beta/index.d.ts +0 -3
- package/resources/voice-beta/index.d.ts.map +0 -1
- package/resources/voice-beta/index.js +0 -9
- package/resources/voice-beta/index.js.map +0 -1
- package/resources/voice-beta/index.mjs +0 -4
- package/resources/voice-beta/index.mjs.map +0 -1
- package/resources/voice-beta/voice-beta.d.mts +0 -10
- package/resources/voice-beta/voice-beta.d.mts.map +0 -1
- package/resources/voice-beta/voice-beta.d.ts +0 -10
- package/resources/voice-beta/voice-beta.d.ts.map +0 -1
- package/resources/voice-beta/voice-beta.js +0 -17
- package/resources/voice-beta/voice-beta.js.map +0 -1
- package/resources/voice-beta/voice-beta.mjs +0 -12
- package/resources/voice-beta/voice-beta.mjs.map +0 -1
- package/resources/voice-beta.d.mts +0 -2
- package/resources/voice-beta.d.mts.map +0 -1
- package/resources/voice-beta.d.ts +0 -2
- package/resources/voice-beta.d.ts.map +0 -1
- package/resources/voice-beta.js +0 -6
- package/resources/voice-beta.js.map +0 -1
- package/resources/voice-beta.mjs +0 -3
- package/resources/voice-beta.mjs.map +0 -1
- package/src/resources/-internal-templates/-internal-templates.ts +0 -441
- package/src/resources/-internal-templates/deployment.ts +0 -88
- package/src/resources/-internal-templates/index.ts +0 -14
- package/src/resources/-internal-templates.ts +0 -3
- package/src/resources/agents/archival-memory.ts +0 -192
- package/src/resources/agents/core-memory/blocks.ts +0 -341
- package/src/resources/agents/core-memory/core-memory.ts +0 -201
- package/src/resources/agents/core-memory/index.ts +0 -13
- package/src/resources/agents/core-memory.ts +0 -3
- package/src/resources/agents/sources.ts +0 -59
- package/src/resources/client-side-access-tokens.ts +0 -166
- package/src/resources/embeddings.ts +0 -39
- package/src/resources/health.ts +0 -27
- package/src/resources/jobs.ts +0 -219
- package/src/resources/messages/batches.ts +0 -283
- package/src/resources/messages/index.ts +0 -13
- package/src/resources/messages/messages.ts +0 -33
- package/src/resources/messages.ts +0 -3
- package/src/resources/projects.ts +0 -45
- package/src/resources/providers.ts +0 -261
- package/src/resources/sources/files.ts +0 -82
- package/src/resources/sources/index.ts +0 -26
- package/src/resources/sources/sources.ts +0 -702
- package/src/resources/sources.ts +0 -3
- package/src/resources/telemetry.ts +0 -20
- package/src/resources/tools/composio/apps.ts +0 -198
- package/src/resources/tools/composio/composio.ts +0 -31
- package/src/resources/tools/composio/index.ts +0 -4
- package/src/resources/tools/composio.ts +0 -3
- package/src/resources/tools/index.ts +0 -23
- package/src/resources/tools/mcp/index.ts +0 -24
- package/src/resources/tools/mcp/mcp.ts +0 -63
- package/src/resources/tools/mcp/oauth.ts +0 -50
- package/src/resources/tools/mcp/servers/index.ts +0 -23
- package/src/resources/tools/mcp/servers/servers.ts +0 -587
- package/src/resources/tools/mcp/servers/tools.ts +0 -130
- package/src/resources/tools/mcp/servers.ts +0 -3
- package/src/resources/tools/mcp.ts +0 -3
- package/src/resources/tools/tools.ts +0 -663
- package/src/resources/voice-beta/chat.ts +0 -33
- package/src/resources/voice-beta/index.ts +0 -4
- package/src/resources/voice-beta/voice-beta.ts +0 -19
- package/src/resources/voice-beta.ts +0 -3
- /package/resources/{messages → batches}/index.js +0 -0
- /package/resources/{messages → batches}/index.mjs +0 -0
|
@@ -1,19 +1,36 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as MessagesAPI from "./messages.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as ToolsAPI from "../tools.js";
|
|
4
4
|
import * as AgentsAPI from "./agents.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as RunsAPI from "../runs/runs.js";
|
|
6
6
|
import { APIPromise } from "../../core/api-promise.js";
|
|
7
|
+
import { ArrayPage, type ArrayPageParams, ObjectPage, PagePromise } from "../../core/pagination.js";
|
|
8
|
+
import { Stream } from "../../core/streaming.js";
|
|
7
9
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
8
10
|
export declare class Messages extends APIResource {
|
|
9
11
|
/**
|
|
10
|
-
*
|
|
12
|
+
* Process a user message and return the agent's response. This endpoint accepts a
|
|
13
|
+
* message from a user and processes it through the agent.
|
|
14
|
+
*
|
|
15
|
+
* The response format is controlled by the `streaming` field in the request body:
|
|
16
|
+
*
|
|
17
|
+
* - If `streaming=false` (default): Returns a complete LettaResponse with all
|
|
18
|
+
* messages
|
|
19
|
+
* - If `streaming=true`: Returns a Server-Sent Events (SSE) stream
|
|
20
|
+
*
|
|
21
|
+
* Additional streaming options (only used when streaming=true):
|
|
22
|
+
*
|
|
23
|
+
* - `stream_tokens`: Stream individual tokens instead of complete steps
|
|
24
|
+
* - `include_pings`: Include keepalive pings to prevent connection timeouts
|
|
25
|
+
* - `background`: Process the request in the background
|
|
11
26
|
*/
|
|
12
|
-
|
|
27
|
+
create(agentID: string, body: MessageCreateParamsNonStreaming, options?: RequestOptions): APIPromise<LettaResponse>;
|
|
28
|
+
create(agentID: string, body: MessageCreateParamsStreaming, options?: RequestOptions): APIPromise<Stream<LettaStreamingResponse>>;
|
|
29
|
+
create(agentID: string, body: MessageCreateParamsBase, options?: RequestOptions): APIPromise<Stream<LettaStreamingResponse> | LettaResponse>;
|
|
13
30
|
/**
|
|
14
31
|
* Retrieve message history for an agent.
|
|
15
32
|
*/
|
|
16
|
-
list(agentID: string, query?: MessageListParams | null | undefined, options?: RequestOptions):
|
|
33
|
+
list(agentID: string, query?: MessageListParams | null | undefined, options?: RequestOptions): PagePromise<MessagesArrayPage, Message>;
|
|
17
34
|
/**
|
|
18
35
|
* Cancel runs associated with an agent. If run_ids are passed in, cancel those in
|
|
19
36
|
* particular.
|
|
@@ -22,55 +39,54 @@ export declare class Messages extends APIResource {
|
|
|
22
39
|
*/
|
|
23
40
|
cancel(agentID: string, body?: MessageCancelParams | null | undefined, options?: RequestOptions): APIPromise<MessageCancelResponse>;
|
|
24
41
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* This endpoint processes the message through the agent loop up until the LLM
|
|
28
|
-
* request, then returns the raw request payload that would be sent to the LLM
|
|
29
|
-
* provider. Useful for debugging and inspection.
|
|
42
|
+
* Summarize an agent's conversation history.
|
|
30
43
|
*/
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Search messages across the entire organization with optional project and
|
|
34
|
-
* template filtering. Returns messages with FTS/vector ranks and total RRF score.
|
|
35
|
-
*
|
|
36
|
-
* This is a cloud-only feature.
|
|
37
|
-
*/
|
|
38
|
-
search(body: MessageSearchParams, options?: RequestOptions): APIPromise<MessageSearchResponse>;
|
|
39
|
-
/**
|
|
40
|
-
* Process a user message and return the agent's response. This endpoint accepts a
|
|
41
|
-
* message from a user and processes it through the agent.
|
|
42
|
-
*/
|
|
43
|
-
send(agentID: string, body: MessageSendParams, options?: RequestOptions): APIPromise<LettaResponse>;
|
|
44
|
+
compact(agentID: string, options?: RequestOptions): APIPromise<void>;
|
|
44
45
|
/**
|
|
45
46
|
* Asynchronously process a user message and return a run object. The actual
|
|
46
47
|
* processing happens in the background, and the status can be checked using the
|
|
47
48
|
* run ID.
|
|
48
49
|
*
|
|
49
|
-
* This is "asynchronous" in the sense that it's a background
|
|
50
|
-
* must be fetched by the run ID.
|
|
50
|
+
* This is "asynchronous" in the sense that it's a background run and explicitly
|
|
51
|
+
* must be fetched by the run ID.
|
|
51
52
|
*/
|
|
52
|
-
|
|
53
|
+
createAsync(agentID: string, body: MessageCreateAsyncParams, options?: RequestOptions): APIPromise<Run>;
|
|
54
|
+
/**
|
|
55
|
+
* Resets the messages for an agent
|
|
56
|
+
*/
|
|
57
|
+
reset(agentID: string, body: MessageResetParams, options?: RequestOptions): APIPromise<AgentsAPI.AgentState | null>;
|
|
53
58
|
/**
|
|
54
59
|
* Process a user message and return the agent's response. This endpoint accepts a
|
|
55
60
|
* message from a user and processes it through the agent. It will stream the steps
|
|
56
61
|
* of the response always, and stream the tokens if 'stream_tokens' is set to True.
|
|
57
62
|
*/
|
|
58
|
-
|
|
63
|
+
stream(agentID: string, body: MessageStreamParams, options?: RequestOptions): APIPromise<Stream<LettaStreamingResponse>>;
|
|
59
64
|
}
|
|
65
|
+
export type MessagesArrayPage = ArrayPage<Message>;
|
|
66
|
+
export type RunsArrayPage = ArrayPage<Run>;
|
|
67
|
+
export type InternalMessagesObjectPage = ObjectPage<InternalMessage>;
|
|
60
68
|
/**
|
|
61
69
|
* Input to approve or deny a tool call request
|
|
62
70
|
*/
|
|
63
71
|
export interface ApprovalCreate {
|
|
64
72
|
/**
|
|
65
|
-
* The message ID of the approval request
|
|
73
|
+
* @deprecated The message ID of the approval request
|
|
66
74
|
*/
|
|
67
|
-
approval_request_id
|
|
75
|
+
approval_request_id?: string | null;
|
|
68
76
|
/**
|
|
69
|
-
*
|
|
77
|
+
* The list of approval responses
|
|
70
78
|
*/
|
|
71
|
-
|
|
79
|
+
approvals?: Array<ApprovalReturn | ToolReturn> | null;
|
|
72
80
|
/**
|
|
73
|
-
*
|
|
81
|
+
* @deprecated Whether the tool has been approved
|
|
82
|
+
*/
|
|
83
|
+
approve?: boolean | null;
|
|
84
|
+
/**
|
|
85
|
+
* The multi-agent group that the message was sent in
|
|
86
|
+
*/
|
|
87
|
+
group_id?: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* @deprecated An optional explanation for the provided approval status
|
|
74
90
|
*/
|
|
75
91
|
reason?: string | null;
|
|
76
92
|
/**
|
|
@@ -90,7 +106,7 @@ export interface ApprovalRequestMessage {
|
|
|
90
106
|
id: string;
|
|
91
107
|
date: string;
|
|
92
108
|
/**
|
|
93
|
-
* The tool call that has been requested by the llm to run
|
|
109
|
+
* @deprecated The tool call that has been requested by the llm to run
|
|
94
110
|
*/
|
|
95
111
|
tool_call: ToolCall | ToolCallDelta;
|
|
96
112
|
is_err?: boolean | null;
|
|
@@ -104,6 +120,11 @@ export interface ApprovalRequestMessage {
|
|
|
104
120
|
sender_id?: string | null;
|
|
105
121
|
seq_id?: number | null;
|
|
106
122
|
step_id?: string | null;
|
|
123
|
+
/**
|
|
124
|
+
* The tool calls that have been requested by the llm to run, which are pending
|
|
125
|
+
* approval
|
|
126
|
+
*/
|
|
127
|
+
tool_calls?: Array<ToolCall> | ToolCallDelta | null;
|
|
107
128
|
}
|
|
108
129
|
/**
|
|
109
130
|
* A message representing a response form the user indicating whether a tool has
|
|
@@ -117,15 +138,19 @@ export interface ApprovalRequestMessage {
|
|
|
117
138
|
*/
|
|
118
139
|
export interface ApprovalResponseMessage {
|
|
119
140
|
id: string;
|
|
141
|
+
date: string;
|
|
120
142
|
/**
|
|
121
|
-
* The message ID of the approval request
|
|
143
|
+
* @deprecated The message ID of the approval request
|
|
122
144
|
*/
|
|
123
|
-
approval_request_id
|
|
145
|
+
approval_request_id?: string | null;
|
|
124
146
|
/**
|
|
125
|
-
*
|
|
147
|
+
* The list of approval responses
|
|
126
148
|
*/
|
|
127
|
-
|
|
128
|
-
|
|
149
|
+
approvals?: Array<ApprovalReturn | ToolReturn> | null;
|
|
150
|
+
/**
|
|
151
|
+
* @deprecated Whether the tool has been approved
|
|
152
|
+
*/
|
|
153
|
+
approve?: boolean | null;
|
|
129
154
|
is_err?: boolean | null;
|
|
130
155
|
/**
|
|
131
156
|
* The type of the message.
|
|
@@ -134,7 +159,7 @@ export interface ApprovalResponseMessage {
|
|
|
134
159
|
name?: string | null;
|
|
135
160
|
otid?: string | null;
|
|
136
161
|
/**
|
|
137
|
-
* An optional explanation for the provided approval status
|
|
162
|
+
* @deprecated An optional explanation for the provided approval status
|
|
138
163
|
*/
|
|
139
164
|
reason?: string | null;
|
|
140
165
|
run_id?: string | null;
|
|
@@ -142,6 +167,24 @@ export interface ApprovalResponseMessage {
|
|
|
142
167
|
seq_id?: number | null;
|
|
143
168
|
step_id?: string | null;
|
|
144
169
|
}
|
|
170
|
+
export interface ApprovalReturn {
|
|
171
|
+
/**
|
|
172
|
+
* Whether the tool has been approved
|
|
173
|
+
*/
|
|
174
|
+
approve: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* The ID of the tool call that corresponds to this approval
|
|
177
|
+
*/
|
|
178
|
+
tool_call_id: string;
|
|
179
|
+
/**
|
|
180
|
+
* An optional explanation for the provided approval status
|
|
181
|
+
*/
|
|
182
|
+
reason?: string | null;
|
|
183
|
+
/**
|
|
184
|
+
* The message type to be created.
|
|
185
|
+
*/
|
|
186
|
+
type?: 'approval';
|
|
187
|
+
}
|
|
145
188
|
/**
|
|
146
189
|
* A message sent by the LLM in response to user input. Used in the LLM context.
|
|
147
190
|
*
|
|
@@ -170,6 +213,26 @@ export interface AssistantMessage {
|
|
|
170
213
|
seq_id?: number | null;
|
|
171
214
|
step_id?: string | null;
|
|
172
215
|
}
|
|
216
|
+
/**
|
|
217
|
+
* A message for notifying the developer that an event that has occured (e.g. a
|
|
218
|
+
* compaction). Events are NOT part of the context window.
|
|
219
|
+
*/
|
|
220
|
+
export interface EventMessage {
|
|
221
|
+
id: string;
|
|
222
|
+
date: string;
|
|
223
|
+
event_data: {
|
|
224
|
+
[key: string]: unknown;
|
|
225
|
+
};
|
|
226
|
+
event_type: 'compaction';
|
|
227
|
+
is_err?: boolean | null;
|
|
228
|
+
message_type?: 'event';
|
|
229
|
+
name?: string | null;
|
|
230
|
+
otid?: string | null;
|
|
231
|
+
run_id?: string | null;
|
|
232
|
+
sender_id?: string | null;
|
|
233
|
+
seq_id?: number | null;
|
|
234
|
+
step_id?: string | null;
|
|
235
|
+
}
|
|
173
236
|
/**
|
|
174
237
|
* Representation of an agent's internal reasoning where reasoning content has been
|
|
175
238
|
* hidden from the response.
|
|
@@ -261,6 +324,220 @@ export declare namespace ImageContent {
|
|
|
261
324
|
type?: 'letta';
|
|
262
325
|
}
|
|
263
326
|
}
|
|
327
|
+
/**
|
|
328
|
+
* Letta's internal representation of a message. Includes methods to convert to/from LLM provider formats.
|
|
329
|
+
*
|
|
330
|
+
* Attributes:
|
|
331
|
+
* id (str): The unique identifier of the message.
|
|
332
|
+
* role (MessageRole): The role of the participant.
|
|
333
|
+
* text (str): The text of the message.
|
|
334
|
+
* user_id (str): The unique identifier of the user.
|
|
335
|
+
* agent_id (str): The unique identifier of the agent.
|
|
336
|
+
* model (str): The model used to make the function call.
|
|
337
|
+
* name (str): The name of the participant.
|
|
338
|
+
* created_at (datetime): The time the message was created.
|
|
339
|
+
* tool_calls (List[OpenAIToolCall,]): The list of tool calls requested.
|
|
340
|
+
* tool_call_id (str): The id of the tool call.
|
|
341
|
+
* step_id (str): The id of the step that this message was created in.
|
|
342
|
+
* otid (str): The offline threading id associated with this message.
|
|
343
|
+
* tool_returns (List[ToolReturn]): The list of tool returns requested.
|
|
344
|
+
* group_id (str): The multi-agent group that the message was sent in.
|
|
345
|
+
* sender_id (str): The id of the sender of the message, can be an identity id or agent id.
|
|
346
|
+
*
|
|
347
|
+
* t
|
|
348
|
+
*/
|
|
349
|
+
export interface InternalMessage {
|
|
350
|
+
/**
|
|
351
|
+
* The human-friendly ID of the Message
|
|
352
|
+
*/
|
|
353
|
+
id: string;
|
|
354
|
+
/**
|
|
355
|
+
* The role of the participant.
|
|
356
|
+
*/
|
|
357
|
+
role: MessageRole;
|
|
358
|
+
/**
|
|
359
|
+
* The unique identifier of the agent.
|
|
360
|
+
*/
|
|
361
|
+
agent_id?: string | null;
|
|
362
|
+
/**
|
|
363
|
+
* The id of the approval request if this message is associated with a tool call
|
|
364
|
+
* request.
|
|
365
|
+
*/
|
|
366
|
+
approval_request_id?: string | null;
|
|
367
|
+
/**
|
|
368
|
+
* The list of approvals for this message.
|
|
369
|
+
*/
|
|
370
|
+
approvals?: Array<ApprovalReturn | InternalMessage.LettaSchemasMessageToolReturn> | null;
|
|
371
|
+
/**
|
|
372
|
+
* Whether tool call is approved.
|
|
373
|
+
*/
|
|
374
|
+
approve?: boolean | null;
|
|
375
|
+
/**
|
|
376
|
+
* The id of the LLMBatchItem that this message is associated with
|
|
377
|
+
*/
|
|
378
|
+
batch_item_id?: string | null;
|
|
379
|
+
/**
|
|
380
|
+
* The content of the message.
|
|
381
|
+
*/
|
|
382
|
+
content?: Array<TextContent | ImageContent | ToolCallContent | ToolReturnContent | ReasoningContent | RedactedReasoningContent | OmittedReasoningContent | InternalMessage.SummarizedReasoningContent> | null;
|
|
383
|
+
/**
|
|
384
|
+
* The timestamp when the object was created.
|
|
385
|
+
*/
|
|
386
|
+
created_at?: string;
|
|
387
|
+
/**
|
|
388
|
+
* The id of the user that made this object.
|
|
389
|
+
*/
|
|
390
|
+
created_by_id?: string | null;
|
|
391
|
+
/**
|
|
392
|
+
* The reason the tool call request was denied.
|
|
393
|
+
*/
|
|
394
|
+
denial_reason?: string | null;
|
|
395
|
+
/**
|
|
396
|
+
* The multi-agent group that the message was sent in
|
|
397
|
+
*/
|
|
398
|
+
group_id?: string | null;
|
|
399
|
+
/**
|
|
400
|
+
* Whether this message is part of an error step. Used only for debugging purposes.
|
|
401
|
+
*/
|
|
402
|
+
is_err?: boolean | null;
|
|
403
|
+
/**
|
|
404
|
+
* The id of the user that made this object.
|
|
405
|
+
*/
|
|
406
|
+
last_updated_by_id?: string | null;
|
|
407
|
+
/**
|
|
408
|
+
* The model used to make the function call.
|
|
409
|
+
*/
|
|
410
|
+
model?: string | null;
|
|
411
|
+
/**
|
|
412
|
+
* For role user/assistant: the (optional) name of the participant. For role
|
|
413
|
+
* tool/function: the name of the function called.
|
|
414
|
+
*/
|
|
415
|
+
name?: string | null;
|
|
416
|
+
/**
|
|
417
|
+
* The offline threading id associated with this message
|
|
418
|
+
*/
|
|
419
|
+
otid?: string | null;
|
|
420
|
+
/**
|
|
421
|
+
* The id of the run that this message was created in.
|
|
422
|
+
*/
|
|
423
|
+
run_id?: string | null;
|
|
424
|
+
/**
|
|
425
|
+
* The id of the sender of the message, can be an identity id or agent id
|
|
426
|
+
*/
|
|
427
|
+
sender_id?: string | null;
|
|
428
|
+
/**
|
|
429
|
+
* The id of the step that this message was created in.
|
|
430
|
+
*/
|
|
431
|
+
step_id?: string | null;
|
|
432
|
+
/**
|
|
433
|
+
* The ID of the tool call. Only applicable for role tool.
|
|
434
|
+
*/
|
|
435
|
+
tool_call_id?: string | null;
|
|
436
|
+
/**
|
|
437
|
+
* The list of tool calls requested. Only applicable for role assistant.
|
|
438
|
+
*/
|
|
439
|
+
tool_calls?: Array<InternalMessage.ToolCall> | null;
|
|
440
|
+
/**
|
|
441
|
+
* Tool execution return information for prior tool calls
|
|
442
|
+
*/
|
|
443
|
+
tool_returns?: Array<InternalMessage.ToolReturn> | null;
|
|
444
|
+
/**
|
|
445
|
+
* The timestamp when the object was last updated.
|
|
446
|
+
*/
|
|
447
|
+
updated_at?: string | null;
|
|
448
|
+
}
|
|
449
|
+
export declare namespace InternalMessage {
|
|
450
|
+
interface LettaSchemasMessageToolReturn {
|
|
451
|
+
/**
|
|
452
|
+
* The status of the tool call
|
|
453
|
+
*/
|
|
454
|
+
status: 'success' | 'error';
|
|
455
|
+
/**
|
|
456
|
+
* The function response string
|
|
457
|
+
*/
|
|
458
|
+
func_response?: string | null;
|
|
459
|
+
/**
|
|
460
|
+
* Captured stderr from the tool invocation
|
|
461
|
+
*/
|
|
462
|
+
stderr?: Array<string> | null;
|
|
463
|
+
/**
|
|
464
|
+
* Captured stdout (e.g. prints, logs) from the tool invocation
|
|
465
|
+
*/
|
|
466
|
+
stdout?: Array<string> | null;
|
|
467
|
+
/**
|
|
468
|
+
* The ID for the tool call
|
|
469
|
+
*/
|
|
470
|
+
tool_call_id?: unknown;
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* The style of reasoning content returned by the OpenAI Responses API
|
|
474
|
+
*/
|
|
475
|
+
interface SummarizedReasoningContent {
|
|
476
|
+
/**
|
|
477
|
+
* The unique identifier for this reasoning step.
|
|
478
|
+
*/
|
|
479
|
+
id: string;
|
|
480
|
+
/**
|
|
481
|
+
* Summaries of the reasoning content.
|
|
482
|
+
*/
|
|
483
|
+
summary: Array<SummarizedReasoningContent.Summary>;
|
|
484
|
+
/**
|
|
485
|
+
* The encrypted reasoning content.
|
|
486
|
+
*/
|
|
487
|
+
encrypted_content?: string;
|
|
488
|
+
/**
|
|
489
|
+
* Indicates this is a summarized reasoning step.
|
|
490
|
+
*/
|
|
491
|
+
type?: 'summarized_reasoning';
|
|
492
|
+
}
|
|
493
|
+
namespace SummarizedReasoningContent {
|
|
494
|
+
interface Summary {
|
|
495
|
+
/**
|
|
496
|
+
* The index of the summary part.
|
|
497
|
+
*/
|
|
498
|
+
index: number;
|
|
499
|
+
/**
|
|
500
|
+
* The text of the summary part.
|
|
501
|
+
*/
|
|
502
|
+
text: string;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
interface ToolCall {
|
|
506
|
+
id: string;
|
|
507
|
+
function: ToolCall.Function;
|
|
508
|
+
type: 'function';
|
|
509
|
+
[k: string]: unknown;
|
|
510
|
+
}
|
|
511
|
+
namespace ToolCall {
|
|
512
|
+
interface Function {
|
|
513
|
+
arguments: string;
|
|
514
|
+
name: string;
|
|
515
|
+
[k: string]: unknown;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
interface ToolReturn {
|
|
519
|
+
/**
|
|
520
|
+
* The status of the tool call
|
|
521
|
+
*/
|
|
522
|
+
status: 'success' | 'error';
|
|
523
|
+
/**
|
|
524
|
+
* The function response string
|
|
525
|
+
*/
|
|
526
|
+
func_response?: string | null;
|
|
527
|
+
/**
|
|
528
|
+
* Captured stderr from the tool invocation
|
|
529
|
+
*/
|
|
530
|
+
stderr?: Array<string> | null;
|
|
531
|
+
/**
|
|
532
|
+
* Captured stdout (e.g. prints, logs) from the tool invocation
|
|
533
|
+
*/
|
|
534
|
+
stdout?: Array<string> | null;
|
|
535
|
+
/**
|
|
536
|
+
* The ID for the tool call
|
|
537
|
+
*/
|
|
538
|
+
tool_call_id?: unknown;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
264
541
|
/**
|
|
265
542
|
* Status of the job.
|
|
266
543
|
*/
|
|
@@ -271,35 +548,30 @@ export interface LettaAssistantMessageContentUnion {
|
|
|
271
548
|
* The text content of the message.
|
|
272
549
|
*/
|
|
273
550
|
text: string;
|
|
551
|
+
/**
|
|
552
|
+
* Stores a unique identifier for any reasoning associated with this text content.
|
|
553
|
+
*/
|
|
554
|
+
signature?: string | null;
|
|
274
555
|
/**
|
|
275
556
|
* The type of the message.
|
|
276
557
|
*/
|
|
277
558
|
type?: 'text';
|
|
278
559
|
}
|
|
279
|
-
/**
|
|
280
|
-
* A message generated by the system. Never streamed back on a response, only used
|
|
281
|
-
* for cursor pagination.
|
|
282
|
-
*
|
|
283
|
-
* Args: id (str): The ID of the message date (datetime): The date the message was
|
|
284
|
-
* created in ISO format name (Optional[str]): The name of the sender of the
|
|
285
|
-
* message content (str): The message content sent by the system
|
|
286
|
-
*/
|
|
287
|
-
export type LettaMessageUnion = SystemMessage | UserMessage | ReasoningMessage | HiddenReasoningMessage | ToolCallMessage | ToolsAPI.ToolReturnMessage | AssistantMessage | ApprovalRequestMessage | ApprovalResponseMessage;
|
|
288
560
|
export interface LettaRequest {
|
|
289
561
|
/**
|
|
290
|
-
* The
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* The name of the message argument in the designated message tool.
|
|
562
|
+
* @deprecated The name of the message argument in the designated message tool.
|
|
563
|
+
* Still supported for legacy agent types, but deprecated for letta_v1_agent
|
|
564
|
+
* onward.
|
|
295
565
|
*/
|
|
296
566
|
assistant_message_tool_kwarg?: string;
|
|
297
567
|
/**
|
|
298
|
-
* The name of the designated message tool.
|
|
568
|
+
* @deprecated The name of the designated message tool. Still supported for legacy
|
|
569
|
+
* agent types, but deprecated for letta_v1_agent onward.
|
|
299
570
|
*/
|
|
300
571
|
assistant_message_tool_name?: string;
|
|
301
572
|
/**
|
|
302
|
-
* If set to True, enables reasoning before responses or tool calls
|
|
573
|
+
* @deprecated If set to True, enables reasoning before responses or tool calls
|
|
574
|
+
* from the agent.
|
|
303
575
|
*/
|
|
304
576
|
enable_thinking?: string;
|
|
305
577
|
/**
|
|
@@ -307,16 +579,61 @@ export interface LettaRequest {
|
|
|
307
579
|
* all messages.
|
|
308
580
|
*/
|
|
309
581
|
include_return_message_types?: Array<MessageType> | null;
|
|
582
|
+
/**
|
|
583
|
+
* Syntactic sugar for a single user message. Equivalent to messages=[{'role':
|
|
584
|
+
* 'user', 'content': input}].
|
|
585
|
+
*/
|
|
586
|
+
input?: string | Array<TextContent | ImageContent | ToolCallContent | ToolReturnContent | ReasoningContent | RedactedReasoningContent | OmittedReasoningContent | LettaRequest.SummarizedReasoningContent> | null;
|
|
310
587
|
/**
|
|
311
588
|
* Maximum number of steps the agent should take to process the request.
|
|
312
589
|
*/
|
|
313
590
|
max_steps?: number;
|
|
314
591
|
/**
|
|
315
|
-
*
|
|
316
|
-
|
|
592
|
+
* The messages to be sent to the agent.
|
|
593
|
+
*/
|
|
594
|
+
messages?: Array<AgentsAPI.MessageCreate | ApprovalCreate> | null;
|
|
595
|
+
/**
|
|
596
|
+
* @deprecated Whether the server should parse specific tool call arguments
|
|
597
|
+
* (default `send_message`) as `AssistantMessage` objects. Still supported for
|
|
598
|
+
* legacy agent types, but deprecated for letta_v1_agent onward.
|
|
317
599
|
*/
|
|
318
600
|
use_assistant_message?: boolean;
|
|
319
601
|
}
|
|
602
|
+
export declare namespace LettaRequest {
|
|
603
|
+
/**
|
|
604
|
+
* The style of reasoning content returned by the OpenAI Responses API
|
|
605
|
+
*/
|
|
606
|
+
interface SummarizedReasoningContent {
|
|
607
|
+
/**
|
|
608
|
+
* The unique identifier for this reasoning step.
|
|
609
|
+
*/
|
|
610
|
+
id: string;
|
|
611
|
+
/**
|
|
612
|
+
* Summaries of the reasoning content.
|
|
613
|
+
*/
|
|
614
|
+
summary: Array<SummarizedReasoningContent.Summary>;
|
|
615
|
+
/**
|
|
616
|
+
* The encrypted reasoning content.
|
|
617
|
+
*/
|
|
618
|
+
encrypted_content?: string;
|
|
619
|
+
/**
|
|
620
|
+
* Indicates this is a summarized reasoning step.
|
|
621
|
+
*/
|
|
622
|
+
type?: 'summarized_reasoning';
|
|
623
|
+
}
|
|
624
|
+
namespace SummarizedReasoningContent {
|
|
625
|
+
interface Summary {
|
|
626
|
+
/**
|
|
627
|
+
* The index of the summary part.
|
|
628
|
+
*/
|
|
629
|
+
index: number;
|
|
630
|
+
/**
|
|
631
|
+
* The text of the summary part.
|
|
632
|
+
*/
|
|
633
|
+
text: string;
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
}
|
|
320
637
|
/**
|
|
321
638
|
* Response object from an agent interaction, consisting of the new messages
|
|
322
639
|
* generated by the agent and usage statistics. The type of the returned messages
|
|
@@ -330,7 +647,7 @@ export interface LettaResponse {
|
|
|
330
647
|
/**
|
|
331
648
|
* The messages returned by the agent.
|
|
332
649
|
*/
|
|
333
|
-
messages: Array<
|
|
650
|
+
messages: Array<Message>;
|
|
334
651
|
/**
|
|
335
652
|
* The stop reason from Letta indicating why agent loop stopped execution.
|
|
336
653
|
*/
|
|
@@ -375,10 +692,6 @@ export declare namespace LettaResponse {
|
|
|
375
692
|
* The number of steps taken by the agent.
|
|
376
693
|
*/
|
|
377
694
|
step_count?: number;
|
|
378
|
-
/**
|
|
379
|
-
* The messages generated per step
|
|
380
|
-
*/
|
|
381
|
-
steps_messages?: Array<Array<MessagesAPI.Message>> | null;
|
|
382
695
|
/**
|
|
383
696
|
* The total number of tokens processed by the agent.
|
|
384
697
|
*/
|
|
@@ -387,28 +700,29 @@ export declare namespace LettaResponse {
|
|
|
387
700
|
}
|
|
388
701
|
export interface LettaStreamingRequest {
|
|
389
702
|
/**
|
|
390
|
-
* The
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
/**
|
|
394
|
-
* The name of the message argument in the designated message tool.
|
|
703
|
+
* @deprecated The name of the message argument in the designated message tool.
|
|
704
|
+
* Still supported for legacy agent types, but deprecated for letta_v1_agent
|
|
705
|
+
* onward.
|
|
395
706
|
*/
|
|
396
707
|
assistant_message_tool_kwarg?: string;
|
|
397
708
|
/**
|
|
398
|
-
* The name of the designated message tool.
|
|
709
|
+
* @deprecated The name of the designated message tool. Still supported for legacy
|
|
710
|
+
* agent types, but deprecated for letta_v1_agent onward.
|
|
399
711
|
*/
|
|
400
712
|
assistant_message_tool_name?: string;
|
|
401
713
|
/**
|
|
402
|
-
* Whether to process the request in the background
|
|
714
|
+
* Whether to process the request in the background (only used when
|
|
715
|
+
* streaming=true).
|
|
403
716
|
*/
|
|
404
717
|
background?: boolean;
|
|
405
718
|
/**
|
|
406
|
-
* If set to True, enables reasoning before responses or tool calls
|
|
719
|
+
* @deprecated If set to True, enables reasoning before responses or tool calls
|
|
720
|
+
* from the agent.
|
|
407
721
|
*/
|
|
408
722
|
enable_thinking?: string;
|
|
409
723
|
/**
|
|
410
724
|
* Whether to include periodic keepalive ping messages in the stream to prevent
|
|
411
|
-
* connection timeouts.
|
|
725
|
+
* connection timeouts (only used when streaming=true).
|
|
412
726
|
*/
|
|
413
727
|
include_pings?: boolean;
|
|
414
728
|
/**
|
|
@@ -417,158 +731,160 @@ export interface LettaStreamingRequest {
|
|
|
417
731
|
*/
|
|
418
732
|
include_return_message_types?: Array<MessageType> | null;
|
|
419
733
|
/**
|
|
420
|
-
*
|
|
421
|
-
|
|
422
|
-
max_steps?: number;
|
|
423
|
-
/**
|
|
424
|
-
* Flag to determine if individual tokens should be streamed, rather than streaming
|
|
425
|
-
* per step.
|
|
426
|
-
*/
|
|
427
|
-
stream_tokens?: boolean;
|
|
428
|
-
/**
|
|
429
|
-
* Whether the server should parse specific tool call arguments (default
|
|
430
|
-
* `send_message`) as `AssistantMessage` objects.
|
|
431
|
-
*/
|
|
432
|
-
use_assistant_message?: boolean;
|
|
433
|
-
}
|
|
434
|
-
export type LettaUserMessageContentUnion = TextContent | ImageContent;
|
|
435
|
-
/**
|
|
436
|
-
* Letta's internal representation of a message. Includes methods to convert to/from LLM provider formats.
|
|
437
|
-
*
|
|
438
|
-
* Attributes:
|
|
439
|
-
* id (str): The unique identifier of the message.
|
|
440
|
-
* role (MessageRole): The role of the participant.
|
|
441
|
-
* text (str): The text of the message.
|
|
442
|
-
* user_id (str): The unique identifier of the user.
|
|
443
|
-
* agent_id (str): The unique identifier of the agent.
|
|
444
|
-
* model (str): The model used to make the function call.
|
|
445
|
-
* name (str): The name of the participant.
|
|
446
|
-
* created_at (datetime): The time the message was created.
|
|
447
|
-
* tool_calls (List[OpenAIToolCall,]): The list of tool calls requested.
|
|
448
|
-
* tool_call_id (str): The id of the tool call.
|
|
449
|
-
* step_id (str): The id of the step that this message was created in.
|
|
450
|
-
* otid (str): The offline threading id associated with this message.
|
|
451
|
-
* tool_returns (List[ToolReturn]): The list of tool returns requested.
|
|
452
|
-
* group_id (str): The multi-agent group that the message was sent in.
|
|
453
|
-
* sender_id (str): The id of the sender of the message, can be an identity id or agent id.
|
|
454
|
-
*
|
|
455
|
-
* t
|
|
456
|
-
*/
|
|
457
|
-
export interface Message {
|
|
458
|
-
/**
|
|
459
|
-
* The role of the participant.
|
|
460
|
-
*/
|
|
461
|
-
role: MessageRole;
|
|
462
|
-
/**
|
|
463
|
-
* The human-friendly ID of the Message
|
|
464
|
-
*/
|
|
465
|
-
id?: string;
|
|
466
|
-
/**
|
|
467
|
-
* The unique identifier of the agent.
|
|
468
|
-
*/
|
|
469
|
-
agent_id?: string | null;
|
|
470
|
-
/**
|
|
471
|
-
* The id of the approval request if this message is associated with a tool call
|
|
472
|
-
* request.
|
|
473
|
-
*/
|
|
474
|
-
approval_request_id?: string | null;
|
|
475
|
-
/**
|
|
476
|
-
* Whether tool call is approved.
|
|
477
|
-
*/
|
|
478
|
-
approve?: boolean | null;
|
|
479
|
-
/**
|
|
480
|
-
* The id of the LLMBatchItem that this message is associated with
|
|
481
|
-
*/
|
|
482
|
-
batch_item_id?: string | null;
|
|
483
|
-
/**
|
|
484
|
-
* The content of the message.
|
|
485
|
-
*/
|
|
486
|
-
content?: Array<TextContent | ImageContent | ToolCallContent | ToolReturnContent | ReasoningContent | RedactedReasoningContent | OmittedReasoningContent> | null;
|
|
487
|
-
/**
|
|
488
|
-
* The timestamp when the object was created.
|
|
489
|
-
*/
|
|
490
|
-
created_at?: string;
|
|
491
|
-
/**
|
|
492
|
-
* The id of the user that made this object.
|
|
493
|
-
*/
|
|
494
|
-
created_by_id?: string | null;
|
|
495
|
-
/**
|
|
496
|
-
* The reason the tool call request was denied.
|
|
497
|
-
*/
|
|
498
|
-
denial_reason?: string | null;
|
|
499
|
-
/**
|
|
500
|
-
* The multi-agent group that the message was sent in
|
|
501
|
-
*/
|
|
502
|
-
group_id?: string | null;
|
|
503
|
-
/**
|
|
504
|
-
* Whether this message is part of an error step. Used only for debugging purposes.
|
|
734
|
+
* Syntactic sugar for a single user message. Equivalent to messages=[{'role':
|
|
735
|
+
* 'user', 'content': input}].
|
|
505
736
|
*/
|
|
506
|
-
|
|
737
|
+
input?: string | Array<TextContent | ImageContent | ToolCallContent | ToolReturnContent | ReasoningContent | RedactedReasoningContent | OmittedReasoningContent | LettaStreamingRequest.SummarizedReasoningContent> | null;
|
|
507
738
|
/**
|
|
508
|
-
*
|
|
509
|
-
*/
|
|
510
|
-
last_updated_by_id?: string | null;
|
|
511
|
-
/**
|
|
512
|
-
* The model used to make the function call.
|
|
739
|
+
* Maximum number of steps the agent should take to process the request.
|
|
513
740
|
*/
|
|
514
|
-
|
|
741
|
+
max_steps?: number;
|
|
515
742
|
/**
|
|
516
|
-
*
|
|
517
|
-
* tool/function: the name of the function called.
|
|
743
|
+
* The messages to be sent to the agent.
|
|
518
744
|
*/
|
|
519
|
-
|
|
745
|
+
messages?: Array<AgentsAPI.MessageCreate | ApprovalCreate> | null;
|
|
520
746
|
/**
|
|
521
|
-
*
|
|
747
|
+
* Flag to determine if individual tokens should be streamed, rather than streaming
|
|
748
|
+
* per step (only used when streaming=true).
|
|
522
749
|
*/
|
|
523
|
-
|
|
750
|
+
stream_tokens?: boolean;
|
|
524
751
|
/**
|
|
525
|
-
*
|
|
752
|
+
* If True, returns a streaming response (Server-Sent Events). If False (default),
|
|
753
|
+
* returns a complete response.
|
|
526
754
|
*/
|
|
527
|
-
|
|
755
|
+
streaming?: boolean;
|
|
528
756
|
/**
|
|
529
|
-
*
|
|
757
|
+
* @deprecated Whether the server should parse specific tool call arguments
|
|
758
|
+
* (default `send_message`) as `AssistantMessage` objects. Still supported for
|
|
759
|
+
* legacy agent types, but deprecated for letta_v1_agent onward.
|
|
530
760
|
*/
|
|
531
|
-
|
|
761
|
+
use_assistant_message?: boolean;
|
|
762
|
+
}
|
|
763
|
+
export declare namespace LettaStreamingRequest {
|
|
532
764
|
/**
|
|
533
|
-
* The
|
|
765
|
+
* The style of reasoning content returned by the OpenAI Responses API
|
|
534
766
|
*/
|
|
535
|
-
|
|
767
|
+
interface SummarizedReasoningContent {
|
|
768
|
+
/**
|
|
769
|
+
* The unique identifier for this reasoning step.
|
|
770
|
+
*/
|
|
771
|
+
id: string;
|
|
772
|
+
/**
|
|
773
|
+
* Summaries of the reasoning content.
|
|
774
|
+
*/
|
|
775
|
+
summary: Array<SummarizedReasoningContent.Summary>;
|
|
776
|
+
/**
|
|
777
|
+
* The encrypted reasoning content.
|
|
778
|
+
*/
|
|
779
|
+
encrypted_content?: string;
|
|
780
|
+
/**
|
|
781
|
+
* Indicates this is a summarized reasoning step.
|
|
782
|
+
*/
|
|
783
|
+
type?: 'summarized_reasoning';
|
|
784
|
+
}
|
|
785
|
+
namespace SummarizedReasoningContent {
|
|
786
|
+
interface Summary {
|
|
787
|
+
/**
|
|
788
|
+
* The index of the summary part.
|
|
789
|
+
*/
|
|
790
|
+
index: number;
|
|
791
|
+
/**
|
|
792
|
+
* The text of the summary part.
|
|
793
|
+
*/
|
|
794
|
+
text: string;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
/**
|
|
799
|
+
* Streaming response type for Server-Sent Events (SSE) endpoints. Each event in
|
|
800
|
+
* the stream will be one of these types.
|
|
801
|
+
*/
|
|
802
|
+
export type LettaStreamingResponse = SystemMessage | UserMessage | ReasoningMessage | HiddenReasoningMessage | ToolCallMessage | ToolsAPI.ToolReturnMessage | AssistantMessage | ApprovalRequestMessage | ApprovalResponseMessage | LettaStreamingResponse.LettaPing | LettaStreamingResponse.LettaStopReason | LettaStreamingResponse.LettaUsageStatistics;
|
|
803
|
+
export declare namespace LettaStreamingResponse {
|
|
536
804
|
/**
|
|
537
|
-
*
|
|
805
|
+
* Ping messages are a keep-alive to prevent SSE streams from timing out during
|
|
806
|
+
* long running requests.
|
|
538
807
|
*/
|
|
539
|
-
|
|
808
|
+
interface LettaPing {
|
|
809
|
+
/**
|
|
810
|
+
* The type of the message.
|
|
811
|
+
*/
|
|
812
|
+
message_type: 'ping';
|
|
813
|
+
}
|
|
540
814
|
/**
|
|
541
|
-
*
|
|
815
|
+
* The stop reason from Letta indicating why agent loop stopped execution.
|
|
542
816
|
*/
|
|
543
|
-
|
|
817
|
+
interface LettaStopReason {
|
|
818
|
+
/**
|
|
819
|
+
* The reason why execution stopped.
|
|
820
|
+
*/
|
|
821
|
+
stop_reason: RunsAPI.StopReasonType;
|
|
822
|
+
/**
|
|
823
|
+
* The type of the message.
|
|
824
|
+
*/
|
|
825
|
+
message_type?: 'stop_reason';
|
|
826
|
+
}
|
|
544
827
|
/**
|
|
545
|
-
*
|
|
828
|
+
* Usage statistics for the agent interaction.
|
|
829
|
+
*
|
|
830
|
+
* Attributes: completion_tokens (int): The number of tokens generated by the
|
|
831
|
+
* agent. prompt_tokens (int): The number of tokens in the prompt. total_tokens
|
|
832
|
+
* (int): The total number of tokens processed by the agent. step_count (int): The
|
|
833
|
+
* number of steps taken by the agent.
|
|
546
834
|
*/
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
835
|
+
interface LettaUsageStatistics {
|
|
836
|
+
/**
|
|
837
|
+
* The number of tokens generated by the agent.
|
|
838
|
+
*/
|
|
839
|
+
completion_tokens?: number;
|
|
840
|
+
message_type?: 'usage_statistics';
|
|
841
|
+
/**
|
|
842
|
+
* The number of tokens in the prompt.
|
|
843
|
+
*/
|
|
844
|
+
prompt_tokens?: number;
|
|
845
|
+
/**
|
|
846
|
+
* The background task run IDs associated with the agent interaction
|
|
847
|
+
*/
|
|
848
|
+
run_ids?: Array<string> | null;
|
|
849
|
+
/**
|
|
850
|
+
* The number of steps taken by the agent.
|
|
851
|
+
*/
|
|
852
|
+
step_count?: number;
|
|
853
|
+
/**
|
|
854
|
+
* The total number of tokens processed by the agent.
|
|
855
|
+
*/
|
|
856
|
+
total_tokens?: number;
|
|
562
857
|
}
|
|
563
858
|
}
|
|
859
|
+
export type LettaUserMessageContentUnion = TextContent | ImageContent;
|
|
860
|
+
/**
|
|
861
|
+
* A message generated by the system. Never streamed back on a response, only used
|
|
862
|
+
* for cursor pagination.
|
|
863
|
+
*
|
|
864
|
+
* Args: id (str): The ID of the message date (datetime): The date the message was
|
|
865
|
+
* created in ISO format name (Optional[str]): The name of the sender of the
|
|
866
|
+
* message content (str): The message content sent by the system
|
|
867
|
+
*/
|
|
868
|
+
export type Message = SystemMessage | UserMessage | ReasoningMessage | HiddenReasoningMessage | ToolCallMessage | ToolsAPI.ToolReturnMessage | AssistantMessage | ApprovalRequestMessage | ApprovalResponseMessage | SummaryMessage | EventMessage;
|
|
564
869
|
export type MessageRole = 'assistant' | 'user' | 'tool' | 'function' | 'system' | 'approval';
|
|
565
870
|
export type MessageType = 'system_message' | 'user_message' | 'assistant_message' | 'reasoning_message' | 'hidden_reasoning_message' | 'tool_call_message' | 'tool_return_message' | 'approval_request_message' | 'approval_response_message';
|
|
871
|
+
/**
|
|
872
|
+
* A placeholder for reasoning content we know is present, but isn't returned by
|
|
873
|
+
* the provider (e.g. OpenAI GPT-5 on ChatCompletions)
|
|
874
|
+
*/
|
|
566
875
|
export interface OmittedReasoningContent {
|
|
876
|
+
/**
|
|
877
|
+
* A unique identifier for this reasoning step.
|
|
878
|
+
*/
|
|
879
|
+
signature?: string | null;
|
|
567
880
|
/**
|
|
568
881
|
* Indicates this is an omitted reasoning step.
|
|
569
882
|
*/
|
|
570
883
|
type?: 'omitted_reasoning';
|
|
571
884
|
}
|
|
885
|
+
/**
|
|
886
|
+
* Sent via the Anthropic Messages API
|
|
887
|
+
*/
|
|
572
888
|
export interface ReasoningContent {
|
|
573
889
|
/**
|
|
574
890
|
* Whether the reasoning content was generated by a reasoner model that processed
|
|
@@ -616,6 +932,9 @@ export interface ReasoningMessage {
|
|
|
616
932
|
source?: 'reasoner_model' | 'non_reasoner_model';
|
|
617
933
|
step_id?: string | null;
|
|
618
934
|
}
|
|
935
|
+
/**
|
|
936
|
+
* Sent via the Anthropic Messages API
|
|
937
|
+
*/
|
|
619
938
|
export interface RedactedReasoningContent {
|
|
620
939
|
/**
|
|
621
940
|
* The redacted or filtered intermediate reasoning content.
|
|
@@ -627,20 +946,27 @@ export interface RedactedReasoningContent {
|
|
|
627
946
|
type?: 'redacted_reasoning';
|
|
628
947
|
}
|
|
629
948
|
/**
|
|
630
|
-
* Representation of a run
|
|
631
|
-
*
|
|
632
|
-
*
|
|
633
|
-
* Parameters: id (str): The unique identifier of the run (prefixed with 'run-').
|
|
634
|
-
* status (JobStatus): The status of the run. created_at (datetime): The unix
|
|
635
|
-
* timestamp of when the run was created. completed_at (datetime): The unix
|
|
636
|
-
* timestamp of when the run was completed. user_id (str): The unique identifier of
|
|
637
|
-
* the user associated with the run.
|
|
949
|
+
* Representation of a run - a conversation or processing session for an agent.
|
|
950
|
+
* Runs track when agents process messages and maintain the relationship between
|
|
951
|
+
* agents, steps, and messages.
|
|
638
952
|
*/
|
|
639
953
|
export interface Run {
|
|
640
954
|
/**
|
|
641
955
|
* The human-friendly ID of the Run
|
|
642
956
|
*/
|
|
643
|
-
id
|
|
957
|
+
id: string;
|
|
958
|
+
/**
|
|
959
|
+
* The unique identifier of the agent associated with the run.
|
|
960
|
+
*/
|
|
961
|
+
agent_id: string;
|
|
962
|
+
/**
|
|
963
|
+
* Whether the run was created in background mode.
|
|
964
|
+
*/
|
|
965
|
+
background?: boolean | null;
|
|
966
|
+
/**
|
|
967
|
+
* The base template ID that the run belongs to.
|
|
968
|
+
*/
|
|
969
|
+
base_template_id?: string | null;
|
|
644
970
|
/**
|
|
645
971
|
* Optional error message from attempting to POST the callback endpoint.
|
|
646
972
|
*/
|
|
@@ -654,28 +980,19 @@ export interface Run {
|
|
|
654
980
|
*/
|
|
655
981
|
callback_status_code?: number | null;
|
|
656
982
|
/**
|
|
657
|
-
* If set, POST to this URL when the
|
|
983
|
+
* If set, POST to this URL when the run completes.
|
|
658
984
|
*/
|
|
659
985
|
callback_url?: string | null;
|
|
660
986
|
/**
|
|
661
|
-
* The
|
|
987
|
+
* The timestamp when the run was completed.
|
|
662
988
|
*/
|
|
663
989
|
completed_at?: string | null;
|
|
664
990
|
/**
|
|
665
|
-
* The
|
|
991
|
+
* The timestamp when the run was created.
|
|
666
992
|
*/
|
|
667
993
|
created_at?: string;
|
|
668
994
|
/**
|
|
669
|
-
*
|
|
670
|
-
*/
|
|
671
|
-
created_by_id?: string | null;
|
|
672
|
-
job_type?: JobType;
|
|
673
|
-
/**
|
|
674
|
-
* The id of the user that made this object.
|
|
675
|
-
*/
|
|
676
|
-
last_updated_by_id?: string | null;
|
|
677
|
-
/**
|
|
678
|
-
* The metadata of the job.
|
|
995
|
+
* Additional metadata for the run.
|
|
679
996
|
*/
|
|
680
997
|
metadata?: {
|
|
681
998
|
[key: string]: unknown;
|
|
@@ -685,9 +1002,9 @@ export interface Run {
|
|
|
685
1002
|
*/
|
|
686
1003
|
request_config?: Run.RequestConfig | null;
|
|
687
1004
|
/**
|
|
688
|
-
* The status of the
|
|
1005
|
+
* The current status of the run.
|
|
689
1006
|
*/
|
|
690
|
-
status?:
|
|
1007
|
+
status?: 'created' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
691
1008
|
/**
|
|
692
1009
|
* The reason why the run was stopped.
|
|
693
1010
|
*/
|
|
@@ -700,10 +1017,6 @@ export interface Run {
|
|
|
700
1017
|
* Time to first token for a run in nanoseconds
|
|
701
1018
|
*/
|
|
702
1019
|
ttft_ns?: number | null;
|
|
703
|
-
/**
|
|
704
|
-
* The timestamp when the object was last updated.
|
|
705
|
-
*/
|
|
706
|
-
updated_at?: string | null;
|
|
707
1020
|
}
|
|
708
1021
|
export declare namespace Run {
|
|
709
1022
|
/**
|
|
@@ -730,6 +1043,23 @@ export declare namespace Run {
|
|
|
730
1043
|
use_assistant_message?: boolean;
|
|
731
1044
|
}
|
|
732
1045
|
}
|
|
1046
|
+
/**
|
|
1047
|
+
* A message representing a summary of the conversation. Sent to the LLM as a user
|
|
1048
|
+
* or system message depending on the provider.
|
|
1049
|
+
*/
|
|
1050
|
+
export interface SummaryMessage {
|
|
1051
|
+
id: string;
|
|
1052
|
+
date: string;
|
|
1053
|
+
summary: string;
|
|
1054
|
+
is_err?: boolean | null;
|
|
1055
|
+
message_type?: 'summary';
|
|
1056
|
+
name?: string | null;
|
|
1057
|
+
otid?: string | null;
|
|
1058
|
+
run_id?: string | null;
|
|
1059
|
+
sender_id?: string | null;
|
|
1060
|
+
seq_id?: number | null;
|
|
1061
|
+
step_id?: string | null;
|
|
1062
|
+
}
|
|
733
1063
|
/**
|
|
734
1064
|
* A message generated by the system. Never streamed back on a response, only used
|
|
735
1065
|
* for cursor pagination.
|
|
@@ -762,6 +1092,10 @@ export interface TextContent {
|
|
|
762
1092
|
* The text content of the message.
|
|
763
1093
|
*/
|
|
764
1094
|
text: string;
|
|
1095
|
+
/**
|
|
1096
|
+
* Stores a unique identifier for any reasoning associated with this text content.
|
|
1097
|
+
*/
|
|
1098
|
+
signature?: string | null;
|
|
765
1099
|
/**
|
|
766
1100
|
* The type of the message.
|
|
767
1101
|
*/
|
|
@@ -788,6 +1122,10 @@ export interface ToolCallContent {
|
|
|
788
1122
|
* The name of the tool being called.
|
|
789
1123
|
*/
|
|
790
1124
|
name: string;
|
|
1125
|
+
/**
|
|
1126
|
+
* Stores a unique identifier for any reasoning associated with this tool call.
|
|
1127
|
+
*/
|
|
1128
|
+
signature?: string | null;
|
|
791
1129
|
/**
|
|
792
1130
|
* Indicates this content represents a tool call event.
|
|
793
1131
|
*/
|
|
@@ -809,6 +1147,9 @@ export interface ToolCallDelta {
|
|
|
809
1147
|
export interface ToolCallMessage {
|
|
810
1148
|
id: string;
|
|
811
1149
|
date: string;
|
|
1150
|
+
/**
|
|
1151
|
+
* @deprecated
|
|
1152
|
+
*/
|
|
812
1153
|
tool_call: ToolCall | ToolCallDelta;
|
|
813
1154
|
is_err?: boolean | null;
|
|
814
1155
|
/**
|
|
@@ -821,20 +1162,18 @@ export interface ToolCallMessage {
|
|
|
821
1162
|
sender_id?: string | null;
|
|
822
1163
|
seq_id?: number | null;
|
|
823
1164
|
step_id?: string | null;
|
|
1165
|
+
tool_calls?: Array<ToolCall> | ToolCallDelta | null;
|
|
824
1166
|
}
|
|
825
1167
|
export interface ToolReturn {
|
|
826
|
-
/**
|
|
827
|
-
* The status of the tool call
|
|
828
|
-
*/
|
|
829
1168
|
status: 'success' | 'error';
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
*/
|
|
1169
|
+
tool_call_id: string;
|
|
1170
|
+
tool_return: string;
|
|
833
1171
|
stderr?: Array<string> | null;
|
|
1172
|
+
stdout?: Array<string> | null;
|
|
834
1173
|
/**
|
|
835
|
-
*
|
|
1174
|
+
* The message type to be created.
|
|
836
1175
|
*/
|
|
837
|
-
|
|
1176
|
+
type?: 'tool';
|
|
838
1177
|
}
|
|
839
1178
|
export interface ToolReturnContent {
|
|
840
1179
|
/**
|
|
@@ -912,312 +1251,162 @@ export interface UserMessage {
|
|
|
912
1251
|
seq_id?: number | null;
|
|
913
1252
|
step_id?: string | null;
|
|
914
1253
|
}
|
|
915
|
-
/**
|
|
916
|
-
* A message generated by the system. Never streamed back on a response, only used
|
|
917
|
-
* for cursor pagination.
|
|
918
|
-
*
|
|
919
|
-
* Args: id (str): The ID of the message date (datetime): The date the message was
|
|
920
|
-
* created in ISO format name (Optional[str]): The name of the sender of the
|
|
921
|
-
* message content (str): The message content sent by the system
|
|
922
|
-
*/
|
|
923
|
-
export type MessageUpdateResponse = SystemMessage | UserMessage | ReasoningMessage | HiddenReasoningMessage | ToolCallMessage | ToolsAPI.ToolReturnMessage | AssistantMessage | ApprovalRequestMessage | ApprovalResponseMessage;
|
|
924
|
-
export type MessageListResponse = Array<LettaMessageUnion>;
|
|
925
1254
|
export type MessageCancelResponse = {
|
|
926
1255
|
[key: string]: unknown;
|
|
927
1256
|
};
|
|
928
|
-
export type
|
|
929
|
-
|
|
930
|
-
};
|
|
931
|
-
export type MessageSearchResponse = Array<MessageSearchResponse.MessageSearchResponseItem>;
|
|
932
|
-
export declare namespace MessageSearchResponse {
|
|
1257
|
+
export type MessageCreateParams = MessageCreateParamsNonStreaming | MessageCreateParamsStreaming;
|
|
1258
|
+
export interface MessageCreateParamsBase {
|
|
933
1259
|
/**
|
|
934
|
-
*
|
|
1260
|
+
* @deprecated The name of the message argument in the designated message tool.
|
|
1261
|
+
* Still supported for legacy agent types, but deprecated for letta_v1_agent
|
|
1262
|
+
* onward.
|
|
935
1263
|
*/
|
|
936
|
-
|
|
937
|
-
/**
|
|
938
|
-
* The embedded content (LLM-friendly)
|
|
939
|
-
*/
|
|
940
|
-
embedded_text: string;
|
|
941
|
-
/**
|
|
942
|
-
* The raw message object
|
|
943
|
-
*/
|
|
944
|
-
message: MessagesAPI.Message;
|
|
945
|
-
/**
|
|
946
|
-
* Reciprocal Rank Fusion combined score
|
|
947
|
-
*/
|
|
948
|
-
rrf_score: number;
|
|
949
|
-
/**
|
|
950
|
-
* Full-text search rank position if FTS was used
|
|
951
|
-
*/
|
|
952
|
-
fts_rank?: number | null;
|
|
953
|
-
/**
|
|
954
|
-
* Vector search rank position if vector search was used
|
|
955
|
-
*/
|
|
956
|
-
vector_rank?: number | null;
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
export type MessageSendStreamResponse = unknown;
|
|
960
|
-
export type MessageUpdateParams = MessageUpdateParams.UpdateSystemMessage | MessageUpdateParams.UpdateUserMessage | MessageUpdateParams.UpdateReasoningMessage | MessageUpdateParams.UpdateAssistantMessage;
|
|
961
|
-
export declare namespace MessageUpdateParams {
|
|
962
|
-
interface UpdateSystemMessage {
|
|
963
|
-
/**
|
|
964
|
-
* Path param:
|
|
965
|
-
*/
|
|
966
|
-
agent_id: string;
|
|
967
|
-
/**
|
|
968
|
-
* Body param: The message content sent by the system (can be a string or an array
|
|
969
|
-
* of multi-modal content parts)
|
|
970
|
-
*/
|
|
971
|
-
content: string;
|
|
972
|
-
/**
|
|
973
|
-
* Body param:
|
|
974
|
-
*/
|
|
975
|
-
message_type?: 'system_message';
|
|
976
|
-
}
|
|
977
|
-
interface UpdateUserMessage {
|
|
978
|
-
/**
|
|
979
|
-
* Path param:
|
|
980
|
-
*/
|
|
981
|
-
agent_id: string;
|
|
982
|
-
/**
|
|
983
|
-
* Body param: The message content sent by the user (can be a string or an array of
|
|
984
|
-
* multi-modal content parts)
|
|
985
|
-
*/
|
|
986
|
-
content: Array<LettaUserMessageContentUnion> | string;
|
|
987
|
-
/**
|
|
988
|
-
* Body param:
|
|
989
|
-
*/
|
|
990
|
-
message_type?: 'user_message';
|
|
991
|
-
}
|
|
992
|
-
interface UpdateReasoningMessage {
|
|
993
|
-
/**
|
|
994
|
-
* Path param:
|
|
995
|
-
*/
|
|
996
|
-
agent_id: string;
|
|
997
|
-
/**
|
|
998
|
-
* Body param:
|
|
999
|
-
*/
|
|
1000
|
-
reasoning: string;
|
|
1001
|
-
/**
|
|
1002
|
-
* Body param:
|
|
1003
|
-
*/
|
|
1004
|
-
message_type?: 'reasoning_message';
|
|
1005
|
-
}
|
|
1006
|
-
interface UpdateAssistantMessage {
|
|
1007
|
-
/**
|
|
1008
|
-
* Path param:
|
|
1009
|
-
*/
|
|
1010
|
-
agent_id: string;
|
|
1011
|
-
/**
|
|
1012
|
-
* Body param: The message content sent by the assistant (can be a string or an
|
|
1013
|
-
* array of content parts)
|
|
1014
|
-
*/
|
|
1015
|
-
content: Array<LettaAssistantMessageContentUnion> | string;
|
|
1016
|
-
/**
|
|
1017
|
-
* Body param:
|
|
1018
|
-
*/
|
|
1019
|
-
message_type?: 'assistant_message';
|
|
1020
|
-
}
|
|
1021
|
-
}
|
|
1022
|
-
export interface MessageListParams {
|
|
1264
|
+
assistant_message_tool_kwarg?: string;
|
|
1023
1265
|
/**
|
|
1024
|
-
*
|
|
1266
|
+
* @deprecated The name of the designated message tool. Still supported for legacy
|
|
1267
|
+
* agent types, but deprecated for letta_v1_agent onward.
|
|
1025
1268
|
*/
|
|
1026
|
-
|
|
1269
|
+
assistant_message_tool_name?: string;
|
|
1027
1270
|
/**
|
|
1028
|
-
*
|
|
1271
|
+
* Whether to process the request in the background (only used when
|
|
1272
|
+
* streaming=true).
|
|
1029
1273
|
*/
|
|
1030
|
-
|
|
1274
|
+
background?: boolean;
|
|
1031
1275
|
/**
|
|
1032
|
-
*
|
|
1276
|
+
* @deprecated If set to True, enables reasoning before responses or tool calls
|
|
1277
|
+
* from the agent.
|
|
1033
1278
|
*/
|
|
1034
|
-
|
|
1279
|
+
enable_thinking?: string;
|
|
1035
1280
|
/**
|
|
1036
|
-
*
|
|
1281
|
+
* Whether to include periodic keepalive ping messages in the stream to prevent
|
|
1282
|
+
* connection timeouts (only used when streaming=true).
|
|
1037
1283
|
*/
|
|
1038
|
-
|
|
1284
|
+
include_pings?: boolean;
|
|
1039
1285
|
/**
|
|
1040
|
-
*
|
|
1286
|
+
* Only return specified message types in the response. If `None` (default) returns
|
|
1287
|
+
* all messages.
|
|
1041
1288
|
*/
|
|
1042
|
-
|
|
1289
|
+
include_return_message_types?: Array<MessageType> | null;
|
|
1043
1290
|
/**
|
|
1044
|
-
*
|
|
1045
|
-
*
|
|
1291
|
+
* Syntactic sugar for a single user message. Equivalent to messages=[{'role':
|
|
1292
|
+
* 'user', 'content': input}].
|
|
1046
1293
|
*/
|
|
1047
|
-
|
|
1294
|
+
input?: string | Array<TextContent | ImageContent | ToolCallContent | ToolReturnContent | ReasoningContent | RedactedReasoningContent | OmittedReasoningContent | MessageCreateParams.SummarizedReasoningContent> | null;
|
|
1295
|
+
/**
|
|
1296
|
+
* Maximum number of steps the agent should take to process the request.
|
|
1297
|
+
*/
|
|
1298
|
+
max_steps?: number;
|
|
1299
|
+
/**
|
|
1300
|
+
* The messages to be sent to the agent.
|
|
1301
|
+
*/
|
|
1302
|
+
messages?: Array<AgentsAPI.MessageCreate | ApprovalCreate> | null;
|
|
1303
|
+
/**
|
|
1304
|
+
* Flag to determine if individual tokens should be streamed, rather than streaming
|
|
1305
|
+
* per step (only used when streaming=true).
|
|
1306
|
+
*/
|
|
1307
|
+
stream_tokens?: boolean;
|
|
1048
1308
|
/**
|
|
1049
|
-
*
|
|
1309
|
+
* If True, returns a streaming response (Server-Sent Events). If False (default),
|
|
1310
|
+
* returns a complete response.
|
|
1050
1311
|
*/
|
|
1051
|
-
|
|
1312
|
+
streaming?: boolean;
|
|
1052
1313
|
/**
|
|
1053
|
-
* Whether
|
|
1314
|
+
* @deprecated Whether the server should parse specific tool call arguments
|
|
1315
|
+
* (default `send_message`) as `AssistantMessage` objects. Still supported for
|
|
1316
|
+
* legacy agent types, but deprecated for letta_v1_agent onward.
|
|
1054
1317
|
*/
|
|
1055
1318
|
use_assistant_message?: boolean;
|
|
1056
1319
|
}
|
|
1057
|
-
export
|
|
1320
|
+
export declare namespace MessageCreateParams {
|
|
1058
1321
|
/**
|
|
1059
|
-
*
|
|
1322
|
+
* The style of reasoning content returned by the OpenAI Responses API
|
|
1060
1323
|
*/
|
|
1061
|
-
|
|
1062
|
-
}
|
|
1063
|
-
export type MessagePreviewRawPayloadParams = MessagePreviewRawPayloadParams.LettaRequest | MessagePreviewRawPayloadParams.LettaStreamingRequest;
|
|
1064
|
-
export declare namespace MessagePreviewRawPayloadParams {
|
|
1065
|
-
interface LettaRequest {
|
|
1066
|
-
/**
|
|
1067
|
-
* The messages to be sent to the agent.
|
|
1068
|
-
*/
|
|
1069
|
-
messages: Array<AgentsAPI.MessageCreate | ApprovalCreate>;
|
|
1070
|
-
/**
|
|
1071
|
-
* The name of the message argument in the designated message tool.
|
|
1072
|
-
*/
|
|
1073
|
-
assistant_message_tool_kwarg?: string;
|
|
1074
|
-
/**
|
|
1075
|
-
* The name of the designated message tool.
|
|
1076
|
-
*/
|
|
1077
|
-
assistant_message_tool_name?: string;
|
|
1324
|
+
interface SummarizedReasoningContent {
|
|
1078
1325
|
/**
|
|
1079
|
-
*
|
|
1326
|
+
* The unique identifier for this reasoning step.
|
|
1080
1327
|
*/
|
|
1081
|
-
|
|
1328
|
+
id: string;
|
|
1082
1329
|
/**
|
|
1083
|
-
*
|
|
1084
|
-
* all messages.
|
|
1330
|
+
* Summaries of the reasoning content.
|
|
1085
1331
|
*/
|
|
1086
|
-
|
|
1332
|
+
summary: Array<SummarizedReasoningContent.Summary>;
|
|
1087
1333
|
/**
|
|
1088
|
-
*
|
|
1334
|
+
* The encrypted reasoning content.
|
|
1089
1335
|
*/
|
|
1090
|
-
|
|
1336
|
+
encrypted_content?: string;
|
|
1091
1337
|
/**
|
|
1092
|
-
*
|
|
1093
|
-
* `send_message`) as `AssistantMessage` objects.
|
|
1338
|
+
* Indicates this is a summarized reasoning step.
|
|
1094
1339
|
*/
|
|
1095
|
-
|
|
1340
|
+
type?: 'summarized_reasoning';
|
|
1096
1341
|
}
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
*/
|
|
1109
|
-
assistant_message_tool_name?: string;
|
|
1110
|
-
/**
|
|
1111
|
-
* Whether to process the request in the background.
|
|
1112
|
-
*/
|
|
1113
|
-
background?: boolean;
|
|
1114
|
-
/**
|
|
1115
|
-
* If set to True, enables reasoning before responses or tool calls from the agent.
|
|
1116
|
-
*/
|
|
1117
|
-
enable_thinking?: string;
|
|
1118
|
-
/**
|
|
1119
|
-
* Whether to include periodic keepalive ping messages in the stream to prevent
|
|
1120
|
-
* connection timeouts.
|
|
1121
|
-
*/
|
|
1122
|
-
include_pings?: boolean;
|
|
1123
|
-
/**
|
|
1124
|
-
* Only return specified message types in the response. If `None` (default) returns
|
|
1125
|
-
* all messages.
|
|
1126
|
-
*/
|
|
1127
|
-
include_return_message_types?: Array<MessageType> | null;
|
|
1128
|
-
/**
|
|
1129
|
-
* Maximum number of steps the agent should take to process the request.
|
|
1130
|
-
*/
|
|
1131
|
-
max_steps?: number;
|
|
1132
|
-
/**
|
|
1133
|
-
* Flag to determine if individual tokens should be streamed, rather than streaming
|
|
1134
|
-
* per step.
|
|
1135
|
-
*/
|
|
1136
|
-
stream_tokens?: boolean;
|
|
1137
|
-
/**
|
|
1138
|
-
* Whether the server should parse specific tool call arguments (default
|
|
1139
|
-
* `send_message`) as `AssistantMessage` objects.
|
|
1140
|
-
*/
|
|
1141
|
-
use_assistant_message?: boolean;
|
|
1342
|
+
namespace SummarizedReasoningContent {
|
|
1343
|
+
interface Summary {
|
|
1344
|
+
/**
|
|
1345
|
+
* The index of the summary part.
|
|
1346
|
+
*/
|
|
1347
|
+
index: number;
|
|
1348
|
+
/**
|
|
1349
|
+
* The text of the summary part.
|
|
1350
|
+
*/
|
|
1351
|
+
text: string;
|
|
1352
|
+
}
|
|
1142
1353
|
}
|
|
1354
|
+
type MessageCreateParamsNonStreaming = MessagesAPI.MessageCreateParamsNonStreaming;
|
|
1355
|
+
type MessageCreateParamsStreaming = MessagesAPI.MessageCreateParamsStreaming;
|
|
1143
1356
|
}
|
|
1144
|
-
export interface
|
|
1145
|
-
/**
|
|
1146
|
-
* Filter messages created on or before this date
|
|
1147
|
-
*/
|
|
1148
|
-
end_date?: string | null;
|
|
1149
|
-
/**
|
|
1150
|
-
* Maximum number of results to return
|
|
1151
|
-
*/
|
|
1152
|
-
limit?: number;
|
|
1153
|
-
/**
|
|
1154
|
-
* Filter messages by project ID
|
|
1155
|
-
*/
|
|
1156
|
-
project_id?: string | null;
|
|
1157
|
-
/**
|
|
1158
|
-
* Text query for full-text search
|
|
1159
|
-
*/
|
|
1160
|
-
query?: string | null;
|
|
1161
|
-
/**
|
|
1162
|
-
* Filter messages by role
|
|
1163
|
-
*/
|
|
1164
|
-
roles?: Array<MessageRole> | null;
|
|
1165
|
-
/**
|
|
1166
|
-
* Search mode to use
|
|
1167
|
-
*/
|
|
1168
|
-
search_mode?: 'vector' | 'fts' | 'hybrid';
|
|
1169
|
-
/**
|
|
1170
|
-
* Filter messages created after this date
|
|
1171
|
-
*/
|
|
1172
|
-
start_date?: string | null;
|
|
1357
|
+
export interface MessageCreateParamsNonStreaming extends MessageCreateParamsBase {
|
|
1173
1358
|
/**
|
|
1174
|
-
*
|
|
1359
|
+
* If True, returns a streaming response (Server-Sent Events). If False (default),
|
|
1360
|
+
* returns a complete response.
|
|
1175
1361
|
*/
|
|
1176
|
-
|
|
1362
|
+
streaming?: false;
|
|
1177
1363
|
}
|
|
1178
|
-
export interface
|
|
1364
|
+
export interface MessageCreateParamsStreaming extends MessageCreateParamsBase {
|
|
1179
1365
|
/**
|
|
1180
|
-
*
|
|
1366
|
+
* If True, returns a streaming response (Server-Sent Events). If False (default),
|
|
1367
|
+
* returns a complete response.
|
|
1181
1368
|
*/
|
|
1182
|
-
|
|
1369
|
+
streaming: true;
|
|
1370
|
+
}
|
|
1371
|
+
export interface MessageListParams extends ArrayPageParams {
|
|
1183
1372
|
/**
|
|
1184
|
-
* The name of the message argument
|
|
1373
|
+
* @deprecated The name of the message argument.
|
|
1185
1374
|
*/
|
|
1186
1375
|
assistant_message_tool_kwarg?: string;
|
|
1187
1376
|
/**
|
|
1188
|
-
* The name of the designated message tool.
|
|
1377
|
+
* @deprecated The name of the designated message tool.
|
|
1189
1378
|
*/
|
|
1190
1379
|
assistant_message_tool_name?: string;
|
|
1191
1380
|
/**
|
|
1192
|
-
*
|
|
1193
|
-
*/
|
|
1194
|
-
enable_thinking?: string;
|
|
1195
|
-
/**
|
|
1196
|
-
* Only return specified message types in the response. If `None` (default) returns
|
|
1197
|
-
* all messages.
|
|
1381
|
+
* Group ID to filter messages by.
|
|
1198
1382
|
*/
|
|
1199
|
-
|
|
1383
|
+
group_id?: string | null;
|
|
1200
1384
|
/**
|
|
1201
|
-
*
|
|
1385
|
+
* Whether to include error messages and error statuses. For debugging purposes
|
|
1386
|
+
* only.
|
|
1202
1387
|
*/
|
|
1203
|
-
|
|
1388
|
+
include_err?: boolean | null;
|
|
1204
1389
|
/**
|
|
1205
|
-
* Whether
|
|
1206
|
-
* `send_message`) as `AssistantMessage` objects.
|
|
1390
|
+
* @deprecated Whether to use assistant messages
|
|
1207
1391
|
*/
|
|
1208
1392
|
use_assistant_message?: boolean;
|
|
1209
1393
|
}
|
|
1210
|
-
export interface
|
|
1394
|
+
export interface MessageCancelParams {
|
|
1211
1395
|
/**
|
|
1212
|
-
*
|
|
1396
|
+
* Optional list of run IDs to cancel
|
|
1213
1397
|
*/
|
|
1214
|
-
|
|
1398
|
+
run_ids?: Array<string> | null;
|
|
1399
|
+
}
|
|
1400
|
+
export interface MessageCreateAsyncParams {
|
|
1215
1401
|
/**
|
|
1216
|
-
* The name of the message argument in the designated message tool.
|
|
1402
|
+
* @deprecated The name of the message argument in the designated message tool.
|
|
1403
|
+
* Still supported for legacy agent types, but deprecated for letta_v1_agent
|
|
1404
|
+
* onward.
|
|
1217
1405
|
*/
|
|
1218
1406
|
assistant_message_tool_kwarg?: string;
|
|
1219
1407
|
/**
|
|
1220
|
-
* The name of the designated message tool.
|
|
1408
|
+
* @deprecated The name of the designated message tool. Still supported for legacy
|
|
1409
|
+
* agent types, but deprecated for letta_v1_agent onward.
|
|
1221
1410
|
*/
|
|
1222
1411
|
assistant_message_tool_name?: string;
|
|
1223
1412
|
/**
|
|
@@ -1225,7 +1414,8 @@ export interface MessageSendAsyncParams {
|
|
|
1225
1414
|
*/
|
|
1226
1415
|
callback_url?: string | null;
|
|
1227
1416
|
/**
|
|
1228
|
-
* If set to True, enables reasoning before responses or tool calls
|
|
1417
|
+
* @deprecated If set to True, enables reasoning before responses or tool calls
|
|
1418
|
+
* from the agent.
|
|
1229
1419
|
*/
|
|
1230
1420
|
enable_thinking?: string;
|
|
1231
1421
|
/**
|
|
@@ -1233,40 +1423,92 @@ export interface MessageSendAsyncParams {
|
|
|
1233
1423
|
* all messages.
|
|
1234
1424
|
*/
|
|
1235
1425
|
include_return_message_types?: Array<MessageType> | null;
|
|
1426
|
+
/**
|
|
1427
|
+
* Syntactic sugar for a single user message. Equivalent to messages=[{'role':
|
|
1428
|
+
* 'user', 'content': input}].
|
|
1429
|
+
*/
|
|
1430
|
+
input?: string | Array<TextContent | ImageContent | ToolCallContent | ToolReturnContent | ReasoningContent | RedactedReasoningContent | OmittedReasoningContent | MessageCreateAsyncParams.SummarizedReasoningContent> | null;
|
|
1236
1431
|
/**
|
|
1237
1432
|
* Maximum number of steps the agent should take to process the request.
|
|
1238
1433
|
*/
|
|
1239
1434
|
max_steps?: number;
|
|
1240
1435
|
/**
|
|
1241
|
-
*
|
|
1242
|
-
|
|
1436
|
+
* The messages to be sent to the agent.
|
|
1437
|
+
*/
|
|
1438
|
+
messages?: Array<AgentsAPI.MessageCreate | ApprovalCreate> | null;
|
|
1439
|
+
/**
|
|
1440
|
+
* @deprecated Whether the server should parse specific tool call arguments
|
|
1441
|
+
* (default `send_message`) as `AssistantMessage` objects. Still supported for
|
|
1442
|
+
* legacy agent types, but deprecated for letta_v1_agent onward.
|
|
1243
1443
|
*/
|
|
1244
1444
|
use_assistant_message?: boolean;
|
|
1245
1445
|
}
|
|
1246
|
-
export
|
|
1446
|
+
export declare namespace MessageCreateAsyncParams {
|
|
1247
1447
|
/**
|
|
1248
|
-
* The
|
|
1448
|
+
* The style of reasoning content returned by the OpenAI Responses API
|
|
1449
|
+
*/
|
|
1450
|
+
interface SummarizedReasoningContent {
|
|
1451
|
+
/**
|
|
1452
|
+
* The unique identifier for this reasoning step.
|
|
1453
|
+
*/
|
|
1454
|
+
id: string;
|
|
1455
|
+
/**
|
|
1456
|
+
* Summaries of the reasoning content.
|
|
1457
|
+
*/
|
|
1458
|
+
summary: Array<SummarizedReasoningContent.Summary>;
|
|
1459
|
+
/**
|
|
1460
|
+
* The encrypted reasoning content.
|
|
1461
|
+
*/
|
|
1462
|
+
encrypted_content?: string;
|
|
1463
|
+
/**
|
|
1464
|
+
* Indicates this is a summarized reasoning step.
|
|
1465
|
+
*/
|
|
1466
|
+
type?: 'summarized_reasoning';
|
|
1467
|
+
}
|
|
1468
|
+
namespace SummarizedReasoningContent {
|
|
1469
|
+
interface Summary {
|
|
1470
|
+
/**
|
|
1471
|
+
* The index of the summary part.
|
|
1472
|
+
*/
|
|
1473
|
+
index: number;
|
|
1474
|
+
/**
|
|
1475
|
+
* The text of the summary part.
|
|
1476
|
+
*/
|
|
1477
|
+
text: string;
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
export interface MessageResetParams {
|
|
1482
|
+
/**
|
|
1483
|
+
* If true, adds the default initial messages after resetting.
|
|
1249
1484
|
*/
|
|
1250
|
-
|
|
1485
|
+
add_default_initial_messages?: boolean;
|
|
1486
|
+
}
|
|
1487
|
+
export interface MessageStreamParams {
|
|
1251
1488
|
/**
|
|
1252
|
-
* The name of the message argument in the designated message tool.
|
|
1489
|
+
* @deprecated The name of the message argument in the designated message tool.
|
|
1490
|
+
* Still supported for legacy agent types, but deprecated for letta_v1_agent
|
|
1491
|
+
* onward.
|
|
1253
1492
|
*/
|
|
1254
1493
|
assistant_message_tool_kwarg?: string;
|
|
1255
1494
|
/**
|
|
1256
|
-
* The name of the designated message tool.
|
|
1495
|
+
* @deprecated The name of the designated message tool. Still supported for legacy
|
|
1496
|
+
* agent types, but deprecated for letta_v1_agent onward.
|
|
1257
1497
|
*/
|
|
1258
1498
|
assistant_message_tool_name?: string;
|
|
1259
1499
|
/**
|
|
1260
|
-
* Whether to process the request in the background
|
|
1500
|
+
* Whether to process the request in the background (only used when
|
|
1501
|
+
* streaming=true).
|
|
1261
1502
|
*/
|
|
1262
1503
|
background?: boolean;
|
|
1263
1504
|
/**
|
|
1264
|
-
* If set to True, enables reasoning before responses or tool calls
|
|
1505
|
+
* @deprecated If set to True, enables reasoning before responses or tool calls
|
|
1506
|
+
* from the agent.
|
|
1265
1507
|
*/
|
|
1266
1508
|
enable_thinking?: string;
|
|
1267
1509
|
/**
|
|
1268
1510
|
* Whether to include periodic keepalive ping messages in the stream to prevent
|
|
1269
|
-
* connection timeouts.
|
|
1511
|
+
* connection timeouts (only used when streaming=true).
|
|
1270
1512
|
*/
|
|
1271
1513
|
include_pings?: boolean;
|
|
1272
1514
|
/**
|
|
@@ -1274,22 +1516,72 @@ export interface MessageSendStreamParams {
|
|
|
1274
1516
|
* all messages.
|
|
1275
1517
|
*/
|
|
1276
1518
|
include_return_message_types?: Array<MessageType> | null;
|
|
1519
|
+
/**
|
|
1520
|
+
* Syntactic sugar for a single user message. Equivalent to messages=[{'role':
|
|
1521
|
+
* 'user', 'content': input}].
|
|
1522
|
+
*/
|
|
1523
|
+
input?: string | Array<TextContent | ImageContent | ToolCallContent | ToolReturnContent | ReasoningContent | RedactedReasoningContent | OmittedReasoningContent | MessageStreamParams.SummarizedReasoningContent> | null;
|
|
1277
1524
|
/**
|
|
1278
1525
|
* Maximum number of steps the agent should take to process the request.
|
|
1279
1526
|
*/
|
|
1280
1527
|
max_steps?: number;
|
|
1528
|
+
/**
|
|
1529
|
+
* The messages to be sent to the agent.
|
|
1530
|
+
*/
|
|
1531
|
+
messages?: Array<AgentsAPI.MessageCreate | ApprovalCreate> | null;
|
|
1281
1532
|
/**
|
|
1282
1533
|
* Flag to determine if individual tokens should be streamed, rather than streaming
|
|
1283
|
-
* per step.
|
|
1534
|
+
* per step (only used when streaming=true).
|
|
1284
1535
|
*/
|
|
1285
1536
|
stream_tokens?: boolean;
|
|
1286
1537
|
/**
|
|
1287
|
-
*
|
|
1288
|
-
*
|
|
1538
|
+
* If True, returns a streaming response (Server-Sent Events). If False (default),
|
|
1539
|
+
* returns a complete response.
|
|
1540
|
+
*/
|
|
1541
|
+
streaming?: boolean;
|
|
1542
|
+
/**
|
|
1543
|
+
* @deprecated Whether the server should parse specific tool call arguments
|
|
1544
|
+
* (default `send_message`) as `AssistantMessage` objects. Still supported for
|
|
1545
|
+
* legacy agent types, but deprecated for letta_v1_agent onward.
|
|
1289
1546
|
*/
|
|
1290
1547
|
use_assistant_message?: boolean;
|
|
1291
1548
|
}
|
|
1549
|
+
export declare namespace MessageStreamParams {
|
|
1550
|
+
/**
|
|
1551
|
+
* The style of reasoning content returned by the OpenAI Responses API
|
|
1552
|
+
*/
|
|
1553
|
+
interface SummarizedReasoningContent {
|
|
1554
|
+
/**
|
|
1555
|
+
* The unique identifier for this reasoning step.
|
|
1556
|
+
*/
|
|
1557
|
+
id: string;
|
|
1558
|
+
/**
|
|
1559
|
+
* Summaries of the reasoning content.
|
|
1560
|
+
*/
|
|
1561
|
+
summary: Array<SummarizedReasoningContent.Summary>;
|
|
1562
|
+
/**
|
|
1563
|
+
* The encrypted reasoning content.
|
|
1564
|
+
*/
|
|
1565
|
+
encrypted_content?: string;
|
|
1566
|
+
/**
|
|
1567
|
+
* Indicates this is a summarized reasoning step.
|
|
1568
|
+
*/
|
|
1569
|
+
type?: 'summarized_reasoning';
|
|
1570
|
+
}
|
|
1571
|
+
namespace SummarizedReasoningContent {
|
|
1572
|
+
interface Summary {
|
|
1573
|
+
/**
|
|
1574
|
+
* The index of the summary part.
|
|
1575
|
+
*/
|
|
1576
|
+
index: number;
|
|
1577
|
+
/**
|
|
1578
|
+
* The text of the summary part.
|
|
1579
|
+
*/
|
|
1580
|
+
text: string;
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1292
1584
|
export declare namespace Messages {
|
|
1293
|
-
export { type ApprovalCreate as ApprovalCreate, type ApprovalRequestMessage as ApprovalRequestMessage, type ApprovalResponseMessage as ApprovalResponseMessage, type AssistantMessage as AssistantMessage, type HiddenReasoningMessage as HiddenReasoningMessage, type ImageContent as ImageContent, type
|
|
1585
|
+
export { type ApprovalCreate as ApprovalCreate, type ApprovalRequestMessage as ApprovalRequestMessage, type ApprovalResponseMessage as ApprovalResponseMessage, type ApprovalReturn as ApprovalReturn, type AssistantMessage as AssistantMessage, type EventMessage as EventMessage, type HiddenReasoningMessage as HiddenReasoningMessage, type ImageContent as ImageContent, type InternalMessage as InternalMessage, type JobStatus as JobStatus, type JobType as JobType, type LettaAssistantMessageContentUnion as LettaAssistantMessageContentUnion, type LettaRequest as LettaRequest, type LettaResponse as LettaResponse, type LettaStreamingRequest as LettaStreamingRequest, type LettaStreamingResponse as LettaStreamingResponse, type LettaUserMessageContentUnion as LettaUserMessageContentUnion, type Message as Message, type MessageRole as MessageRole, type MessageType as MessageType, type OmittedReasoningContent as OmittedReasoningContent, type ReasoningContent as ReasoningContent, type ReasoningMessage as ReasoningMessage, type RedactedReasoningContent as RedactedReasoningContent, type Run as Run, type SummaryMessage as SummaryMessage, type SystemMessage as SystemMessage, type TextContent as TextContent, type ToolCall as ToolCall, type ToolCallContent as ToolCallContent, type ToolCallDelta as ToolCallDelta, type ToolCallMessage as ToolCallMessage, type ToolReturn as ToolReturn, type ToolReturnContent as ToolReturnContent, type UpdateAssistantMessage as UpdateAssistantMessage, type UpdateReasoningMessage as UpdateReasoningMessage, type UpdateSystemMessage as UpdateSystemMessage, type UpdateUserMessage as UpdateUserMessage, type UserMessage as UserMessage, type MessageCancelResponse as MessageCancelResponse, type MessagesArrayPage as MessagesArrayPage, type MessageCreateParams as MessageCreateParams, type MessageCreateParamsNonStreaming as MessageCreateParamsNonStreaming, type MessageCreateParamsStreaming as MessageCreateParamsStreaming, type MessageListParams as MessageListParams, type MessageCancelParams as MessageCancelParams, type MessageCreateAsyncParams as MessageCreateAsyncParams, type MessageResetParams as MessageResetParams, type MessageStreamParams as MessageStreamParams, };
|
|
1294
1586
|
}
|
|
1295
1587
|
//# sourceMappingURL=messages.d.ts.map
|