@letta-ai/letta-client 1.0.0-alpha.7 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +248 -0
- package/README.md +282 -319
- package/client.d.mts +61 -36
- package/client.d.mts.map +1 -1
- package/client.d.ts +61 -36
- package/client.d.ts.map +1 -1
- package/client.js +53 -23
- package/client.js.map +1 -1
- package/client.mjs +53 -23
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +96 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +96 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +199 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +191 -0
- package/core/pagination.mjs.map +1 -0
- package/core/streaming.d.mts +33 -0
- package/core/streaming.d.mts.map +1 -0
- package/core/streaming.d.ts +33 -0
- package/core/streaming.d.ts.map +1 -0
- package/core/streaming.js +276 -0
- package/core/streaming.js.map +1 -0
- package/core/streaming.mjs +271 -0
- package/core/streaming.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/internal/decoders/line.d.mts +17 -0
- package/internal/decoders/line.d.mts.map +1 -0
- package/internal/decoders/line.d.ts +17 -0
- package/internal/decoders/line.d.ts.map +1 -0
- package/internal/decoders/line.js +113 -0
- package/internal/decoders/line.js.map +1 -0
- package/internal/decoders/line.mjs +108 -0
- package/internal/decoders/line.mjs.map +1 -0
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +10 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +10 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +2 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +2 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/package.json +21 -1
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resources/access-tokens.d.mts +105 -0
- package/resources/access-tokens.d.mts.map +1 -0
- package/resources/access-tokens.d.ts +105 -0
- package/resources/access-tokens.d.ts.map +1 -0
- package/resources/access-tokens.js +30 -0
- package/resources/access-tokens.js.map +1 -0
- package/resources/access-tokens.mjs +26 -0
- package/resources/access-tokens.mjs.map +1 -0
- package/resources/agents/agents.d.mts +517 -160
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +517 -160
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +16 -21
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +17 -22
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/archives.d.mts +31 -0
- package/resources/agents/archives.d.mts.map +1 -0
- package/resources/agents/archives.d.ts +31 -0
- package/resources/agents/archives.d.ts.map +1 -0
- package/resources/agents/archives.js +24 -0
- package/resources/agents/archives.js.map +1 -0
- package/resources/agents/archives.mjs +20 -0
- package/resources/agents/archives.mjs.map +1 -0
- package/resources/agents/blocks.d.mts +33 -55
- package/resources/agents/blocks.d.mts.map +1 -1
- package/resources/agents/blocks.d.ts +33 -55
- package/resources/agents/blocks.d.ts.map +1 -1
- package/resources/agents/blocks.js +2 -1
- package/resources/agents/blocks.js.map +1 -1
- package/resources/agents/blocks.mjs +2 -1
- package/resources/agents/blocks.mjs.map +1 -1
- package/resources/agents/files.d.mts +39 -79
- package/resources/agents/files.d.mts.map +1 -1
- package/resources/agents/files.d.ts +39 -79
- package/resources/agents/files.d.ts.map +1 -1
- package/resources/agents/files.js +5 -1
- package/resources/agents/files.js.map +1 -1
- package/resources/agents/files.mjs +5 -1
- package/resources/agents/files.mjs.map +1 -1
- package/resources/agents/folders.d.mts +50 -79
- package/resources/agents/folders.d.mts.map +1 -1
- package/resources/agents/folders.d.ts +50 -79
- package/resources/agents/folders.d.ts.map +1 -1
- package/resources/agents/folders.js +5 -1
- package/resources/agents/folders.js.map +1 -1
- package/resources/agents/folders.mjs +5 -1
- package/resources/agents/folders.mjs.map +1 -1
- package/resources/agents/groups.d.mts +6 -28
- package/resources/agents/groups.d.mts.map +1 -1
- package/resources/agents/groups.d.ts +6 -28
- package/resources/agents/groups.d.ts.map +1 -1
- package/resources/agents/groups.js +5 -1
- package/resources/agents/groups.js.map +1 -1
- package/resources/agents/groups.mjs +5 -1
- package/resources/agents/groups.mjs.map +1 -1
- package/resources/agents/identities.d.mts +31 -0
- package/resources/agents/identities.d.mts.map +1 -0
- package/resources/agents/identities.d.ts +31 -0
- package/resources/agents/identities.d.ts.map +1 -0
- package/resources/agents/identities.js +24 -0
- package/resources/agents/identities.js.map +1 -0
- package/resources/agents/identities.mjs +20 -0
- package/resources/agents/identities.mjs.map +1 -0
- package/resources/agents/index.d.mts +9 -7
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +9 -7
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js +5 -1
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs +2 -0
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/messages.d.mts +668 -422
- package/resources/agents/messages.d.mts.map +1 -1
- package/resources/agents/messages.d.ts +668 -422
- package/resources/agents/messages.d.ts.map +1 -1
- package/resources/agents/messages.js +27 -26
- package/resources/agents/messages.js.map +1 -1
- package/resources/agents/messages.mjs +27 -26
- package/resources/agents/messages.mjs.map +1 -1
- package/resources/agents/tools.d.mts +9 -30
- package/resources/agents/tools.d.mts.map +1 -1
- package/resources/agents/tools.d.ts +9 -30
- package/resources/agents/tools.d.ts.map +1 -1
- package/resources/agents/tools.js +5 -1
- package/resources/agents/tools.js.map +1 -1
- package/resources/agents/tools.mjs +5 -1
- package/resources/agents/tools.mjs.map +1 -1
- package/resources/archives/archives.d.mts +115 -0
- package/resources/archives/archives.d.mts.map +1 -0
- package/resources/archives/archives.d.ts +115 -0
- package/resources/archives/archives.d.ts.map +1 -0
- package/resources/archives/archives.js +50 -0
- package/resources/archives/archives.js.map +1 -0
- package/resources/archives/archives.mjs +45 -0
- package/resources/archives/archives.mjs.map +1 -0
- package/resources/archives/index.d.mts +3 -0
- package/resources/archives/index.d.mts.map +1 -0
- package/resources/archives/index.d.ts +3 -0
- package/resources/archives/index.d.ts.map +1 -0
- package/resources/archives/index.js +9 -0
- package/resources/archives/index.js.map +1 -0
- package/resources/archives/index.mjs +4 -0
- package/resources/archives/index.mjs.map +1 -0
- package/resources/archives/passages.d.mts +113 -0
- package/resources/archives/passages.d.mts.map +1 -0
- package/resources/archives/passages.d.ts +113 -0
- package/resources/archives/passages.d.ts.map +1 -0
- package/resources/archives/passages.js +32 -0
- package/resources/archives/passages.js.map +1 -0
- package/resources/archives/passages.mjs +28 -0
- package/resources/archives/passages.mjs.map +1 -0
- package/resources/archives.d.mts +1 -130
- package/resources/archives.d.mts.map +1 -1
- package/resources/archives.d.ts +1 -130
- package/resources/archives.d.ts.map +1 -1
- package/resources/archives.js +2 -37
- package/resources/archives.js.map +1 -1
- package/resources/archives.mjs +1 -35
- package/resources/archives.mjs.map +1 -1
- package/resources/batches/batches.d.mts +52 -34
- package/resources/batches/batches.d.mts.map +1 -1
- package/resources/batches/batches.d.ts +52 -34
- package/resources/batches/batches.d.ts.map +1 -1
- package/resources/batches/batches.js +2 -1
- package/resources/batches/batches.js.map +1 -1
- package/resources/batches/batches.mjs +2 -1
- package/resources/batches/batches.mjs.map +1 -1
- package/resources/batches/index.d.mts +2 -2
- package/resources/batches/index.d.mts.map +1 -1
- package/resources/batches/index.d.ts +2 -2
- package/resources/batches/index.d.ts.map +1 -1
- package/resources/batches/index.js.map +1 -1
- package/resources/batches/index.mjs.map +1 -1
- package/resources/batches/messages.d.mts +6 -30
- package/resources/batches/messages.d.mts.map +1 -1
- package/resources/batches/messages.d.ts +6 -30
- package/resources/batches/messages.d.ts.map +1 -1
- package/resources/batches/messages.js +2 -1
- package/resources/batches/messages.js.map +1 -1
- package/resources/batches/messages.mjs +2 -1
- package/resources/batches/messages.mjs.map +1 -1
- package/resources/blocks/agents.d.mts +6 -28
- package/resources/blocks/agents.d.mts.map +1 -1
- package/resources/blocks/agents.d.ts +6 -28
- package/resources/blocks/agents.d.ts.map +1 -1
- package/resources/blocks/agents.js +5 -1
- package/resources/blocks/agents.js.map +1 -1
- package/resources/blocks/agents.mjs +5 -1
- package/resources/blocks/agents.mjs.map +1 -1
- package/resources/blocks/blocks.d.mts +108 -48
- package/resources/blocks/blocks.d.mts.map +1 -1
- package/resources/blocks/blocks.d.ts +108 -48
- package/resources/blocks/blocks.d.ts.map +1 -1
- package/resources/blocks/blocks.js +3 -8
- package/resources/blocks/blocks.js.map +1 -1
- package/resources/blocks/blocks.mjs +3 -8
- package/resources/blocks/blocks.mjs.map +1 -1
- package/resources/blocks/index.d.mts +2 -2
- package/resources/blocks/index.d.mts.map +1 -1
- package/resources/blocks/index.d.ts +2 -2
- package/resources/blocks/index.d.ts.map +1 -1
- package/resources/blocks/index.js.map +1 -1
- package/resources/blocks/index.mjs.map +1 -1
- package/resources/folders/files.d.mts +75 -97
- package/resources/folders/files.d.mts.map +1 -1
- package/resources/folders/files.d.ts +75 -97
- package/resources/folders/files.d.ts.map +1 -1
- package/resources/folders/files.js +5 -1
- package/resources/folders/files.js.map +1 -1
- package/resources/folders/files.mjs +5 -1
- package/resources/folders/files.mjs.map +1 -1
- package/resources/folders/folders.d.mts +11 -44
- package/resources/folders/folders.d.mts.map +1 -1
- package/resources/folders/folders.d.ts +11 -44
- package/resources/folders/folders.d.ts.map +1 -1
- package/resources/folders/folders.js +2 -7
- package/resources/folders/folders.js.map +1 -1
- package/resources/folders/folders.mjs +2 -7
- package/resources/folders/folders.mjs.map +1 -1
- package/resources/folders/index.d.mts +2 -2
- package/resources/folders/index.d.mts.map +1 -1
- package/resources/folders/index.d.ts +2 -2
- package/resources/folders/index.d.ts.map +1 -1
- package/resources/folders/index.js.map +1 -1
- package/resources/folders/index.mjs.map +1 -1
- package/resources/groups/groups.d.mts +17 -67
- package/resources/groups/groups.d.mts.map +1 -1
- package/resources/groups/groups.d.ts +17 -67
- package/resources/groups/groups.d.ts.map +1 -1
- package/resources/groups/groups.js +6 -28
- package/resources/groups/groups.js.map +1 -1
- package/resources/groups/groups.mjs +6 -28
- package/resources/groups/groups.mjs.map +1 -1
- package/resources/groups/index.d.mts +2 -2
- package/resources/groups/index.d.mts.map +1 -1
- package/resources/groups/index.d.ts +2 -2
- package/resources/groups/index.d.ts.map +1 -1
- package/resources/groups/index.js.map +1 -1
- package/resources/groups/index.mjs.map +1 -1
- package/resources/groups/messages.d.mts +145 -79
- package/resources/groups/messages.d.mts.map +1 -1
- package/resources/groups/messages.d.ts +145 -79
- package/resources/groups/messages.d.ts.map +1 -1
- package/resources/groups/messages.js +18 -10
- package/resources/groups/messages.js.map +1 -1
- package/resources/groups/messages.mjs +18 -10
- package/resources/groups/messages.mjs.map +1 -1
- package/resources/identities/agents.d.mts +6 -28
- package/resources/identities/agents.d.mts.map +1 -1
- package/resources/identities/agents.d.ts +6 -28
- package/resources/identities/agents.d.ts.map +1 -1
- package/resources/identities/agents.js +2 -1
- package/resources/identities/agents.js.map +1 -1
- package/resources/identities/agents.mjs +2 -1
- package/resources/identities/agents.mjs.map +1 -1
- package/resources/identities/blocks.d.mts +7 -29
- package/resources/identities/blocks.d.mts.map +1 -1
- package/resources/identities/blocks.d.ts +7 -29
- package/resources/identities/blocks.d.ts.map +1 -1
- package/resources/identities/blocks.js +2 -1
- package/resources/identities/blocks.js.map +1 -1
- package/resources/identities/blocks.mjs +2 -1
- package/resources/identities/blocks.mjs.map +1 -1
- package/resources/identities/identities.d.mts +30 -65
- package/resources/identities/identities.d.mts.map +1 -1
- package/resources/identities/identities.d.ts +30 -65
- package/resources/identities/identities.d.ts.map +1 -1
- package/resources/identities/identities.js +7 -29
- package/resources/identities/identities.js.map +1 -1
- package/resources/identities/identities.mjs +7 -29
- package/resources/identities/identities.mjs.map +1 -1
- package/resources/identities/index.d.mts +3 -3
- package/resources/identities/index.d.mts.map +1 -1
- package/resources/identities/index.d.ts +3 -3
- package/resources/identities/index.d.ts.map +1 -1
- package/resources/identities/index.js.map +1 -1
- package/resources/identities/index.mjs.map +1 -1
- package/resources/identities/properties.d.mts +1 -1
- package/resources/identities/properties.d.ts +1 -1
- package/resources/identities/properties.js +1 -1
- package/resources/identities/properties.mjs +1 -1
- package/resources/index.d.mts +13 -11
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +13 -11
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +6 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mcp-servers/index.d.mts +3 -0
- package/resources/mcp-servers/index.d.mts.map +1 -0
- package/resources/mcp-servers/index.d.ts +3 -0
- package/resources/mcp-servers/index.d.ts.map +1 -0
- package/resources/mcp-servers/index.js +9 -0
- package/resources/mcp-servers/index.js.map +1 -0
- package/resources/mcp-servers/index.mjs +4 -0
- package/resources/mcp-servers/index.mjs.map +1 -0
- package/resources/mcp-servers/mcp-servers.d.mts +349 -0
- package/resources/mcp-servers/mcp-servers.d.mts.map +1 -0
- package/resources/mcp-servers/mcp-servers.d.ts +349 -0
- package/resources/mcp-servers/mcp-servers.d.ts.map +1 -0
- package/resources/mcp-servers/mcp-servers.js +69 -0
- package/resources/mcp-servers/mcp-servers.js.map +1 -0
- package/resources/mcp-servers/mcp-servers.mjs +64 -0
- package/resources/mcp-servers/mcp-servers.mjs.map +1 -0
- package/resources/mcp-servers/tools.d.mts +42 -0
- package/resources/mcp-servers/tools.d.mts.map +1 -0
- package/resources/mcp-servers/tools.d.ts +42 -0
- package/resources/mcp-servers/tools.d.ts.map +1 -0
- package/resources/mcp-servers/tools.js +36 -0
- package/resources/mcp-servers/tools.js.map +1 -0
- package/resources/mcp-servers/tools.mjs +32 -0
- package/resources/mcp-servers/tools.mjs.map +1 -0
- package/resources/mcp-servers.d.mts +2 -0
- package/resources/mcp-servers.d.mts.map +1 -0
- package/resources/mcp-servers.d.ts +2 -0
- package/resources/mcp-servers.d.ts.map +1 -0
- package/resources/mcp-servers.js +6 -0
- package/resources/mcp-servers.js.map +1 -0
- package/resources/mcp-servers.mjs +3 -0
- package/resources/mcp-servers.mjs.map +1 -0
- package/resources/models/embeddings.d.mts +6 -2
- package/resources/models/embeddings.d.mts.map +1 -1
- package/resources/models/embeddings.d.ts +6 -2
- package/resources/models/embeddings.d.ts.map +1 -1
- package/resources/models/embeddings.js +5 -1
- package/resources/models/embeddings.js.map +1 -1
- package/resources/models/embeddings.mjs +5 -1
- package/resources/models/embeddings.mjs.map +1 -1
- package/resources/models/index.d.mts +1 -1
- package/resources/models/index.d.mts.map +1 -1
- package/resources/models/index.d.ts +1 -1
- package/resources/models/index.d.ts.map +1 -1
- package/resources/models/index.js.map +1 -1
- package/resources/models/index.mjs.map +1 -1
- package/resources/models/models.d.mts +180 -4
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +180 -4
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js +5 -1
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs +5 -1
- package/resources/models/models.mjs.map +1 -1
- package/resources/runs/index.d.mts +3 -3
- package/resources/runs/index.d.mts.map +1 -1
- package/resources/runs/index.d.ts +3 -3
- package/resources/runs/index.d.ts.map +1 -1
- package/resources/runs/index.js.map +1 -1
- package/resources/runs/index.mjs.map +1 -1
- package/resources/runs/messages.d.mts +8 -28
- package/resources/runs/messages.d.mts.map +1 -1
- package/resources/runs/messages.d.ts +8 -28
- package/resources/runs/messages.d.ts.map +1 -1
- package/resources/runs/messages.js +10 -2
- package/resources/runs/messages.js.map +1 -1
- package/resources/runs/messages.mjs +10 -2
- package/resources/runs/messages.mjs.map +1 -1
- package/resources/runs/runs.d.mts +10 -36
- package/resources/runs/runs.d.mts.map +1 -1
- package/resources/runs/runs.d.ts +10 -36
- package/resources/runs/runs.d.ts.map +1 -1
- package/resources/runs/runs.js +2 -1
- package/resources/runs/runs.js.map +1 -1
- package/resources/runs/runs.mjs +3 -2
- package/resources/runs/runs.mjs.map +1 -1
- package/resources/runs/steps.d.mts +6 -26
- package/resources/runs/steps.d.mts.map +1 -1
- package/resources/runs/steps.d.ts +6 -26
- package/resources/runs/steps.d.ts.map +1 -1
- package/resources/runs/steps.js +5 -1
- package/resources/runs/steps.js.map +1 -1
- package/resources/runs/steps.mjs +5 -1
- package/resources/runs/steps.mjs.map +1 -1
- package/resources/steps/index.d.mts +2 -2
- package/resources/steps/index.d.mts.map +1 -1
- package/resources/steps/index.d.ts +2 -2
- package/resources/steps/index.d.ts.map +1 -1
- package/resources/steps/index.js.map +1 -1
- package/resources/steps/index.mjs +1 -1
- package/resources/steps/index.mjs.map +1 -1
- package/resources/steps/messages.d.mts +14 -28
- package/resources/steps/messages.d.mts.map +1 -1
- package/resources/steps/messages.d.ts +14 -28
- package/resources/steps/messages.d.ts.map +1 -1
- package/resources/steps/messages.js +5 -1
- package/resources/steps/messages.js.map +1 -1
- package/resources/steps/messages.mjs +5 -1
- package/resources/steps/messages.mjs.map +1 -1
- package/resources/steps/steps.d.mts +17 -44
- package/resources/steps/steps.d.mts.map +1 -1
- package/resources/steps/steps.d.ts +17 -44
- package/resources/steps/steps.d.ts.map +1 -1
- package/resources/steps/steps.js +3 -11
- package/resources/steps/steps.js.map +1 -1
- package/resources/steps/steps.mjs +3 -11
- package/resources/steps/steps.mjs.map +1 -1
- package/resources/templates/agents.d.mts +9 -14
- package/resources/templates/agents.d.mts.map +1 -1
- package/resources/templates/agents.d.ts +9 -14
- package/resources/templates/agents.d.ts.map +1 -1
- package/resources/templates/agents.js +2 -3
- package/resources/templates/agents.js.map +1 -1
- package/resources/templates/agents.mjs +2 -3
- package/resources/templates/agents.mjs.map +1 -1
- package/resources/tools.d.mts +6 -68
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +6 -68
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +2 -7
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +2 -7
- package/resources/tools.mjs.map +1 -1
- package/src/client.ts +274 -127
- package/src/core/pagination.ts +334 -0
- package/src/core/streaming.ts +331 -0
- package/src/index.ts +1 -0
- package/src/internal/decoders/line.ts +135 -0
- package/src/internal/parse.ts +14 -0
- package/src/internal/request-options.ts +2 -0
- package/src/pagination.ts +2 -0
- package/src/resources/access-tokens.ts +163 -0
- package/src/resources/agents/agents.ts +722 -242
- package/src/resources/agents/archives.ts +51 -0
- package/src/resources/agents/blocks.ts +50 -63
- package/src/resources/agents/files.ts +47 -90
- package/src/resources/agents/folders.ts +58 -88
- package/src/resources/agents/groups.ts +11 -35
- package/src/resources/agents/identities.ts +51 -0
- package/src/resources/agents/index.ts +40 -12
- package/src/resources/agents/messages.ts +941 -550
- package/src/resources/agents/tools.ts +13 -37
- package/src/resources/archives/archives.ts +170 -0
- package/src/resources/archives/index.ts +17 -0
- package/src/resources/archives/passages.ts +150 -0
- package/src/resources/archives.ts +1 -178
- package/src/resources/batches/batches.ts +74 -46
- package/src/resources/batches/index.ts +2 -2
- package/src/resources/batches/messages.ts +12 -37
- package/src/resources/blocks/agents.ts +11 -35
- package/src/resources/blocks/blocks.ts +130 -64
- package/src/resources/blocks/index.ts +3 -3
- package/src/resources/folders/files.ts +90 -113
- package/src/resources/folders/folders.ts +14 -55
- package/src/resources/folders/index.ts +2 -2
- package/src/resources/groups/groups.ts +21 -102
- package/src/resources/groups/index.ts +2 -4
- package/src/resources/groups/messages.ts +215 -103
- package/src/resources/identities/agents.ts +12 -35
- package/src/resources/identities/blocks.ts +13 -36
- package/src/resources/identities/identities.ts +35 -107
- package/src/resources/identities/index.ts +3 -4
- package/src/resources/identities/properties.ts +1 -1
- package/src/resources/index.ts +55 -18
- package/src/resources/mcp-servers/index.ts +25 -0
- package/src/resources/mcp-servers/mcp-servers.ts +460 -0
- package/src/resources/mcp-servers/tools.ts +69 -0
- package/src/resources/mcp-servers.ts +3 -0
- package/src/resources/models/embeddings.ts +6 -2
- package/src/resources/models/index.ts +2 -0
- package/src/resources/models/models.ts +260 -3
- package/src/resources/runs/index.ts +2 -3
- package/src/resources/runs/messages.ts +18 -37
- package/src/resources/runs/runs.ts +14 -54
- package/src/resources/runs/steps.ts +11 -33
- package/src/resources/steps/index.ts +7 -2
- package/src/resources/steps/messages.ts +25 -35
- package/src/resources/steps/steps.ts +20 -61
- package/src/resources/templates/agents.ts +14 -17
- package/src/resources/tools.ts +8 -92
- package/src/streaming.ts +2 -0
- package/src/version.ts +1 -1
- package/streaming.d.mts +2 -0
- package/streaming.d.mts.map +1 -0
- package/streaming.d.ts +2 -0
- package/streaming.d.ts.map +1 -0
- package/streaming.js +6 -0
- package/streaming.js.map +1 -0
- package/streaming.mjs +2 -0
- package/streaming.mjs.map +1 -0
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -4,16 +4,33 @@ import * as ToolsAPI from "../tools.js";
|
|
|
4
4
|
import * as AgentsAPI from "./agents.js";
|
|
5
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,14 +39,9 @@ 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
|
-
reset(agentID: string, body: MessageResetParams, options?: RequestOptions): APIPromise<AgentsAPI.AgentState>;
|
|
28
|
-
/**
|
|
29
|
-
* Process a user message and return the agent's response. This endpoint accepts a
|
|
30
|
-
* message from a user and processes it through the agent.
|
|
42
|
+
* Summarize an agent's conversation history.
|
|
31
43
|
*/
|
|
32
|
-
|
|
44
|
+
compact(agentID: string, options?: RequestOptions): APIPromise<void>;
|
|
33
45
|
/**
|
|
34
46
|
* Asynchronously process a user message and return a run object. The actual
|
|
35
47
|
* processing happens in the background, and the status can be checked using the
|
|
@@ -38,18 +50,21 @@ export declare class Messages extends APIResource {
|
|
|
38
50
|
* This is "asynchronous" in the sense that it's a background run and explicitly
|
|
39
51
|
* must be fetched by the run ID.
|
|
40
52
|
*/
|
|
41
|
-
|
|
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>;
|
|
42
58
|
/**
|
|
43
59
|
* Process a user message and return the agent's response. This endpoint accepts a
|
|
44
60
|
* message from a user and processes it through the agent. It will stream the steps
|
|
45
61
|
* of the response always, and stream the tokens if 'stream_tokens' is set to True.
|
|
46
62
|
*/
|
|
47
|
-
stream(agentID: string, body: MessageStreamParams, options?: RequestOptions): APIPromise<
|
|
48
|
-
/**
|
|
49
|
-
* Summarize an agent's conversation history.
|
|
50
|
-
*/
|
|
51
|
-
summarize(agentID: string, options?: RequestOptions): APIPromise<void>;
|
|
63
|
+
stream(agentID: string, body: MessageStreamParams, options?: RequestOptions): APIPromise<Stream<LettaStreamingResponse>>;
|
|
52
64
|
}
|
|
65
|
+
export type MessagesArrayPage = ArrayPage<Message>;
|
|
66
|
+
export type RunsArrayPage = ArrayPage<Run>;
|
|
67
|
+
export type InternalMessagesObjectPage = ObjectPage<InternalMessage>;
|
|
53
68
|
/**
|
|
54
69
|
* Input to approve or deny a tool call request
|
|
55
70
|
*/
|
|
@@ -61,11 +76,15 @@ export interface ApprovalCreate {
|
|
|
61
76
|
/**
|
|
62
77
|
* The list of approval responses
|
|
63
78
|
*/
|
|
64
|
-
approvals?: Array<
|
|
79
|
+
approvals?: Array<ApprovalReturn | ToolReturn> | null;
|
|
65
80
|
/**
|
|
66
81
|
* @deprecated Whether the tool has been approved
|
|
67
82
|
*/
|
|
68
83
|
approve?: boolean | null;
|
|
84
|
+
/**
|
|
85
|
+
* The multi-agent group that the message was sent in
|
|
86
|
+
*/
|
|
87
|
+
group_id?: string | null;
|
|
69
88
|
/**
|
|
70
89
|
* @deprecated An optional explanation for the provided approval status
|
|
71
90
|
*/
|
|
@@ -75,26 +94,6 @@ export interface ApprovalCreate {
|
|
|
75
94
|
*/
|
|
76
95
|
type?: 'approval';
|
|
77
96
|
}
|
|
78
|
-
export declare namespace ApprovalCreate {
|
|
79
|
-
interface ApprovalReturn {
|
|
80
|
-
/**
|
|
81
|
-
* Whether the tool has been approved
|
|
82
|
-
*/
|
|
83
|
-
approve: boolean;
|
|
84
|
-
/**
|
|
85
|
-
* The ID of the tool call that corresponds to this approval
|
|
86
|
-
*/
|
|
87
|
-
tool_call_id: string;
|
|
88
|
-
/**
|
|
89
|
-
* An optional explanation for the provided approval status
|
|
90
|
-
*/
|
|
91
|
-
reason?: string | null;
|
|
92
|
-
/**
|
|
93
|
-
* The message type to be created.
|
|
94
|
-
*/
|
|
95
|
-
type?: 'approval';
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
97
|
/**
|
|
99
98
|
* A message representing a request for approval to call a tool (generated by the
|
|
100
99
|
* LLM to trigger tool execution).
|
|
@@ -147,7 +146,7 @@ export interface ApprovalResponseMessage {
|
|
|
147
146
|
/**
|
|
148
147
|
* The list of approval responses
|
|
149
148
|
*/
|
|
150
|
-
approvals?: Array<
|
|
149
|
+
approvals?: Array<ApprovalReturn | ToolReturn> | null;
|
|
151
150
|
/**
|
|
152
151
|
* @deprecated Whether the tool has been approved
|
|
153
152
|
*/
|
|
@@ -168,25 +167,23 @@ export interface ApprovalResponseMessage {
|
|
|
168
167
|
seq_id?: number | null;
|
|
169
168
|
step_id?: string | null;
|
|
170
169
|
}
|
|
171
|
-
export
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
type?: 'approval';
|
|
189
|
-
}
|
|
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';
|
|
190
187
|
}
|
|
191
188
|
/**
|
|
192
189
|
* A message sent by the LLM in response to user input. Used in the LLM context.
|
|
@@ -216,6 +213,26 @@ export interface AssistantMessage {
|
|
|
216
213
|
seq_id?: number | null;
|
|
217
214
|
step_id?: string | null;
|
|
218
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
|
+
}
|
|
219
236
|
/**
|
|
220
237
|
* Representation of an agent's internal reasoning where reasoning content has been
|
|
221
238
|
* hidden from the response.
|
|
@@ -307,187 +324,6 @@ export declare namespace ImageContent {
|
|
|
307
324
|
type?: 'letta';
|
|
308
325
|
}
|
|
309
326
|
}
|
|
310
|
-
/**
|
|
311
|
-
* Status of the job.
|
|
312
|
-
*/
|
|
313
|
-
export type JobStatus = 'created' | 'running' | 'completed' | 'failed' | 'pending' | 'cancelled' | 'expired';
|
|
314
|
-
export type JobType = 'job' | 'run' | 'batch';
|
|
315
|
-
export interface LettaAssistantMessageContentUnion {
|
|
316
|
-
/**
|
|
317
|
-
* The text content of the message.
|
|
318
|
-
*/
|
|
319
|
-
text: string;
|
|
320
|
-
/**
|
|
321
|
-
* Stores a unique identifier for any reasoning associated with this text content.
|
|
322
|
-
*/
|
|
323
|
-
signature?: string | null;
|
|
324
|
-
/**
|
|
325
|
-
* The type of the message.
|
|
326
|
-
*/
|
|
327
|
-
type?: 'text';
|
|
328
|
-
}
|
|
329
|
-
/**
|
|
330
|
-
* A message generated by the system. Never streamed back on a response, only used
|
|
331
|
-
* for cursor pagination.
|
|
332
|
-
*
|
|
333
|
-
* Args: id (str): The ID of the message date (datetime): The date the message was
|
|
334
|
-
* created in ISO format name (Optional[str]): The name of the sender of the
|
|
335
|
-
* message content (str): The message content sent by the system
|
|
336
|
-
*/
|
|
337
|
-
export type LettaMessageUnion = SystemMessage | UserMessage | ReasoningMessage | HiddenReasoningMessage | ToolCallMessage | ToolsAPI.ToolReturnMessage | AssistantMessage | ApprovalRequestMessage | ApprovalResponseMessage;
|
|
338
|
-
export interface LettaRequest {
|
|
339
|
-
/**
|
|
340
|
-
* The messages to be sent to the agent.
|
|
341
|
-
*/
|
|
342
|
-
messages: Array<AgentsAPI.MessageCreate | ApprovalCreate>;
|
|
343
|
-
/**
|
|
344
|
-
* @deprecated The name of the message argument in the designated message tool.
|
|
345
|
-
* Still supported for legacy agent types, but deprecated for letta_v1_agent
|
|
346
|
-
* onward.
|
|
347
|
-
*/
|
|
348
|
-
assistant_message_tool_kwarg?: string;
|
|
349
|
-
/**
|
|
350
|
-
* @deprecated The name of the designated message tool. Still supported for legacy
|
|
351
|
-
* agent types, but deprecated for letta_v1_agent onward.
|
|
352
|
-
*/
|
|
353
|
-
assistant_message_tool_name?: string;
|
|
354
|
-
/**
|
|
355
|
-
* @deprecated If set to True, enables reasoning before responses or tool calls
|
|
356
|
-
* from the agent.
|
|
357
|
-
*/
|
|
358
|
-
enable_thinking?: string;
|
|
359
|
-
/**
|
|
360
|
-
* Only return specified message types in the response. If `None` (default) returns
|
|
361
|
-
* all messages.
|
|
362
|
-
*/
|
|
363
|
-
include_return_message_types?: Array<MessageType> | null;
|
|
364
|
-
/**
|
|
365
|
-
* Maximum number of steps the agent should take to process the request.
|
|
366
|
-
*/
|
|
367
|
-
max_steps?: number;
|
|
368
|
-
/**
|
|
369
|
-
* @deprecated Whether the server should parse specific tool call arguments
|
|
370
|
-
* (default `send_message`) as `AssistantMessage` objects. Still supported for
|
|
371
|
-
* legacy agent types, but deprecated for letta_v1_agent onward.
|
|
372
|
-
*/
|
|
373
|
-
use_assistant_message?: boolean;
|
|
374
|
-
}
|
|
375
|
-
/**
|
|
376
|
-
* Response object from an agent interaction, consisting of the new messages
|
|
377
|
-
* generated by the agent and usage statistics. The type of the returned messages
|
|
378
|
-
* can be either `Message` or `LettaMessage`, depending on what was specified in
|
|
379
|
-
* the request.
|
|
380
|
-
*
|
|
381
|
-
* Attributes: messages (List[Union[Message, LettaMessage]]): The messages returned
|
|
382
|
-
* by the agent. usage (LettaUsageStatistics): The usage statistics
|
|
383
|
-
*/
|
|
384
|
-
export interface LettaResponse {
|
|
385
|
-
/**
|
|
386
|
-
* The messages returned by the agent.
|
|
387
|
-
*/
|
|
388
|
-
messages: Array<LettaMessageUnion>;
|
|
389
|
-
/**
|
|
390
|
-
* The stop reason from Letta indicating why agent loop stopped execution.
|
|
391
|
-
*/
|
|
392
|
-
stop_reason: LettaResponse.StopReason;
|
|
393
|
-
/**
|
|
394
|
-
* The usage statistics of the agent.
|
|
395
|
-
*/
|
|
396
|
-
usage: LettaResponse.Usage;
|
|
397
|
-
}
|
|
398
|
-
export declare namespace LettaResponse {
|
|
399
|
-
/**
|
|
400
|
-
* The stop reason from Letta indicating why agent loop stopped execution.
|
|
401
|
-
*/
|
|
402
|
-
interface StopReason {
|
|
403
|
-
/**
|
|
404
|
-
* The reason why execution stopped.
|
|
405
|
-
*/
|
|
406
|
-
stop_reason: RunsAPI.StopReasonType;
|
|
407
|
-
/**
|
|
408
|
-
* The type of the message.
|
|
409
|
-
*/
|
|
410
|
-
message_type?: 'stop_reason';
|
|
411
|
-
}
|
|
412
|
-
/**
|
|
413
|
-
* The usage statistics of the agent.
|
|
414
|
-
*/
|
|
415
|
-
interface Usage {
|
|
416
|
-
/**
|
|
417
|
-
* The number of tokens generated by the agent.
|
|
418
|
-
*/
|
|
419
|
-
completion_tokens?: number;
|
|
420
|
-
message_type?: 'usage_statistics';
|
|
421
|
-
/**
|
|
422
|
-
* The number of tokens in the prompt.
|
|
423
|
-
*/
|
|
424
|
-
prompt_tokens?: number;
|
|
425
|
-
/**
|
|
426
|
-
* The background task run IDs associated with the agent interaction
|
|
427
|
-
*/
|
|
428
|
-
run_ids?: Array<string> | null;
|
|
429
|
-
/**
|
|
430
|
-
* The number of steps taken by the agent.
|
|
431
|
-
*/
|
|
432
|
-
step_count?: number;
|
|
433
|
-
/**
|
|
434
|
-
* The total number of tokens processed by the agent.
|
|
435
|
-
*/
|
|
436
|
-
total_tokens?: number;
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
export interface LettaStreamingRequest {
|
|
440
|
-
/**
|
|
441
|
-
* The messages to be sent to the agent.
|
|
442
|
-
*/
|
|
443
|
-
messages: Array<AgentsAPI.MessageCreate | ApprovalCreate>;
|
|
444
|
-
/**
|
|
445
|
-
* @deprecated The name of the message argument in the designated message tool.
|
|
446
|
-
* Still supported for legacy agent types, but deprecated for letta_v1_agent
|
|
447
|
-
* onward.
|
|
448
|
-
*/
|
|
449
|
-
assistant_message_tool_kwarg?: string;
|
|
450
|
-
/**
|
|
451
|
-
* @deprecated The name of the designated message tool. Still supported for legacy
|
|
452
|
-
* agent types, but deprecated for letta_v1_agent onward.
|
|
453
|
-
*/
|
|
454
|
-
assistant_message_tool_name?: string;
|
|
455
|
-
/**
|
|
456
|
-
* Whether to process the request in the background.
|
|
457
|
-
*/
|
|
458
|
-
background?: boolean;
|
|
459
|
-
/**
|
|
460
|
-
* @deprecated If set to True, enables reasoning before responses or tool calls
|
|
461
|
-
* from the agent.
|
|
462
|
-
*/
|
|
463
|
-
enable_thinking?: string;
|
|
464
|
-
/**
|
|
465
|
-
* Whether to include periodic keepalive ping messages in the stream to prevent
|
|
466
|
-
* connection timeouts.
|
|
467
|
-
*/
|
|
468
|
-
include_pings?: boolean;
|
|
469
|
-
/**
|
|
470
|
-
* Only return specified message types in the response. If `None` (default) returns
|
|
471
|
-
* all messages.
|
|
472
|
-
*/
|
|
473
|
-
include_return_message_types?: Array<MessageType> | null;
|
|
474
|
-
/**
|
|
475
|
-
* Maximum number of steps the agent should take to process the request.
|
|
476
|
-
*/
|
|
477
|
-
max_steps?: number;
|
|
478
|
-
/**
|
|
479
|
-
* Flag to determine if individual tokens should be streamed, rather than streaming
|
|
480
|
-
* per step.
|
|
481
|
-
*/
|
|
482
|
-
stream_tokens?: boolean;
|
|
483
|
-
/**
|
|
484
|
-
* @deprecated Whether the server should parse specific tool call arguments
|
|
485
|
-
* (default `send_message`) as `AssistantMessage` objects. Still supported for
|
|
486
|
-
* legacy agent types, but deprecated for letta_v1_agent onward.
|
|
487
|
-
*/
|
|
488
|
-
use_assistant_message?: boolean;
|
|
489
|
-
}
|
|
490
|
-
export type LettaUserMessageContentUnion = TextContent | ImageContent;
|
|
491
327
|
/**
|
|
492
328
|
* Letta's internal representation of a message. Includes methods to convert to/from LLM provider formats.
|
|
493
329
|
*
|
|
@@ -510,15 +346,15 @@ export type LettaUserMessageContentUnion = TextContent | ImageContent;
|
|
|
510
346
|
*
|
|
511
347
|
* t
|
|
512
348
|
*/
|
|
513
|
-
export interface
|
|
349
|
+
export interface InternalMessage {
|
|
514
350
|
/**
|
|
515
|
-
* The
|
|
351
|
+
* The human-friendly ID of the Message
|
|
516
352
|
*/
|
|
517
|
-
|
|
353
|
+
id: string;
|
|
518
354
|
/**
|
|
519
|
-
* The
|
|
355
|
+
* The role of the participant.
|
|
520
356
|
*/
|
|
521
|
-
|
|
357
|
+
role: MessageRole;
|
|
522
358
|
/**
|
|
523
359
|
* The unique identifier of the agent.
|
|
524
360
|
*/
|
|
@@ -531,7 +367,7 @@ export interface Message {
|
|
|
531
367
|
/**
|
|
532
368
|
* The list of approvals for this message.
|
|
533
369
|
*/
|
|
534
|
-
approvals?: Array<
|
|
370
|
+
approvals?: Array<ApprovalReturn | InternalMessage.LettaSchemasMessageToolReturn> | null;
|
|
535
371
|
/**
|
|
536
372
|
* Whether tool call is approved.
|
|
537
373
|
*/
|
|
@@ -543,7 +379,7 @@ export interface Message {
|
|
|
543
379
|
/**
|
|
544
380
|
* The content of the message.
|
|
545
381
|
*/
|
|
546
|
-
content?: Array<TextContent | ImageContent | ToolCallContent | ToolReturnContent | ReasoningContent | RedactedReasoningContent | OmittedReasoningContent |
|
|
382
|
+
content?: Array<TextContent | ImageContent | ToolCallContent | ToolReturnContent | ReasoningContent | RedactedReasoningContent | OmittedReasoningContent | InternalMessage.SummarizedReasoningContent> | null;
|
|
547
383
|
/**
|
|
548
384
|
* The timestamp when the object was created.
|
|
549
385
|
*/
|
|
@@ -600,50 +436,32 @@ export interface Message {
|
|
|
600
436
|
/**
|
|
601
437
|
* The list of tool calls requested. Only applicable for role assistant.
|
|
602
438
|
*/
|
|
603
|
-
tool_calls?: Array<
|
|
439
|
+
tool_calls?: Array<InternalMessage.ToolCall> | null;
|
|
604
440
|
/**
|
|
605
441
|
* Tool execution return information for prior tool calls
|
|
606
442
|
*/
|
|
607
|
-
tool_returns?: Array<
|
|
443
|
+
tool_returns?: Array<InternalMessage.ToolReturn> | null;
|
|
608
444
|
/**
|
|
609
445
|
* The timestamp when the object was last updated.
|
|
610
446
|
*/
|
|
611
447
|
updated_at?: string | null;
|
|
612
448
|
}
|
|
613
|
-
export declare namespace
|
|
614
|
-
interface
|
|
449
|
+
export declare namespace InternalMessage {
|
|
450
|
+
interface LettaSchemasMessageToolReturn {
|
|
615
451
|
/**
|
|
616
|
-
*
|
|
452
|
+
* The status of the tool call
|
|
617
453
|
*/
|
|
618
|
-
|
|
454
|
+
status: 'success' | 'error';
|
|
619
455
|
/**
|
|
620
|
-
* The
|
|
456
|
+
* The function response string
|
|
621
457
|
*/
|
|
622
|
-
|
|
458
|
+
func_response?: string | null;
|
|
623
459
|
/**
|
|
624
|
-
*
|
|
460
|
+
* Captured stderr from the tool invocation
|
|
625
461
|
*/
|
|
626
|
-
|
|
462
|
+
stderr?: Array<string> | null;
|
|
627
463
|
/**
|
|
628
|
-
*
|
|
629
|
-
*/
|
|
630
|
-
type?: 'approval';
|
|
631
|
-
}
|
|
632
|
-
interface LettaSchemasMessageToolReturn {
|
|
633
|
-
/**
|
|
634
|
-
* The status of the tool call
|
|
635
|
-
*/
|
|
636
|
-
status: 'success' | 'error';
|
|
637
|
-
/**
|
|
638
|
-
* The function response string
|
|
639
|
-
*/
|
|
640
|
-
func_response?: string | null;
|
|
641
|
-
/**
|
|
642
|
-
* Captured stderr from the tool invocation
|
|
643
|
-
*/
|
|
644
|
-
stderr?: Array<string> | null;
|
|
645
|
-
/**
|
|
646
|
-
* Captured stdout (e.g. prints, logs) from the tool invocation
|
|
464
|
+
* Captured stdout (e.g. prints, logs) from the tool invocation
|
|
647
465
|
*/
|
|
648
466
|
stdout?: Array<string> | null;
|
|
649
467
|
/**
|
|
@@ -720,6 +538,360 @@ export declare namespace Message {
|
|
|
720
538
|
tool_call_id?: unknown;
|
|
721
539
|
}
|
|
722
540
|
}
|
|
541
|
+
/**
|
|
542
|
+
* Status of the job.
|
|
543
|
+
*/
|
|
544
|
+
export type JobStatus = 'created' | 'running' | 'completed' | 'failed' | 'pending' | 'cancelled' | 'expired';
|
|
545
|
+
export type JobType = 'job' | 'run' | 'batch';
|
|
546
|
+
export interface LettaAssistantMessageContentUnion {
|
|
547
|
+
/**
|
|
548
|
+
* The text content of the message.
|
|
549
|
+
*/
|
|
550
|
+
text: string;
|
|
551
|
+
/**
|
|
552
|
+
* Stores a unique identifier for any reasoning associated with this text content.
|
|
553
|
+
*/
|
|
554
|
+
signature?: string | null;
|
|
555
|
+
/**
|
|
556
|
+
* The type of the message.
|
|
557
|
+
*/
|
|
558
|
+
type?: 'text';
|
|
559
|
+
}
|
|
560
|
+
export interface LettaRequest {
|
|
561
|
+
/**
|
|
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.
|
|
565
|
+
*/
|
|
566
|
+
assistant_message_tool_kwarg?: string;
|
|
567
|
+
/**
|
|
568
|
+
* @deprecated The name of the designated message tool. Still supported for legacy
|
|
569
|
+
* agent types, but deprecated for letta_v1_agent onward.
|
|
570
|
+
*/
|
|
571
|
+
assistant_message_tool_name?: string;
|
|
572
|
+
/**
|
|
573
|
+
* @deprecated If set to True, enables reasoning before responses or tool calls
|
|
574
|
+
* from the agent.
|
|
575
|
+
*/
|
|
576
|
+
enable_thinking?: string;
|
|
577
|
+
/**
|
|
578
|
+
* Only return specified message types in the response. If `None` (default) returns
|
|
579
|
+
* all messages.
|
|
580
|
+
*/
|
|
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;
|
|
587
|
+
/**
|
|
588
|
+
* Maximum number of steps the agent should take to process the request.
|
|
589
|
+
*/
|
|
590
|
+
max_steps?: number;
|
|
591
|
+
/**
|
|
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.
|
|
599
|
+
*/
|
|
600
|
+
use_assistant_message?: boolean;
|
|
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
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
* Response object from an agent interaction, consisting of the new messages
|
|
639
|
+
* generated by the agent and usage statistics. The type of the returned messages
|
|
640
|
+
* can be either `Message` or `LettaMessage`, depending on what was specified in
|
|
641
|
+
* the request.
|
|
642
|
+
*
|
|
643
|
+
* Attributes: messages (List[Union[Message, LettaMessage]]): The messages returned
|
|
644
|
+
* by the agent. usage (LettaUsageStatistics): The usage statistics
|
|
645
|
+
*/
|
|
646
|
+
export interface LettaResponse {
|
|
647
|
+
/**
|
|
648
|
+
* The messages returned by the agent.
|
|
649
|
+
*/
|
|
650
|
+
messages: Array<Message>;
|
|
651
|
+
/**
|
|
652
|
+
* The stop reason from Letta indicating why agent loop stopped execution.
|
|
653
|
+
*/
|
|
654
|
+
stop_reason: LettaResponse.StopReason;
|
|
655
|
+
/**
|
|
656
|
+
* The usage statistics of the agent.
|
|
657
|
+
*/
|
|
658
|
+
usage: LettaResponse.Usage;
|
|
659
|
+
}
|
|
660
|
+
export declare namespace LettaResponse {
|
|
661
|
+
/**
|
|
662
|
+
* The stop reason from Letta indicating why agent loop stopped execution.
|
|
663
|
+
*/
|
|
664
|
+
interface StopReason {
|
|
665
|
+
/**
|
|
666
|
+
* The reason why execution stopped.
|
|
667
|
+
*/
|
|
668
|
+
stop_reason: RunsAPI.StopReasonType;
|
|
669
|
+
/**
|
|
670
|
+
* The type of the message.
|
|
671
|
+
*/
|
|
672
|
+
message_type?: 'stop_reason';
|
|
673
|
+
}
|
|
674
|
+
/**
|
|
675
|
+
* The usage statistics of the agent.
|
|
676
|
+
*/
|
|
677
|
+
interface Usage {
|
|
678
|
+
/**
|
|
679
|
+
* The number of tokens generated by the agent.
|
|
680
|
+
*/
|
|
681
|
+
completion_tokens?: number;
|
|
682
|
+
message_type?: 'usage_statistics';
|
|
683
|
+
/**
|
|
684
|
+
* The number of tokens in the prompt.
|
|
685
|
+
*/
|
|
686
|
+
prompt_tokens?: number;
|
|
687
|
+
/**
|
|
688
|
+
* The background task run IDs associated with the agent interaction
|
|
689
|
+
*/
|
|
690
|
+
run_ids?: Array<string> | null;
|
|
691
|
+
/**
|
|
692
|
+
* The number of steps taken by the agent.
|
|
693
|
+
*/
|
|
694
|
+
step_count?: number;
|
|
695
|
+
/**
|
|
696
|
+
* The total number of tokens processed by the agent.
|
|
697
|
+
*/
|
|
698
|
+
total_tokens?: number;
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
export interface LettaStreamingRequest {
|
|
702
|
+
/**
|
|
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.
|
|
706
|
+
*/
|
|
707
|
+
assistant_message_tool_kwarg?: string;
|
|
708
|
+
/**
|
|
709
|
+
* @deprecated The name of the designated message tool. Still supported for legacy
|
|
710
|
+
* agent types, but deprecated for letta_v1_agent onward.
|
|
711
|
+
*/
|
|
712
|
+
assistant_message_tool_name?: string;
|
|
713
|
+
/**
|
|
714
|
+
* Whether to process the request in the background (only used when
|
|
715
|
+
* streaming=true).
|
|
716
|
+
*/
|
|
717
|
+
background?: boolean;
|
|
718
|
+
/**
|
|
719
|
+
* @deprecated If set to True, enables reasoning before responses or tool calls
|
|
720
|
+
* from the agent.
|
|
721
|
+
*/
|
|
722
|
+
enable_thinking?: string;
|
|
723
|
+
/**
|
|
724
|
+
* Whether to include periodic keepalive ping messages in the stream to prevent
|
|
725
|
+
* connection timeouts (only used when streaming=true).
|
|
726
|
+
*/
|
|
727
|
+
include_pings?: boolean;
|
|
728
|
+
/**
|
|
729
|
+
* Only return specified message types in the response. If `None` (default) returns
|
|
730
|
+
* all messages.
|
|
731
|
+
*/
|
|
732
|
+
include_return_message_types?: Array<MessageType> | null;
|
|
733
|
+
/**
|
|
734
|
+
* Syntactic sugar for a single user message. Equivalent to messages=[{'role':
|
|
735
|
+
* 'user', 'content': input}].
|
|
736
|
+
*/
|
|
737
|
+
input?: string | Array<TextContent | ImageContent | ToolCallContent | ToolReturnContent | ReasoningContent | RedactedReasoningContent | OmittedReasoningContent | LettaStreamingRequest.SummarizedReasoningContent> | null;
|
|
738
|
+
/**
|
|
739
|
+
* Maximum number of steps the agent should take to process the request.
|
|
740
|
+
*/
|
|
741
|
+
max_steps?: number;
|
|
742
|
+
/**
|
|
743
|
+
* The messages to be sent to the agent.
|
|
744
|
+
*/
|
|
745
|
+
messages?: Array<AgentsAPI.MessageCreate | ApprovalCreate> | null;
|
|
746
|
+
/**
|
|
747
|
+
* Flag to determine if individual tokens should be streamed, rather than streaming
|
|
748
|
+
* per step (only used when streaming=true).
|
|
749
|
+
*/
|
|
750
|
+
stream_tokens?: boolean;
|
|
751
|
+
/**
|
|
752
|
+
* If True, returns a streaming response (Server-Sent Events). If False (default),
|
|
753
|
+
* returns a complete response.
|
|
754
|
+
*/
|
|
755
|
+
streaming?: boolean;
|
|
756
|
+
/**
|
|
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.
|
|
760
|
+
*/
|
|
761
|
+
use_assistant_message?: boolean;
|
|
762
|
+
}
|
|
763
|
+
export declare namespace LettaStreamingRequest {
|
|
764
|
+
/**
|
|
765
|
+
* The style of reasoning content returned by the OpenAI Responses API
|
|
766
|
+
*/
|
|
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.LettaErrorMessage | LettaStreamingResponse.LettaStopReason | LettaStreamingResponse.LettaUsageStatistics;
|
|
803
|
+
export declare namespace LettaStreamingResponse {
|
|
804
|
+
/**
|
|
805
|
+
* Ping messages are a keep-alive to prevent SSE streams from timing out during
|
|
806
|
+
* long running requests.
|
|
807
|
+
*/
|
|
808
|
+
interface LettaPing {
|
|
809
|
+
/**
|
|
810
|
+
* The type of the message.
|
|
811
|
+
*/
|
|
812
|
+
message_type: 'ping';
|
|
813
|
+
}
|
|
814
|
+
/**
|
|
815
|
+
* Error messages are used to notify the client of an error that occurred during
|
|
816
|
+
* the agent's execution.
|
|
817
|
+
*/
|
|
818
|
+
interface LettaErrorMessage {
|
|
819
|
+
/**
|
|
820
|
+
* The type of error.
|
|
821
|
+
*/
|
|
822
|
+
error_type: string;
|
|
823
|
+
/**
|
|
824
|
+
* The error message.
|
|
825
|
+
*/
|
|
826
|
+
message: string;
|
|
827
|
+
/**
|
|
828
|
+
* The type of the message.
|
|
829
|
+
*/
|
|
830
|
+
message_type: 'error_message';
|
|
831
|
+
/**
|
|
832
|
+
* The ID of the run.
|
|
833
|
+
*/
|
|
834
|
+
run_id: string;
|
|
835
|
+
/**
|
|
836
|
+
* An optional error detail.
|
|
837
|
+
*/
|
|
838
|
+
detail?: string;
|
|
839
|
+
}
|
|
840
|
+
/**
|
|
841
|
+
* The stop reason from Letta indicating why agent loop stopped execution.
|
|
842
|
+
*/
|
|
843
|
+
interface LettaStopReason {
|
|
844
|
+
/**
|
|
845
|
+
* The reason why execution stopped.
|
|
846
|
+
*/
|
|
847
|
+
stop_reason: RunsAPI.StopReasonType;
|
|
848
|
+
/**
|
|
849
|
+
* The type of the message.
|
|
850
|
+
*/
|
|
851
|
+
message_type?: 'stop_reason';
|
|
852
|
+
}
|
|
853
|
+
/**
|
|
854
|
+
* Usage statistics for the agent interaction.
|
|
855
|
+
*
|
|
856
|
+
* Attributes: completion_tokens (int): The number of tokens generated by the
|
|
857
|
+
* agent. prompt_tokens (int): The number of tokens in the prompt. total_tokens
|
|
858
|
+
* (int): The total number of tokens processed by the agent. step_count (int): The
|
|
859
|
+
* number of steps taken by the agent.
|
|
860
|
+
*/
|
|
861
|
+
interface LettaUsageStatistics {
|
|
862
|
+
/**
|
|
863
|
+
* The number of tokens generated by the agent.
|
|
864
|
+
*/
|
|
865
|
+
completion_tokens?: number;
|
|
866
|
+
message_type?: 'usage_statistics';
|
|
867
|
+
/**
|
|
868
|
+
* The number of tokens in the prompt.
|
|
869
|
+
*/
|
|
870
|
+
prompt_tokens?: number;
|
|
871
|
+
/**
|
|
872
|
+
* The background task run IDs associated with the agent interaction
|
|
873
|
+
*/
|
|
874
|
+
run_ids?: Array<string> | null;
|
|
875
|
+
/**
|
|
876
|
+
* The number of steps taken by the agent.
|
|
877
|
+
*/
|
|
878
|
+
step_count?: number;
|
|
879
|
+
/**
|
|
880
|
+
* The total number of tokens processed by the agent.
|
|
881
|
+
*/
|
|
882
|
+
total_tokens?: number;
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
export type LettaUserMessageContentUnion = TextContent | ImageContent;
|
|
886
|
+
/**
|
|
887
|
+
* A message generated by the system. Never streamed back on a response, only used
|
|
888
|
+
* for cursor pagination.
|
|
889
|
+
*
|
|
890
|
+
* Args: id (str): The ID of the message date (datetime): The date the message was
|
|
891
|
+
* created in ISO format name (Optional[str]): The name of the sender of the
|
|
892
|
+
* message content (str): The message content sent by the system
|
|
893
|
+
*/
|
|
894
|
+
export type Message = SystemMessage | UserMessage | ReasoningMessage | HiddenReasoningMessage | ToolCallMessage | ToolsAPI.ToolReturnMessage | AssistantMessage | ApprovalRequestMessage | ApprovalResponseMessage | SummaryMessage | EventMessage;
|
|
723
895
|
export type MessageRole = 'assistant' | 'user' | 'tool' | 'function' | 'system' | 'approval';
|
|
724
896
|
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';
|
|
725
897
|
/**
|
|
@@ -803,26 +975,16 @@ export interface RedactedReasoningContent {
|
|
|
803
975
|
* Representation of a run - a conversation or processing session for an agent.
|
|
804
976
|
* Runs track when agents process messages and maintain the relationship between
|
|
805
977
|
* agents, steps, and messages.
|
|
806
|
-
*
|
|
807
|
-
* Parameters: id (str): The unique identifier of the run (prefixed with 'run-').
|
|
808
|
-
* status (JobStatus): The current status of the run. created_at (datetime): The
|
|
809
|
-
* timestamp when the run was created. completed_at (datetime): The timestamp when
|
|
810
|
-
* the run was completed. agent_id (str): The unique identifier of the agent
|
|
811
|
-
* associated with the run. base_template_id (str): The base template ID that the
|
|
812
|
-
* run belongs to. stop_reason (StopReasonType): The reason why the run was
|
|
813
|
-
* stopped. background (bool): Whether the run was created in background mode.
|
|
814
|
-
* metadata (dict): Additional metadata for the run. request_config
|
|
815
|
-
* (LettaRequestConfig): The request configuration for the run.
|
|
816
978
|
*/
|
|
817
979
|
export interface Run {
|
|
818
980
|
/**
|
|
819
|
-
* The
|
|
981
|
+
* The human-friendly ID of the Run
|
|
820
982
|
*/
|
|
821
|
-
|
|
983
|
+
id: string;
|
|
822
984
|
/**
|
|
823
|
-
* The
|
|
985
|
+
* The unique identifier of the agent associated with the run.
|
|
824
986
|
*/
|
|
825
|
-
|
|
987
|
+
agent_id: string;
|
|
826
988
|
/**
|
|
827
989
|
* Whether the run was created in background mode.
|
|
828
990
|
*/
|
|
@@ -907,6 +1069,23 @@ export declare namespace Run {
|
|
|
907
1069
|
use_assistant_message?: boolean;
|
|
908
1070
|
}
|
|
909
1071
|
}
|
|
1072
|
+
/**
|
|
1073
|
+
* A message representing a summary of the conversation. Sent to the LLM as a user
|
|
1074
|
+
* or system message depending on the provider.
|
|
1075
|
+
*/
|
|
1076
|
+
export interface SummaryMessage {
|
|
1077
|
+
id: string;
|
|
1078
|
+
date: string;
|
|
1079
|
+
summary: string;
|
|
1080
|
+
is_err?: boolean | null;
|
|
1081
|
+
message_type?: 'summary';
|
|
1082
|
+
name?: string | null;
|
|
1083
|
+
otid?: string | null;
|
|
1084
|
+
run_id?: string | null;
|
|
1085
|
+
sender_id?: string | null;
|
|
1086
|
+
seq_id?: number | null;
|
|
1087
|
+
step_id?: string | null;
|
|
1088
|
+
}
|
|
910
1089
|
/**
|
|
911
1090
|
* A message generated by the system. Never streamed back on a response, only used
|
|
912
1091
|
* for cursor pagination.
|
|
@@ -1098,182 +1277,153 @@ export interface UserMessage {
|
|
|
1098
1277
|
seq_id?: number | null;
|
|
1099
1278
|
step_id?: string | null;
|
|
1100
1279
|
}
|
|
1101
|
-
/**
|
|
1102
|
-
* A message generated by the system. Never streamed back on a response, only used
|
|
1103
|
-
* for cursor pagination.
|
|
1104
|
-
*
|
|
1105
|
-
* Args: id (str): The ID of the message date (datetime): The date the message was
|
|
1106
|
-
* created in ISO format name (Optional[str]): The name of the sender of the
|
|
1107
|
-
* message content (str): The message content sent by the system
|
|
1108
|
-
*/
|
|
1109
|
-
export type MessageUpdateResponse = SystemMessage | UserMessage | ReasoningMessage | HiddenReasoningMessage | ToolCallMessage | ToolsAPI.ToolReturnMessage | AssistantMessage | ApprovalRequestMessage | ApprovalResponseMessage;
|
|
1110
|
-
export type MessageListResponse = Array<LettaMessageUnion>;
|
|
1111
1280
|
export type MessageCancelResponse = {
|
|
1112
1281
|
[key: string]: unknown;
|
|
1113
1282
|
};
|
|
1114
|
-
export type
|
|
1115
|
-
export
|
|
1116
|
-
export declare namespace MessageUpdateParams {
|
|
1117
|
-
interface UpdateSystemMessage {
|
|
1118
|
-
/**
|
|
1119
|
-
* Path param: The ID of the agent in the format 'agent-<uuid4>'
|
|
1120
|
-
*/
|
|
1121
|
-
agent_id: string;
|
|
1122
|
-
/**
|
|
1123
|
-
* Body param: The message content sent by the system (can be a string or an array
|
|
1124
|
-
* of multi-modal content parts)
|
|
1125
|
-
*/
|
|
1126
|
-
content: string;
|
|
1127
|
-
/**
|
|
1128
|
-
* Body param:
|
|
1129
|
-
*/
|
|
1130
|
-
message_type?: 'system_message';
|
|
1131
|
-
}
|
|
1132
|
-
interface UpdateUserMessage {
|
|
1133
|
-
/**
|
|
1134
|
-
* Path param: The ID of the agent in the format 'agent-<uuid4>'
|
|
1135
|
-
*/
|
|
1136
|
-
agent_id: string;
|
|
1137
|
-
/**
|
|
1138
|
-
* Body param: The message content sent by the user (can be a string or an array of
|
|
1139
|
-
* multi-modal content parts)
|
|
1140
|
-
*/
|
|
1141
|
-
content: Array<LettaUserMessageContentUnion> | string;
|
|
1142
|
-
/**
|
|
1143
|
-
* Body param:
|
|
1144
|
-
*/
|
|
1145
|
-
message_type?: 'user_message';
|
|
1146
|
-
}
|
|
1147
|
-
interface UpdateReasoningMessage {
|
|
1148
|
-
/**
|
|
1149
|
-
* Path param: The ID of the agent in the format 'agent-<uuid4>'
|
|
1150
|
-
*/
|
|
1151
|
-
agent_id: string;
|
|
1152
|
-
/**
|
|
1153
|
-
* Body param:
|
|
1154
|
-
*/
|
|
1155
|
-
reasoning: string;
|
|
1156
|
-
/**
|
|
1157
|
-
* Body param:
|
|
1158
|
-
*/
|
|
1159
|
-
message_type?: 'reasoning_message';
|
|
1160
|
-
}
|
|
1161
|
-
interface UpdateAssistantMessage {
|
|
1162
|
-
/**
|
|
1163
|
-
* Path param: The ID of the agent in the format 'agent-<uuid4>'
|
|
1164
|
-
*/
|
|
1165
|
-
agent_id: string;
|
|
1166
|
-
/**
|
|
1167
|
-
* Body param: The message content sent by the assistant (can be a string or an
|
|
1168
|
-
* array of content parts)
|
|
1169
|
-
*/
|
|
1170
|
-
content: Array<LettaAssistantMessageContentUnion> | string;
|
|
1171
|
-
/**
|
|
1172
|
-
* Body param:
|
|
1173
|
-
*/
|
|
1174
|
-
message_type?: 'assistant_message';
|
|
1175
|
-
}
|
|
1176
|
-
}
|
|
1177
|
-
export interface MessageListParams {
|
|
1178
|
-
/**
|
|
1179
|
-
* Message ID cursor for pagination. Returns messages that come after this message
|
|
1180
|
-
* ID in the specified sort order
|
|
1181
|
-
*/
|
|
1182
|
-
after?: string | null;
|
|
1283
|
+
export type MessageCreateParams = MessageCreateParamsNonStreaming | MessageCreateParamsStreaming;
|
|
1284
|
+
export interface MessageCreateParamsBase {
|
|
1183
1285
|
/**
|
|
1184
|
-
* @deprecated The name of the message argument.
|
|
1286
|
+
* @deprecated The name of the message argument in the designated message tool.
|
|
1287
|
+
* Still supported for legacy agent types, but deprecated for letta_v1_agent
|
|
1288
|
+
* onward.
|
|
1185
1289
|
*/
|
|
1186
1290
|
assistant_message_tool_kwarg?: string;
|
|
1187
1291
|
/**
|
|
1188
|
-
* @deprecated The name of the designated message tool.
|
|
1292
|
+
* @deprecated The name of the designated message tool. Still supported for legacy
|
|
1293
|
+
* agent types, but deprecated for letta_v1_agent onward.
|
|
1189
1294
|
*/
|
|
1190
1295
|
assistant_message_tool_name?: string;
|
|
1191
1296
|
/**
|
|
1192
|
-
*
|
|
1193
|
-
*
|
|
1297
|
+
* Whether to process the request in the background (only used when
|
|
1298
|
+
* streaming=true).
|
|
1194
1299
|
*/
|
|
1195
|
-
|
|
1300
|
+
background?: boolean;
|
|
1196
1301
|
/**
|
|
1197
|
-
*
|
|
1302
|
+
* @deprecated If set to True, enables reasoning before responses or tool calls
|
|
1303
|
+
* from the agent.
|
|
1198
1304
|
*/
|
|
1199
|
-
|
|
1305
|
+
enable_thinking?: string;
|
|
1200
1306
|
/**
|
|
1201
|
-
* Whether to include
|
|
1202
|
-
* only.
|
|
1307
|
+
* Whether to include periodic keepalive ping messages in the stream to prevent
|
|
1308
|
+
* connection timeouts (only used when streaming=true).
|
|
1203
1309
|
*/
|
|
1204
|
-
|
|
1310
|
+
include_pings?: boolean;
|
|
1205
1311
|
/**
|
|
1206
|
-
*
|
|
1312
|
+
* Only return specified message types in the response. If `None` (default) returns
|
|
1313
|
+
* all messages.
|
|
1207
1314
|
*/
|
|
1208
|
-
|
|
1315
|
+
include_return_message_types?: Array<MessageType> | null;
|
|
1209
1316
|
/**
|
|
1210
|
-
*
|
|
1211
|
-
*
|
|
1317
|
+
* Syntactic sugar for a single user message. Equivalent to messages=[{'role':
|
|
1318
|
+
* 'user', 'content': input}].
|
|
1212
1319
|
*/
|
|
1213
|
-
|
|
1320
|
+
input?: string | Array<TextContent | ImageContent | ToolCallContent | ToolReturnContent | ReasoningContent | RedactedReasoningContent | OmittedReasoningContent | MessageCreateParams.SummarizedReasoningContent> | null;
|
|
1214
1321
|
/**
|
|
1215
|
-
*
|
|
1322
|
+
* Maximum number of steps the agent should take to process the request.
|
|
1216
1323
|
*/
|
|
1217
|
-
|
|
1324
|
+
max_steps?: number;
|
|
1218
1325
|
/**
|
|
1219
|
-
*
|
|
1326
|
+
* The messages to be sent to the agent.
|
|
1327
|
+
*/
|
|
1328
|
+
messages?: Array<AgentsAPI.MessageCreate | ApprovalCreate> | null;
|
|
1329
|
+
/**
|
|
1330
|
+
* Flag to determine if individual tokens should be streamed, rather than streaming
|
|
1331
|
+
* per step (only used when streaming=true).
|
|
1332
|
+
*/
|
|
1333
|
+
stream_tokens?: boolean;
|
|
1334
|
+
/**
|
|
1335
|
+
* If True, returns a streaming response (Server-Sent Events). If False (default),
|
|
1336
|
+
* returns a complete response.
|
|
1337
|
+
*/
|
|
1338
|
+
streaming?: boolean;
|
|
1339
|
+
/**
|
|
1340
|
+
* @deprecated Whether the server should parse specific tool call arguments
|
|
1341
|
+
* (default `send_message`) as `AssistantMessage` objects. Still supported for
|
|
1342
|
+
* legacy agent types, but deprecated for letta_v1_agent onward.
|
|
1220
1343
|
*/
|
|
1221
1344
|
use_assistant_message?: boolean;
|
|
1222
1345
|
}
|
|
1223
|
-
export
|
|
1346
|
+
export declare namespace MessageCreateParams {
|
|
1224
1347
|
/**
|
|
1225
|
-
*
|
|
1348
|
+
* The style of reasoning content returned by the OpenAI Responses API
|
|
1226
1349
|
*/
|
|
1227
|
-
|
|
1350
|
+
interface SummarizedReasoningContent {
|
|
1351
|
+
/**
|
|
1352
|
+
* The unique identifier for this reasoning step.
|
|
1353
|
+
*/
|
|
1354
|
+
id: string;
|
|
1355
|
+
/**
|
|
1356
|
+
* Summaries of the reasoning content.
|
|
1357
|
+
*/
|
|
1358
|
+
summary: Array<SummarizedReasoningContent.Summary>;
|
|
1359
|
+
/**
|
|
1360
|
+
* The encrypted reasoning content.
|
|
1361
|
+
*/
|
|
1362
|
+
encrypted_content?: string;
|
|
1363
|
+
/**
|
|
1364
|
+
* Indicates this is a summarized reasoning step.
|
|
1365
|
+
*/
|
|
1366
|
+
type?: 'summarized_reasoning';
|
|
1367
|
+
}
|
|
1368
|
+
namespace SummarizedReasoningContent {
|
|
1369
|
+
interface Summary {
|
|
1370
|
+
/**
|
|
1371
|
+
* The index of the summary part.
|
|
1372
|
+
*/
|
|
1373
|
+
index: number;
|
|
1374
|
+
/**
|
|
1375
|
+
* The text of the summary part.
|
|
1376
|
+
*/
|
|
1377
|
+
text: string;
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
type MessageCreateParamsNonStreaming = MessagesAPI.MessageCreateParamsNonStreaming;
|
|
1381
|
+
type MessageCreateParamsStreaming = MessagesAPI.MessageCreateParamsStreaming;
|
|
1228
1382
|
}
|
|
1229
|
-
export interface
|
|
1383
|
+
export interface MessageCreateParamsNonStreaming extends MessageCreateParamsBase {
|
|
1230
1384
|
/**
|
|
1231
|
-
* If
|
|
1385
|
+
* If True, returns a streaming response (Server-Sent Events). If False (default),
|
|
1386
|
+
* returns a complete response.
|
|
1232
1387
|
*/
|
|
1233
|
-
|
|
1388
|
+
streaming?: false;
|
|
1234
1389
|
}
|
|
1235
|
-
export interface
|
|
1390
|
+
export interface MessageCreateParamsStreaming extends MessageCreateParamsBase {
|
|
1236
1391
|
/**
|
|
1237
|
-
*
|
|
1392
|
+
* If True, returns a streaming response (Server-Sent Events). If False (default),
|
|
1393
|
+
* returns a complete response.
|
|
1238
1394
|
*/
|
|
1239
|
-
|
|
1395
|
+
streaming: true;
|
|
1396
|
+
}
|
|
1397
|
+
export interface MessageListParams extends ArrayPageParams {
|
|
1240
1398
|
/**
|
|
1241
|
-
* @deprecated The name of the message argument
|
|
1242
|
-
* Still supported for legacy agent types, but deprecated for letta_v1_agent
|
|
1243
|
-
* onward.
|
|
1399
|
+
* @deprecated The name of the message argument.
|
|
1244
1400
|
*/
|
|
1245
1401
|
assistant_message_tool_kwarg?: string;
|
|
1246
1402
|
/**
|
|
1247
|
-
* @deprecated The name of the designated message tool.
|
|
1248
|
-
* agent types, but deprecated for letta_v1_agent onward.
|
|
1403
|
+
* @deprecated The name of the designated message tool.
|
|
1249
1404
|
*/
|
|
1250
1405
|
assistant_message_tool_name?: string;
|
|
1251
1406
|
/**
|
|
1252
|
-
*
|
|
1253
|
-
* from the agent.
|
|
1254
|
-
*/
|
|
1255
|
-
enable_thinking?: string;
|
|
1256
|
-
/**
|
|
1257
|
-
* Only return specified message types in the response. If `None` (default) returns
|
|
1258
|
-
* all messages.
|
|
1407
|
+
* Group ID to filter messages by.
|
|
1259
1408
|
*/
|
|
1260
|
-
|
|
1409
|
+
group_id?: string | null;
|
|
1261
1410
|
/**
|
|
1262
|
-
*
|
|
1411
|
+
* Whether to include error messages and error statuses. For debugging purposes
|
|
1412
|
+
* only.
|
|
1263
1413
|
*/
|
|
1264
|
-
|
|
1414
|
+
include_err?: boolean | null;
|
|
1265
1415
|
/**
|
|
1266
|
-
* @deprecated Whether
|
|
1267
|
-
* (default `send_message`) as `AssistantMessage` objects. Still supported for
|
|
1268
|
-
* legacy agent types, but deprecated for letta_v1_agent onward.
|
|
1416
|
+
* @deprecated Whether to use assistant messages
|
|
1269
1417
|
*/
|
|
1270
1418
|
use_assistant_message?: boolean;
|
|
1271
1419
|
}
|
|
1272
|
-
export interface
|
|
1420
|
+
export interface MessageCancelParams {
|
|
1273
1421
|
/**
|
|
1274
|
-
*
|
|
1422
|
+
* Optional list of run IDs to cancel
|
|
1275
1423
|
*/
|
|
1276
|
-
|
|
1424
|
+
run_ids?: Array<string> | null;
|
|
1425
|
+
}
|
|
1426
|
+
export interface MessageCreateAsyncParams {
|
|
1277
1427
|
/**
|
|
1278
1428
|
* @deprecated The name of the message argument in the designated message tool.
|
|
1279
1429
|
* Still supported for legacy agent types, but deprecated for letta_v1_agent
|
|
@@ -1299,10 +1449,19 @@ export interface MessageSendAsyncParams {
|
|
|
1299
1449
|
* all messages.
|
|
1300
1450
|
*/
|
|
1301
1451
|
include_return_message_types?: Array<MessageType> | null;
|
|
1452
|
+
/**
|
|
1453
|
+
* Syntactic sugar for a single user message. Equivalent to messages=[{'role':
|
|
1454
|
+
* 'user', 'content': input}].
|
|
1455
|
+
*/
|
|
1456
|
+
input?: string | Array<TextContent | ImageContent | ToolCallContent | ToolReturnContent | ReasoningContent | RedactedReasoningContent | OmittedReasoningContent | MessageCreateAsyncParams.SummarizedReasoningContent> | null;
|
|
1302
1457
|
/**
|
|
1303
1458
|
* Maximum number of steps the agent should take to process the request.
|
|
1304
1459
|
*/
|
|
1305
1460
|
max_steps?: number;
|
|
1461
|
+
/**
|
|
1462
|
+
* The messages to be sent to the agent.
|
|
1463
|
+
*/
|
|
1464
|
+
messages?: Array<AgentsAPI.MessageCreate | ApprovalCreate> | null;
|
|
1306
1465
|
/**
|
|
1307
1466
|
* @deprecated Whether the server should parse specific tool call arguments
|
|
1308
1467
|
* (default `send_message`) as `AssistantMessage` objects. Still supported for
|
|
@@ -1310,11 +1469,48 @@ export interface MessageSendAsyncParams {
|
|
|
1310
1469
|
*/
|
|
1311
1470
|
use_assistant_message?: boolean;
|
|
1312
1471
|
}
|
|
1313
|
-
export
|
|
1472
|
+
export declare namespace MessageCreateAsyncParams {
|
|
1314
1473
|
/**
|
|
1315
|
-
* The
|
|
1474
|
+
* The style of reasoning content returned by the OpenAI Responses API
|
|
1475
|
+
*/
|
|
1476
|
+
interface SummarizedReasoningContent {
|
|
1477
|
+
/**
|
|
1478
|
+
* The unique identifier for this reasoning step.
|
|
1479
|
+
*/
|
|
1480
|
+
id: string;
|
|
1481
|
+
/**
|
|
1482
|
+
* Summaries of the reasoning content.
|
|
1483
|
+
*/
|
|
1484
|
+
summary: Array<SummarizedReasoningContent.Summary>;
|
|
1485
|
+
/**
|
|
1486
|
+
* The encrypted reasoning content.
|
|
1487
|
+
*/
|
|
1488
|
+
encrypted_content?: string;
|
|
1489
|
+
/**
|
|
1490
|
+
* Indicates this is a summarized reasoning step.
|
|
1491
|
+
*/
|
|
1492
|
+
type?: 'summarized_reasoning';
|
|
1493
|
+
}
|
|
1494
|
+
namespace SummarizedReasoningContent {
|
|
1495
|
+
interface Summary {
|
|
1496
|
+
/**
|
|
1497
|
+
* The index of the summary part.
|
|
1498
|
+
*/
|
|
1499
|
+
index: number;
|
|
1500
|
+
/**
|
|
1501
|
+
* The text of the summary part.
|
|
1502
|
+
*/
|
|
1503
|
+
text: string;
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
export interface MessageResetParams {
|
|
1508
|
+
/**
|
|
1509
|
+
* If true, adds the default initial messages after resetting.
|
|
1316
1510
|
*/
|
|
1317
|
-
|
|
1511
|
+
add_default_initial_messages?: boolean;
|
|
1512
|
+
}
|
|
1513
|
+
export interface MessageStreamParams {
|
|
1318
1514
|
/**
|
|
1319
1515
|
* @deprecated The name of the message argument in the designated message tool.
|
|
1320
1516
|
* Still supported for legacy agent types, but deprecated for letta_v1_agent
|
|
@@ -1327,7 +1523,8 @@ export interface MessageStreamParams {
|
|
|
1327
1523
|
*/
|
|
1328
1524
|
assistant_message_tool_name?: string;
|
|
1329
1525
|
/**
|
|
1330
|
-
* Whether to process the request in the background
|
|
1526
|
+
* Whether to process the request in the background (only used when
|
|
1527
|
+
* streaming=true).
|
|
1331
1528
|
*/
|
|
1332
1529
|
background?: boolean;
|
|
1333
1530
|
/**
|
|
@@ -1337,7 +1534,7 @@ export interface MessageStreamParams {
|
|
|
1337
1534
|
enable_thinking?: string;
|
|
1338
1535
|
/**
|
|
1339
1536
|
* Whether to include periodic keepalive ping messages in the stream to prevent
|
|
1340
|
-
* connection timeouts.
|
|
1537
|
+
* connection timeouts (only used when streaming=true).
|
|
1341
1538
|
*/
|
|
1342
1539
|
include_pings?: boolean;
|
|
1343
1540
|
/**
|
|
@@ -1345,15 +1542,29 @@ export interface MessageStreamParams {
|
|
|
1345
1542
|
* all messages.
|
|
1346
1543
|
*/
|
|
1347
1544
|
include_return_message_types?: Array<MessageType> | null;
|
|
1545
|
+
/**
|
|
1546
|
+
* Syntactic sugar for a single user message. Equivalent to messages=[{'role':
|
|
1547
|
+
* 'user', 'content': input}].
|
|
1548
|
+
*/
|
|
1549
|
+
input?: string | Array<TextContent | ImageContent | ToolCallContent | ToolReturnContent | ReasoningContent | RedactedReasoningContent | OmittedReasoningContent | MessageStreamParams.SummarizedReasoningContent> | null;
|
|
1348
1550
|
/**
|
|
1349
1551
|
* Maximum number of steps the agent should take to process the request.
|
|
1350
1552
|
*/
|
|
1351
1553
|
max_steps?: number;
|
|
1554
|
+
/**
|
|
1555
|
+
* The messages to be sent to the agent.
|
|
1556
|
+
*/
|
|
1557
|
+
messages?: Array<AgentsAPI.MessageCreate | ApprovalCreate> | null;
|
|
1352
1558
|
/**
|
|
1353
1559
|
* Flag to determine if individual tokens should be streamed, rather than streaming
|
|
1354
|
-
* per step.
|
|
1560
|
+
* per step (only used when streaming=true).
|
|
1355
1561
|
*/
|
|
1356
1562
|
stream_tokens?: boolean;
|
|
1563
|
+
/**
|
|
1564
|
+
* If True, returns a streaming response (Server-Sent Events). If False (default),
|
|
1565
|
+
* returns a complete response.
|
|
1566
|
+
*/
|
|
1567
|
+
streaming?: boolean;
|
|
1357
1568
|
/**
|
|
1358
1569
|
* @deprecated Whether the server should parse specific tool call arguments
|
|
1359
1570
|
* (default `send_message`) as `AssistantMessage` objects. Still supported for
|
|
@@ -1361,7 +1572,42 @@ export interface MessageStreamParams {
|
|
|
1361
1572
|
*/
|
|
1362
1573
|
use_assistant_message?: boolean;
|
|
1363
1574
|
}
|
|
1575
|
+
export declare namespace MessageStreamParams {
|
|
1576
|
+
/**
|
|
1577
|
+
* The style of reasoning content returned by the OpenAI Responses API
|
|
1578
|
+
*/
|
|
1579
|
+
interface SummarizedReasoningContent {
|
|
1580
|
+
/**
|
|
1581
|
+
* The unique identifier for this reasoning step.
|
|
1582
|
+
*/
|
|
1583
|
+
id: string;
|
|
1584
|
+
/**
|
|
1585
|
+
* Summaries of the reasoning content.
|
|
1586
|
+
*/
|
|
1587
|
+
summary: Array<SummarizedReasoningContent.Summary>;
|
|
1588
|
+
/**
|
|
1589
|
+
* The encrypted reasoning content.
|
|
1590
|
+
*/
|
|
1591
|
+
encrypted_content?: string;
|
|
1592
|
+
/**
|
|
1593
|
+
* Indicates this is a summarized reasoning step.
|
|
1594
|
+
*/
|
|
1595
|
+
type?: 'summarized_reasoning';
|
|
1596
|
+
}
|
|
1597
|
+
namespace SummarizedReasoningContent {
|
|
1598
|
+
interface Summary {
|
|
1599
|
+
/**
|
|
1600
|
+
* The index of the summary part.
|
|
1601
|
+
*/
|
|
1602
|
+
index: number;
|
|
1603
|
+
/**
|
|
1604
|
+
* The text of the summary part.
|
|
1605
|
+
*/
|
|
1606
|
+
text: string;
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1364
1610
|
export declare namespace Messages {
|
|
1365
|
-
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
|
|
1611
|
+
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, };
|
|
1366
1612
|
}
|
|
1367
1613
|
//# sourceMappingURL=messages.d.ts.map
|