@letta-ai/letta-client 1.0.0-alpha.6 → 1.0.0-alpha.7
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 +32 -0
- package/LICENSE +1 -1
- package/README.md +105 -54
- package/client.d.mts +48 -71
- package/client.d.mts.map +1 -1
- package/client.d.ts +48 -71
- package/client.d.ts.map +1 -1
- package/client.js +69 -93
- package/client.js.map +1 -1
- package/client.mjs +67 -91
- 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/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/index.d.mts +3 -3
- package/index.d.mts.map +1 -1
- package/index.d.ts +3 -3
- package/index.d.ts.map +1 -1
- package/index.js +4 -4
- package/index.js.map +1 -1
- package/index.mjs +3 -3
- package/index.mjs.map +1 -1
- 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.map +1 -1
- package/internal/parse.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/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 +3 -3
- package/resources/agents/agents.d.mts +312 -245
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +312 -245
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +12 -71
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +13 -72
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/{core-memory/blocks.d.mts → blocks.d.mts} +41 -7
- package/resources/agents/blocks.d.mts.map +1 -0
- package/resources/agents/{core-memory/blocks.d.ts → blocks.d.ts} +41 -7
- package/resources/agents/blocks.d.ts.map +1 -0
- package/resources/agents/{core-memory/blocks.js → blocks.js} +4 -4
- package/resources/agents/blocks.js.map +1 -0
- package/resources/agents/{core-memory/blocks.mjs → blocks.mjs} +4 -4
- package/resources/agents/blocks.mjs.map +1 -0
- package/resources/agents/files.d.mts +30 -4
- package/resources/agents/files.d.mts.map +1 -1
- package/resources/agents/files.d.ts +30 -4
- package/resources/agents/files.d.ts.map +1 -1
- package/resources/agents/files.js +1 -1
- package/resources/agents/files.mjs +1 -1
- package/resources/agents/folders.d.mts +95 -4
- package/resources/agents/folders.d.mts.map +1 -1
- package/resources/agents/folders.d.ts +95 -4
- package/resources/agents/folders.d.ts.map +1 -1
- package/resources/agents/folders.js +2 -2
- package/resources/agents/folders.js.map +1 -1
- package/resources/agents/folders.mjs +2 -2
- package/resources/agents/folders.mjs.map +1 -1
- package/resources/agents/groups.d.mts +44 -0
- package/resources/agents/groups.d.mts.map +1 -0
- package/resources/agents/groups.d.ts +44 -0
- package/resources/agents/groups.d.ts.map +1 -0
- package/resources/agents/groups.js +16 -0
- package/resources/agents/groups.js.map +1 -0
- package/resources/agents/groups.mjs +12 -0
- package/resources/agents/groups.mjs.map +1 -0
- package/resources/agents/index.d.mts +6 -7
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +6 -7
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js +5 -7
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs +2 -3
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/messages.d.mts +323 -251
- package/resources/agents/messages.d.mts.map +1 -1
- package/resources/agents/messages.d.ts +323 -251
- package/resources/agents/messages.d.ts.map +1 -1
- package/resources/agents/messages.js +16 -19
- package/resources/agents/messages.js.map +1 -1
- package/resources/agents/messages.mjs +16 -19
- package/resources/agents/messages.mjs.map +1 -1
- package/resources/agents/tools.d.mts +49 -11
- package/resources/agents/tools.d.mts.map +1 -1
- package/resources/agents/tools.d.ts +49 -11
- package/resources/agents/tools.d.ts.map +1 -1
- package/resources/agents/tools.js +11 -7
- package/resources/agents/tools.js.map +1 -1
- package/resources/agents/tools.mjs +11 -7
- package/resources/agents/tools.mjs.map +1 -1
- package/resources/archives.d.mts +31 -6
- package/resources/archives.d.mts.map +1 -1
- package/resources/archives.d.ts +31 -6
- package/resources/archives.d.ts.map +1 -1
- package/resources/archives.js +21 -2
- package/resources/archives.js.map +1 -1
- package/resources/archives.mjs +21 -2
- package/resources/archives.mjs.map +1 -1
- package/resources/{messages → batches}/batches.d.mts +24 -43
- package/resources/batches/batches.d.mts.map +1 -0
- package/resources/{messages → batches}/batches.d.ts +24 -43
- package/resources/batches/batches.d.ts.map +1 -0
- package/resources/{messages → batches}/batches.js +8 -6
- package/resources/batches/batches.js.map +1 -0
- package/resources/{messages → batches}/batches.mjs +7 -6
- 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 +46 -0
- package/resources/batches/messages.d.mts.map +1 -0
- package/resources/batches/messages.d.ts +46 -0
- package/resources/batches/messages.d.ts.map +1 -0
- package/resources/batches/messages.js +16 -0
- package/resources/batches/messages.js.map +1 -0
- package/resources/batches/messages.mjs +12 -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/{sources.js → batches.js} +2 -2
- package/resources/batches.js.map +1 -0
- package/resources/{tools/mcp/servers.mjs → batches.mjs} +2 -2
- package/resources/batches.mjs.map +1 -0
- package/resources/blocks/agents.d.mts +53 -0
- package/resources/blocks/agents.d.mts.map +1 -0
- package/resources/blocks/agents.d.ts +53 -0
- package/resources/blocks/agents.d.ts.map +1 -0
- package/resources/blocks/agents.js +17 -0
- package/resources/blocks/agents.js.map +1 -0
- package/resources/blocks/agents.mjs +13 -0
- package/resources/blocks/agents.mjs.map +1 -0
- package/resources/blocks/blocks.d.mts +296 -0
- package/resources/blocks/blocks.d.mts.map +1 -0
- package/resources/blocks/blocks.d.ts +296 -0
- package/resources/blocks/blocks.d.ts.map +1 -0
- package/resources/blocks/blocks.js +54 -0
- package/resources/blocks/blocks.js.map +1 -0
- package/resources/blocks/blocks.mjs +49 -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/{agents/core-memory → blocks}/index.js +3 -3
- package/resources/blocks/index.js.map +1 -0
- package/resources/{agents/core-memory → blocks}/index.mjs +1 -1
- 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 +216 -0
- package/resources/folders/files.d.mts.map +1 -0
- package/resources/folders/files.d.ts +216 -0
- package/resources/folders/files.d.ts.map +1 -0
- package/resources/folders/files.js +35 -0
- package/resources/folders/files.js.map +1 -0
- package/resources/folders/files.mjs +31 -0
- package/resources/folders/files.mjs.map +1 -0
- package/resources/folders/folders.d.mts +183 -0
- package/resources/folders/folders.d.mts.map +1 -0
- package/resources/folders/folders.d.ts +183 -0
- package/resources/folders/folders.d.ts.map +1 -0
- package/resources/folders/folders.js +58 -0
- package/resources/folders/folders.js.map +1 -0
- package/resources/folders/folders.mjs +53 -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 +3 -8
- package/resources/groups/groups.d.mts.map +1 -1
- package/resources/groups/groups.d.ts +3 -8
- package/resources/groups/groups.d.ts.map +1 -1
- package/resources/groups/groups.js +0 -6
- package/resources/groups/groups.js.map +1 -1
- package/resources/groups/groups.mjs +0 -6
- 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 +37 -22
- package/resources/groups/messages.d.mts.map +1 -1
- package/resources/groups/messages.d.ts +37 -22
- package/resources/groups/messages.d.ts.map +1 -1
- package/resources/groups/messages.js +7 -1
- package/resources/groups/messages.js.map +1 -1
- package/resources/groups/messages.mjs +7 -1
- package/resources/groups/messages.mjs.map +1 -1
- package/resources/identities/agents.d.mts +45 -0
- package/resources/identities/agents.d.mts.map +1 -0
- package/resources/identities/agents.d.ts +45 -0
- package/resources/identities/agents.d.ts.map +1 -0
- package/resources/identities/agents.js +16 -0
- package/resources/identities/agents.js.map +1 -0
- package/resources/identities/agents.mjs +12 -0
- package/resources/identities/agents.mjs.map +1 -0
- package/resources/identities/blocks.d.mts +40 -0
- package/resources/identities/blocks.d.mts.map +1 -0
- package/resources/identities/blocks.d.ts +40 -0
- package/resources/identities/blocks.d.ts.map +1 -0
- package/resources/identities/blocks.js +16 -0
- package/resources/identities/blocks.js.map +1 -0
- package/resources/identities/blocks.mjs +12 -0
- package/resources/identities/blocks.mjs.map +1 -0
- package/resources/identities/identities.d.mts +235 -0
- package/resources/identities/identities.d.mts.map +1 -0
- package/resources/identities/identities.d.ts +235 -0
- package/resources/identities/identities.d.ts.map +1 -0
- package/resources/identities/identities.js +85 -0
- package/resources/identities/identities.js.map +1 -0
- package/resources/identities/identities.mjs +80 -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 +13 -22
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +13 -22
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +11 -31
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +9 -19
- package/resources/index.mjs.map +1 -1
- package/resources/models/embeddings.d.mts +16 -0
- package/resources/models/embeddings.d.mts.map +1 -0
- package/resources/models/embeddings.d.ts +16 -0
- package/resources/models/embeddings.d.ts.map +1 -0
- package/resources/models/embeddings.js +16 -0
- package/resources/models/embeddings.js.map +1 -0
- package/resources/models/embeddings.mjs +12 -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 +165 -0
- package/resources/models/models.d.mts.map +1 -0
- package/resources/models/models.d.ts +165 -0
- package/resources/models/models.d.ts.map +1 -0
- package/resources/models/models.js +24 -0
- package/resources/models/models.js.map +1 -0
- package/resources/models/models.mjs +19 -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 +65 -0
- package/resources/runs/messages.d.mts.map +1 -0
- package/resources/runs/messages.d.ts +65 -0
- package/resources/runs/messages.d.ts.map +1 -0
- package/resources/runs/messages.js +22 -0
- package/resources/runs/messages.js.map +1 -0
- package/resources/runs/messages.mjs +18 -0
- package/resources/runs/messages.mjs.map +1 -0
- package/resources/runs/runs.d.mts +172 -0
- package/resources/runs/runs.d.mts.map +1 -0
- package/resources/runs/runs.d.ts +172 -0
- package/resources/runs/runs.d.ts.map +1 -0
- package/resources/runs/runs.js +38 -0
- package/resources/runs/runs.js.map +1 -0
- package/resources/runs/runs.mjs +33 -0
- package/resources/runs/runs.mjs.map +1 -0
- package/resources/runs/steps.d.mts +38 -0
- package/resources/runs/steps.d.mts.map +1 -0
- package/resources/runs/steps.d.ts +38 -0
- package/resources/runs/steps.d.ts.map +1 -0
- package/resources/runs/steps.js +16 -0
- package/resources/runs/steps.js.map +1 -0
- package/resources/runs/steps.mjs +12 -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 +41 -0
- package/resources/steps/messages.d.mts.map +1 -0
- package/resources/steps/messages.d.ts +41 -0
- package/resources/steps/messages.d.ts.map +1 -0
- package/resources/steps/messages.js +16 -0
- package/resources/steps/messages.js.map +1 -0
- package/resources/steps/messages.mjs +12 -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 +254 -0
- package/resources/steps/steps.d.mts.map +1 -0
- package/resources/steps/steps.d.ts +254 -0
- package/resources/steps/steps.d.ts.map +1 -0
- package/resources/steps/steps.js +51 -0
- package/resources/steps/steps.js.map +1 -0
- package/resources/steps/steps.mjs +46 -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 +61 -0
- package/resources/templates/agents.d.mts.map +1 -0
- package/resources/templates/agents.d.ts +61 -0
- package/resources/templates/agents.d.ts.map +1 -0
- package/resources/templates/agents.js +22 -0
- package/resources/templates/agents.js.map +1 -0
- package/resources/templates/agents.mjs +18 -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 +499 -1
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +499 -1
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +54 -2
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +52 -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/{tools/mcp.js → top-level.js} +1 -3
- package/resources/top-level.js.map +1 -0
- package/{src/resources/agents/core-memory.ts → resources/top-level.mjs} +2 -2
- package/resources/top-level.mjs.map +1 -0
- package/src/client.ts +146 -425
- package/src/core/api-promise.ts +4 -4
- package/src/core/error.ts +2 -2
- package/src/core/resource.ts +3 -3
- package/src/index.ts +3 -3
- package/src/internal/parse.ts +2 -2
- 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/resources/agents/agents.ts +408 -396
- package/src/resources/agents/{core-memory/blocks.ts → blocks.ts} +52 -8
- package/src/resources/agents/files.ts +34 -4
- package/src/resources/agents/folders.ts +114 -4
- package/src/resources/agents/groups.ts +61 -0
- package/src/resources/agents/index.ts +21 -37
- package/src/resources/agents/messages.ts +381 -298
- package/src/resources/agents/tools.ts +65 -15
- package/src/resources/archives.ts +49 -9
- package/src/resources/{messages → batches}/batches.ts +32 -57
- package/src/resources/{messages → batches}/index.ts +1 -3
- package/src/resources/batches/messages.ts +63 -0
- package/src/resources/{tools/mcp.ts → batches.ts} +1 -1
- package/src/resources/blocks/agents.ts +79 -0
- package/src/resources/blocks/blocks.ts +392 -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 +295 -0
- package/src/resources/folders/folders.ts +264 -0
- package/src/resources/folders/index.ts +21 -0
- package/src/resources/folders.ts +1 -460
- package/src/resources/groups/groups.ts +6 -14
- package/src/resources/groups/index.ts +3 -3
- package/src/resources/groups/messages.ts +43 -23
- package/src/resources/identities/agents.ts +70 -0
- package/src/resources/identities/blocks.ts +56 -0
- package/src/resources/identities/identities.ts +354 -0
- package/src/resources/identities/index.ts +18 -0
- package/src/resources/identities/properties.ts +30 -0
- package/src/resources/identities.ts +1 -432
- package/src/resources/index.ts +27 -154
- package/src/resources/models/embeddings.ts +22 -0
- package/src/resources/models/index.ts +12 -0
- package/src/resources/models/models.ts +277 -0
- package/src/resources/models.ts +1 -276
- package/src/resources/runs/index.ts +12 -0
- package/src/resources/runs/messages.ts +98 -0
- package/src/resources/runs/runs.ts +246 -0
- package/src/resources/runs/steps.ts +54 -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 +7 -0
- package/src/resources/steps/messages.ts +67 -0
- package/src/resources/steps/metrics.ts +81 -0
- package/src/resources/steps/steps.ts +334 -0
- package/src/resources/steps/trace.ts +16 -0
- package/src/resources/steps.ts +1 -455
- package/src/resources/templates/agents.ts +83 -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 +641 -1
- package/src/resources/top-level.ts +14 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +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.map +0 -1
- package/resources/agents/core-memory/blocks.d.ts.map +0 -1
- package/resources/agents/core-memory/blocks.js.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- package/resources/messages/batches.d.ts.map +0 -1
- package/resources/messages/batches.js.map +0 -1
- 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.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.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.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/core-memory.ts +0 -201
- package/src/resources/agents/core-memory/index.ts +0 -13
- 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/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/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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blocks.mjs","sourceRoot":"","sources":["../../src/resources/agents/blocks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,QAAQ,CAAC,UAAkB,EAAE,MAA2B,EAAE,OAAwB;QAChF,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,QAAQ,uBAAuB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IAClG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,UAAkB,EAAE,MAAyB,EAAE,OAAwB;QAC5E,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,cAAc,QAAQ,uBAAuB,UAAU,EAAE,EAAE;YACvF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,OAAO,qBAAqB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,OAAe,EACf,MAAyB,EACzB,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,cAAc,QAAQ,8BAA8B,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACxG,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,OAAe,EACf,MAAyB,EACzB,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,cAAc,QAAQ,8BAA8B,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACxG,CAAC;CACF"}
|
|
@@ -3,7 +3,7 @@ import { APIPromise } from "../../core/api-promise.mjs";
|
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
4
|
export declare class Files extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Get the files attached to an agent with their open/closed status
|
|
6
|
+
* Get the files attached to an agent with their open/closed status.
|
|
7
7
|
*/
|
|
8
8
|
list(agentID: string, query?: FileListParams | null | undefined, options?: RequestOptions): APIPromise<FileListResponse>;
|
|
9
9
|
/**
|
|
@@ -98,7 +98,18 @@ export type FileCloseAllResponse = Array<string>;
|
|
|
98
98
|
export type FileOpenResponse = Array<string>;
|
|
99
99
|
export interface FileListParams {
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
101
|
+
* File ID cursor for pagination. Returns files that come after this file ID in the
|
|
102
|
+
* specified sort order
|
|
103
|
+
*/
|
|
104
|
+
after?: string | null;
|
|
105
|
+
/**
|
|
106
|
+
* File ID cursor for pagination. Returns files that come before this file ID in
|
|
107
|
+
* the specified sort order
|
|
108
|
+
*/
|
|
109
|
+
before?: string | null;
|
|
110
|
+
/**
|
|
111
|
+
* @deprecated Pagination cursor from previous response (deprecated, use
|
|
112
|
+
* before/after)
|
|
102
113
|
*/
|
|
103
114
|
cursor?: string | null;
|
|
104
115
|
/**
|
|
@@ -106,14 +117,29 @@ export interface FileListParams {
|
|
|
106
117
|
*/
|
|
107
118
|
is_open?: boolean | null;
|
|
108
119
|
/**
|
|
109
|
-
*
|
|
120
|
+
* Maximum number of files to return
|
|
121
|
+
*/
|
|
122
|
+
limit?: number | null;
|
|
123
|
+
/**
|
|
124
|
+
* Sort order for files by creation time. 'asc' for oldest first, 'desc' for newest
|
|
125
|
+
* first
|
|
110
126
|
*/
|
|
111
|
-
|
|
127
|
+
order?: 'asc' | 'desc';
|
|
128
|
+
/**
|
|
129
|
+
* Field to sort by
|
|
130
|
+
*/
|
|
131
|
+
order_by?: 'created_at';
|
|
112
132
|
}
|
|
113
133
|
export interface FileCloseParams {
|
|
134
|
+
/**
|
|
135
|
+
* The ID of the agent in the format 'agent-<uuid4>'
|
|
136
|
+
*/
|
|
114
137
|
agent_id: string;
|
|
115
138
|
}
|
|
116
139
|
export interface FileOpenParams {
|
|
140
|
+
/**
|
|
141
|
+
* The ID of the agent in the format 'agent-<uuid4>'
|
|
142
|
+
*/
|
|
117
143
|
agent_id: string;
|
|
118
144
|
}
|
|
119
145
|
export declare namespace Files {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.mts","sourceRoot":"","sources":["../../src/resources/agents/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,IAAI,CACF,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAI/B;;;;;OAKG;IACH,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAK7F;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIrF;;;;;;OAMG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;CAIrG;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAEpC;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,yBAAiB,gBAAgB,CAAC;IAChC;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH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AC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAEvB;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;CACzB;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
|
@@ -3,7 +3,7 @@ import { APIPromise } from "../../core/api-promise.js";
|
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
4
|
export declare class Files extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Get the files attached to an agent with their open/closed status
|
|
6
|
+
* Get the files attached to an agent with their open/closed status.
|
|
7
7
|
*/
|
|
8
8
|
list(agentID: string, query?: FileListParams | null | undefined, options?: RequestOptions): APIPromise<FileListResponse>;
|
|
9
9
|
/**
|
|
@@ -98,7 +98,18 @@ export type FileCloseAllResponse = Array<string>;
|
|
|
98
98
|
export type FileOpenResponse = Array<string>;
|
|
99
99
|
export interface FileListParams {
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
101
|
+
* File ID cursor for pagination. Returns files that come after this file ID in the
|
|
102
|
+
* specified sort order
|
|
103
|
+
*/
|
|
104
|
+
after?: string | null;
|
|
105
|
+
/**
|
|
106
|
+
* File ID cursor for pagination. Returns files that come before this file ID in
|
|
107
|
+
* the specified sort order
|
|
108
|
+
*/
|
|
109
|
+
before?: string | null;
|
|
110
|
+
/**
|
|
111
|
+
* @deprecated Pagination cursor from previous response (deprecated, use
|
|
112
|
+
* before/after)
|
|
102
113
|
*/
|
|
103
114
|
cursor?: string | null;
|
|
104
115
|
/**
|
|
@@ -106,14 +117,29 @@ export interface FileListParams {
|
|
|
106
117
|
*/
|
|
107
118
|
is_open?: boolean | null;
|
|
108
119
|
/**
|
|
109
|
-
*
|
|
120
|
+
* Maximum number of files to return
|
|
121
|
+
*/
|
|
122
|
+
limit?: number | null;
|
|
123
|
+
/**
|
|
124
|
+
* Sort order for files by creation time. 'asc' for oldest first, 'desc' for newest
|
|
125
|
+
* first
|
|
110
126
|
*/
|
|
111
|
-
|
|
127
|
+
order?: 'asc' | 'desc';
|
|
128
|
+
/**
|
|
129
|
+
* Field to sort by
|
|
130
|
+
*/
|
|
131
|
+
order_by?: 'created_at';
|
|
112
132
|
}
|
|
113
133
|
export interface FileCloseParams {
|
|
134
|
+
/**
|
|
135
|
+
* The ID of the agent in the format 'agent-<uuid4>'
|
|
136
|
+
*/
|
|
114
137
|
agent_id: string;
|
|
115
138
|
}
|
|
116
139
|
export interface FileOpenParams {
|
|
140
|
+
/**
|
|
141
|
+
* The ID of the agent in the format 'agent-<uuid4>'
|
|
142
|
+
*/
|
|
117
143
|
agent_id: string;
|
|
118
144
|
}
|
|
119
145
|
export declare namespace Files {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/resources/agents/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,IAAI,CACF,OAAO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ED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
|
@@ -6,7 +6,7 @@ const resource_1 = require("../../core/resource.js");
|
|
|
6
6
|
const path_1 = require("../../internal/utils/path.js");
|
|
7
7
|
class Files extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
|
-
* Get the files attached to an agent with their open/closed status
|
|
9
|
+
* Get the files attached to an agent with their open/closed status.
|
|
10
10
|
*/
|
|
11
11
|
list(agentID, query = {}, options) {
|
|
12
12
|
return this._client.get((0, path_1.path) `/v1/agents/${agentID}/files`, { query, ...options });
|
|
@@ -3,7 +3,7 @@ import { APIResource } from "../../core/resource.mjs";
|
|
|
3
3
|
import { path } from "../../internal/utils/path.mjs";
|
|
4
4
|
export class Files extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Get the files attached to an agent with their open/closed status
|
|
6
|
+
* Get the files attached to an agent with their open/closed status.
|
|
7
7
|
*/
|
|
8
8
|
list(agentID, query = {}, options) {
|
|
9
9
|
return this._client.get(path `/v1/agents/${agentID}/files`, { query, ...options });
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as ArchivesAPI from "../archives.mjs";
|
|
2
3
|
import * as AgentsAPI from "./agents.mjs";
|
|
3
|
-
import * as
|
|
4
|
+
import * as ModelsAPI from "../models/models.mjs";
|
|
4
5
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
5
6
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
6
7
|
export declare class Folders extends APIResource {
|
|
7
8
|
/**
|
|
8
9
|
* Get the folders associated with an agent.
|
|
9
10
|
*/
|
|
10
|
-
list(agentID: string, options?: RequestOptions): APIPromise<FolderListResponse>;
|
|
11
|
+
list(agentID: string, query?: FolderListParams | null | undefined, options?: RequestOptions): APIPromise<FolderListResponse>;
|
|
11
12
|
/**
|
|
12
13
|
* Attach a folder to an agent.
|
|
13
14
|
*/
|
|
@@ -17,14 +18,104 @@ export declare class Folders extends APIResource {
|
|
|
17
18
|
*/
|
|
18
19
|
detach(folderID: string, params: FolderDetachParams, options?: RequestOptions): APIPromise<AgentsAPI.AgentState>;
|
|
19
20
|
}
|
|
20
|
-
export type FolderListResponse = Array<
|
|
21
|
+
export type FolderListResponse = Array<FolderListResponse.FolderListResponseItem>;
|
|
22
|
+
export declare namespace FolderListResponse {
|
|
23
|
+
/**
|
|
24
|
+
* Representation of a source, which is a collection of files and passages.
|
|
25
|
+
*
|
|
26
|
+
* Parameters: id (str): The ID of the source name (str): The name of the source.
|
|
27
|
+
* embedding_config (EmbeddingConfig): The embedding configuration used by the
|
|
28
|
+
* source. user_id (str): The ID of the user that created the source. metadata
|
|
29
|
+
* (dict): Metadata associated with the source. description (str): The description
|
|
30
|
+
* of the source.
|
|
31
|
+
*/
|
|
32
|
+
interface FolderListResponseItem {
|
|
33
|
+
/**
|
|
34
|
+
* The embedding configuration used by the source.
|
|
35
|
+
*/
|
|
36
|
+
embedding_config: ModelsAPI.EmbeddingConfig;
|
|
37
|
+
/**
|
|
38
|
+
* The name of the source.
|
|
39
|
+
*/
|
|
40
|
+
name: string;
|
|
41
|
+
/**
|
|
42
|
+
* The human-friendly ID of the Source
|
|
43
|
+
*/
|
|
44
|
+
id?: string;
|
|
45
|
+
/**
|
|
46
|
+
* The timestamp when the source was created.
|
|
47
|
+
*/
|
|
48
|
+
created_at?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* The id of the user that made this Tool.
|
|
51
|
+
*/
|
|
52
|
+
created_by_id?: string | null;
|
|
53
|
+
/**
|
|
54
|
+
* The description of the source.
|
|
55
|
+
*/
|
|
56
|
+
description?: string | null;
|
|
57
|
+
/**
|
|
58
|
+
* Instructions for how to use the source.
|
|
59
|
+
*/
|
|
60
|
+
instructions?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* The id of the user that made this Tool.
|
|
63
|
+
*/
|
|
64
|
+
last_updated_by_id?: string | null;
|
|
65
|
+
/**
|
|
66
|
+
* Metadata associated with the source.
|
|
67
|
+
*/
|
|
68
|
+
metadata?: {
|
|
69
|
+
[key: string]: unknown;
|
|
70
|
+
} | null;
|
|
71
|
+
/**
|
|
72
|
+
* The timestamp when the source was last updated.
|
|
73
|
+
*/
|
|
74
|
+
updated_at?: string | null;
|
|
75
|
+
/**
|
|
76
|
+
* The vector database provider used for this source's passages
|
|
77
|
+
*/
|
|
78
|
+
vector_db_provider?: ArchivesAPI.VectorDBProvider;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
export interface FolderListParams {
|
|
82
|
+
/**
|
|
83
|
+
* Source ID cursor for pagination. Returns sources that come after this source ID
|
|
84
|
+
* in the specified sort order
|
|
85
|
+
*/
|
|
86
|
+
after?: string | null;
|
|
87
|
+
/**
|
|
88
|
+
* Source ID cursor for pagination. Returns sources that come before this source ID
|
|
89
|
+
* in the specified sort order
|
|
90
|
+
*/
|
|
91
|
+
before?: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* Maximum number of sources to return
|
|
94
|
+
*/
|
|
95
|
+
limit?: number | null;
|
|
96
|
+
/**
|
|
97
|
+
* Sort order for sources by creation time. 'asc' for oldest first, 'desc' for
|
|
98
|
+
* newest first
|
|
99
|
+
*/
|
|
100
|
+
order?: 'asc' | 'desc';
|
|
101
|
+
/**
|
|
102
|
+
* Field to sort by
|
|
103
|
+
*/
|
|
104
|
+
order_by?: 'created_at';
|
|
105
|
+
}
|
|
21
106
|
export interface FolderAttachParams {
|
|
107
|
+
/**
|
|
108
|
+
* The ID of the agent in the format 'agent-<uuid4>'
|
|
109
|
+
*/
|
|
22
110
|
agent_id: string;
|
|
23
111
|
}
|
|
24
112
|
export interface FolderDetachParams {
|
|
113
|
+
/**
|
|
114
|
+
* The ID of the agent in the format 'agent-<uuid4>'
|
|
115
|
+
*/
|
|
25
116
|
agent_id: string;
|
|
26
117
|
}
|
|
27
118
|
export declare namespace Folders {
|
|
28
|
-
export { type FolderListResponse as FolderListResponse, type FolderAttachParams as FolderAttachParams, type FolderDetachParams as FolderDetachParams, };
|
|
119
|
+
export { type FolderListResponse as FolderListResponse, type FolderListParams as FolderListParams, type FolderAttachParams as FolderAttachParams, type FolderDetachParams as FolderDetachParams, };
|
|
29
120
|
}
|
|
30
121
|
//# sourceMappingURL=folders.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folders.d.mts","sourceRoot":"","sources":["../../src/resources/agents/folders.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,KAAK,
|
|
1
|
+
{"version":3,"file":"folders.d.mts","sourceRoot":"","sources":["../../src/resources/agents/folders.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,SAAS;OACd,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,IAAI,CACF,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAIjC;;OAEG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,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AEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAEvB;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;CACzB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as ArchivesAPI from "../archives.js";
|
|
2
3
|
import * as AgentsAPI from "./agents.js";
|
|
3
|
-
import * as
|
|
4
|
+
import * as ModelsAPI from "../models/models.js";
|
|
4
5
|
import { APIPromise } from "../../core/api-promise.js";
|
|
5
6
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
6
7
|
export declare class Folders extends APIResource {
|
|
7
8
|
/**
|
|
8
9
|
* Get the folders associated with an agent.
|
|
9
10
|
*/
|
|
10
|
-
list(agentID: string, options?: RequestOptions): APIPromise<FolderListResponse>;
|
|
11
|
+
list(agentID: string, query?: FolderListParams | null | undefined, options?: RequestOptions): APIPromise<FolderListResponse>;
|
|
11
12
|
/**
|
|
12
13
|
* Attach a folder to an agent.
|
|
13
14
|
*/
|
|
@@ -17,14 +18,104 @@ export declare class Folders extends APIResource {
|
|
|
17
18
|
*/
|
|
18
19
|
detach(folderID: string, params: FolderDetachParams, options?: RequestOptions): APIPromise<AgentsAPI.AgentState>;
|
|
19
20
|
}
|
|
20
|
-
export type FolderListResponse = Array<
|
|
21
|
+
export type FolderListResponse = Array<FolderListResponse.FolderListResponseItem>;
|
|
22
|
+
export declare namespace FolderListResponse {
|
|
23
|
+
/**
|
|
24
|
+
* Representation of a source, which is a collection of files and passages.
|
|
25
|
+
*
|
|
26
|
+
* Parameters: id (str): The ID of the source name (str): The name of the source.
|
|
27
|
+
* embedding_config (EmbeddingConfig): The embedding configuration used by the
|
|
28
|
+
* source. user_id (str): The ID of the user that created the source. metadata
|
|
29
|
+
* (dict): Metadata associated with the source. description (str): The description
|
|
30
|
+
* of the source.
|
|
31
|
+
*/
|
|
32
|
+
interface FolderListResponseItem {
|
|
33
|
+
/**
|
|
34
|
+
* The embedding configuration used by the source.
|
|
35
|
+
*/
|
|
36
|
+
embedding_config: ModelsAPI.EmbeddingConfig;
|
|
37
|
+
/**
|
|
38
|
+
* The name of the source.
|
|
39
|
+
*/
|
|
40
|
+
name: string;
|
|
41
|
+
/**
|
|
42
|
+
* The human-friendly ID of the Source
|
|
43
|
+
*/
|
|
44
|
+
id?: string;
|
|
45
|
+
/**
|
|
46
|
+
* The timestamp when the source was created.
|
|
47
|
+
*/
|
|
48
|
+
created_at?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* The id of the user that made this Tool.
|
|
51
|
+
*/
|
|
52
|
+
created_by_id?: string | null;
|
|
53
|
+
/**
|
|
54
|
+
* The description of the source.
|
|
55
|
+
*/
|
|
56
|
+
description?: string | null;
|
|
57
|
+
/**
|
|
58
|
+
* Instructions for how to use the source.
|
|
59
|
+
*/
|
|
60
|
+
instructions?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* The id of the user that made this Tool.
|
|
63
|
+
*/
|
|
64
|
+
last_updated_by_id?: string | null;
|
|
65
|
+
/**
|
|
66
|
+
* Metadata associated with the source.
|
|
67
|
+
*/
|
|
68
|
+
metadata?: {
|
|
69
|
+
[key: string]: unknown;
|
|
70
|
+
} | null;
|
|
71
|
+
/**
|
|
72
|
+
* The timestamp when the source was last updated.
|
|
73
|
+
*/
|
|
74
|
+
updated_at?: string | null;
|
|
75
|
+
/**
|
|
76
|
+
* The vector database provider used for this source's passages
|
|
77
|
+
*/
|
|
78
|
+
vector_db_provider?: ArchivesAPI.VectorDBProvider;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
export interface FolderListParams {
|
|
82
|
+
/**
|
|
83
|
+
* Source ID cursor for pagination. Returns sources that come after this source ID
|
|
84
|
+
* in the specified sort order
|
|
85
|
+
*/
|
|
86
|
+
after?: string | null;
|
|
87
|
+
/**
|
|
88
|
+
* Source ID cursor for pagination. Returns sources that come before this source ID
|
|
89
|
+
* in the specified sort order
|
|
90
|
+
*/
|
|
91
|
+
before?: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* Maximum number of sources to return
|
|
94
|
+
*/
|
|
95
|
+
limit?: number | null;
|
|
96
|
+
/**
|
|
97
|
+
* Sort order for sources by creation time. 'asc' for oldest first, 'desc' for
|
|
98
|
+
* newest first
|
|
99
|
+
*/
|
|
100
|
+
order?: 'asc' | 'desc';
|
|
101
|
+
/**
|
|
102
|
+
* Field to sort by
|
|
103
|
+
*/
|
|
104
|
+
order_by?: 'created_at';
|
|
105
|
+
}
|
|
21
106
|
export interface FolderAttachParams {
|
|
107
|
+
/**
|
|
108
|
+
* The ID of the agent in the format 'agent-<uuid4>'
|
|
109
|
+
*/
|
|
22
110
|
agent_id: string;
|
|
23
111
|
}
|
|
24
112
|
export interface FolderDetachParams {
|
|
113
|
+
/**
|
|
114
|
+
* The ID of the agent in the format 'agent-<uuid4>'
|
|
115
|
+
*/
|
|
25
116
|
agent_id: string;
|
|
26
117
|
}
|
|
27
118
|
export declare namespace Folders {
|
|
28
|
-
export { type FolderListResponse as FolderListResponse, type FolderAttachParams as FolderAttachParams, type FolderDetachParams as FolderDetachParams, };
|
|
119
|
+
export { type FolderListResponse as FolderListResponse, type FolderListParams as FolderListParams, type FolderAttachParams as FolderAttachParams, type FolderDetachParams as FolderDetachParams, };
|
|
29
120
|
}
|
|
30
121
|
//# sourceMappingURL=folders.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folders.d.ts","sourceRoot":"","sources":["../../src/resources/agents/folders.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,KAAK,
|
|
1
|
+
{"version":3,"file":"folders.d.ts","sourceRoot":"","sources":["../../src/resources/agents/folders.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,SAAS;OACd,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,IAAI,CACF,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAIjC;;OAEG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC;IAKnC;;OAEG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC;CAIpC;AAED,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,CAAC;AAElF,yBAAiB,kBAAkB,CAAC;IAClC;;;;;;;;OAQG;IACH,UAAiB,sBAAsB;QACrC;;WAEG;QACH,gBAAgB,EAAE,SAAS,CAAC,eAAe,CAAC;QAE5C;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,UAA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
|
@@ -8,8 +8,8 @@ class Folders extends resource_1.APIResource {
|
|
|
8
8
|
/**
|
|
9
9
|
* Get the folders associated with an agent.
|
|
10
10
|
*/
|
|
11
|
-
list(agentID, options) {
|
|
12
|
-
return this._client.get((0, path_1.path) `/v1/agents/${agentID}/folders`, options);
|
|
11
|
+
list(agentID, query = {}, options) {
|
|
12
|
+
return this._client.get((0, path_1.path) `/v1/agents/${agentID}/folders`, { query, ...options });
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* Attach a folder to an agent.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folders.js","sourceRoot":"","sources":["../../src/resources/agents/folders.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;
|
|
1
|
+
{"version":3,"file":"folders.js","sourceRoot":"","sources":["../../src/resources/agents/folders.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAMlD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,OAAO,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,cAAc,QAAQ,mBAAmB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,cAAc,QAAQ,mBAAmB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;CACF;AAnCD,0BAmCC"}
|
|
@@ -5,8 +5,8 @@ export class Folders extends APIResource {
|
|
|
5
5
|
/**
|
|
6
6
|
* Get the folders associated with an agent.
|
|
7
7
|
*/
|
|
8
|
-
list(agentID, options) {
|
|
9
|
-
return this._client.get(path `/v1/agents/${agentID}/folders`, options);
|
|
8
|
+
list(agentID, query = {}, options) {
|
|
9
|
+
return this._client.get(path `/v1/agents/${agentID}/folders`, { query, ...options });
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Attach a folder to an agent.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folders.mjs","sourceRoot":"","sources":["../../src/resources/agents/folders.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"folders.mjs","sourceRoot":"","sources":["../../src/resources/agents/folders.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAMf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,OAAO,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,cAAc,QAAQ,mBAAmB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,cAAc,QAAQ,mBAAmB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;CACF"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as GroupsGroupsAPI from "../groups/groups.mjs";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
+
export declare class Groups extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Lists the groups for an agent.
|
|
8
|
+
*/
|
|
9
|
+
list(agentID: string, query?: GroupListParams | null | undefined, options?: RequestOptions): APIPromise<GroupListResponse>;
|
|
10
|
+
}
|
|
11
|
+
export type GroupListResponse = Array<GroupsGroupsAPI.Group>;
|
|
12
|
+
export interface GroupListParams {
|
|
13
|
+
/**
|
|
14
|
+
* Group ID cursor for pagination. Returns groups that come after this group ID in
|
|
15
|
+
* the specified sort order
|
|
16
|
+
*/
|
|
17
|
+
after?: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* Group ID cursor for pagination. Returns groups that come before this group ID in
|
|
20
|
+
* the specified sort order
|
|
21
|
+
*/
|
|
22
|
+
before?: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* Maximum number of groups to return
|
|
25
|
+
*/
|
|
26
|
+
limit?: number | null;
|
|
27
|
+
/**
|
|
28
|
+
* Manager type to filter groups by
|
|
29
|
+
*/
|
|
30
|
+
manager_type?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Sort order for groups by creation time. 'asc' for oldest first, 'desc' for
|
|
33
|
+
* newest first
|
|
34
|
+
*/
|
|
35
|
+
order?: 'asc' | 'desc';
|
|
36
|
+
/**
|
|
37
|
+
* Field to sort by
|
|
38
|
+
*/
|
|
39
|
+
order_by?: 'created_at';
|
|
40
|
+
}
|
|
41
|
+
export declare namespace Groups {
|
|
42
|
+
export { type GroupListResponse as GroupListResponse, type GroupListParams as GroupListParams };
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=groups.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"groups.d.mts","sourceRoot":"","sources":["../../src/resources/agents/groups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,IAAI,CACF,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;CAGjC;AAED,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;AAE7D,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAEvB;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACjG"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as GroupsGroupsAPI from "../groups/groups.js";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
export declare class Groups extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Lists the groups for an agent.
|
|
8
|
+
*/
|
|
9
|
+
list(agentID: string, query?: GroupListParams | null | undefined, options?: RequestOptions): APIPromise<GroupListResponse>;
|
|
10
|
+
}
|
|
11
|
+
export type GroupListResponse = Array<GroupsGroupsAPI.Group>;
|
|
12
|
+
export interface GroupListParams {
|
|
13
|
+
/**
|
|
14
|
+
* Group ID cursor for pagination. Returns groups that come after this group ID in
|
|
15
|
+
* the specified sort order
|
|
16
|
+
*/
|
|
17
|
+
after?: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* Group ID cursor for pagination. Returns groups that come before this group ID in
|
|
20
|
+
* the specified sort order
|
|
21
|
+
*/
|
|
22
|
+
before?: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* Maximum number of groups to return
|
|
25
|
+
*/
|
|
26
|
+
limit?: number | null;
|
|
27
|
+
/**
|
|
28
|
+
* Manager type to filter groups by
|
|
29
|
+
*/
|
|
30
|
+
manager_type?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Sort order for groups by creation time. 'asc' for oldest first, 'desc' for
|
|
33
|
+
* newest first
|
|
34
|
+
*/
|
|
35
|
+
order?: 'asc' | 'desc';
|
|
36
|
+
/**
|
|
37
|
+
* Field to sort by
|
|
38
|
+
*/
|
|
39
|
+
order_by?: 'created_at';
|
|
40
|
+
}
|
|
41
|
+
export declare namespace Groups {
|
|
42
|
+
export { type GroupListResponse as GroupListResponse, type GroupListParams as GroupListParams };
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=groups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../src/resources/agents/groups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,IAAI,CACF,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;CAGjC;AAED,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;AAE7D,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAEvB;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACjG"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Groups = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
class Groups extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Lists the groups for an agent.
|
|
10
|
+
*/
|
|
11
|
+
list(agentID, query = {}, options) {
|
|
12
|
+
return this._client.get((0, path_1.path) `/v1/agents/${agentID}/groups`, { query, ...options });
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Groups = Groups;
|
|
16
|
+
//# sourceMappingURL=groups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"groups.js","sourceRoot":"","sources":["../../src/resources/agents/groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,OAAO,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF;AAXD,wBAWC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
export class Groups extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Lists the groups for an agent.
|
|
7
|
+
*/
|
|
8
|
+
list(agentID, query = {}, options) {
|
|
9
|
+
return this._client.get(path `/v1/agents/${agentID}/groups`, { query, ...options });
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=groups.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../../src/resources/agents/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,OAAO,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export { Agents, type AgentEnvironmentVariable, type AgentState, type AgentType, type ChildToolRule, type ConditionalToolRule, type ContinueToolRule, type InitToolRule, type JsonObjectResponseFormat, type JsonSchemaResponseFormat, type LettaMessageContentUnion, type MaxCountPerStepToolRule, type MessageCreate, type ParentToolRule, type RequiredBeforeExitToolRule, type RequiresApprovalToolRule, type TerminalToolRule, type TextResponseFormat, type AgentListResponse, type AgentDeleteResponse, type AgentCountResponse, type
|
|
2
|
-
export {
|
|
3
|
-
export { CoreMemory, type Memory, type CoreMemoryRetrieveVariablesResponse } from "./core-memory/index.mjs";
|
|
1
|
+
export { Agents, type AgentEnvironmentVariable, type AgentState, type AgentType, type ChildToolRule, type ConditionalToolRule, type ContinueToolRule, type InitToolRule, type JsonObjectResponseFormat, type JsonSchemaResponseFormat, type LettaMessageContentUnion, type MaxCountPerStepToolRule, type MessageCreate, type ParentToolRule, type RequiredBeforeExitToolRule, type RequiresApprovalToolRule, type TerminalToolRule, type TextResponseFormat, type AgentListResponse, type AgentDeleteResponse, type AgentCountResponse, type AgentExportFileResponse, type AgentImportFileResponse, type AgentCreateParams, type AgentRetrieveParams, type AgentUpdateParams, type AgentListParams, type AgentExportFileParams, type AgentImportFileParams, } from "./agents.mjs";
|
|
2
|
+
export { Blocks, type Block, type BlockUpdate, type BlockListResponse, type BlockRetrieveParams, type BlockUpdateParams, type BlockListParams, type BlockAttachParams, type BlockDetachParams, } from "./blocks.mjs";
|
|
4
3
|
export { Files, type FileListResponse, type FileCloseResponse, type FileCloseAllResponse, type FileOpenResponse, type FileListParams, type FileCloseParams, type FileOpenParams, } from "./files.mjs";
|
|
5
|
-
export { Folders, type FolderListResponse, type FolderAttachParams, type FolderDetachParams, } from "./folders.mjs";
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export { Tools, type ToolListResponse, type ToolAttachParams, type ToolDetachParams, type
|
|
4
|
+
export { Folders, type FolderListResponse, type FolderListParams, type FolderAttachParams, type FolderDetachParams, } from "./folders.mjs";
|
|
5
|
+
export { Groups, type GroupListResponse, type GroupListParams } from "./groups.mjs";
|
|
6
|
+
export { Messages, type ApprovalCreate, type ApprovalRequestMessage, type ApprovalResponseMessage, type AssistantMessage, type HiddenReasoningMessage, type ImageContent, type JobStatus, type JobType, type LettaAssistantMessageContentUnion, type LettaMessageUnion, type LettaRequest, type LettaResponse, type LettaStreamingRequest, type LettaUserMessageContentUnion, type Message, type MessageRole, type MessageType, type OmittedReasoningContent, type ReasoningContent, type ReasoningMessage, type RedactedReasoningContent, type Run, type SystemMessage, type TextContent, type ToolCall, type ToolCallContent, type ToolCallDelta, type ToolCallMessage, type ToolReturn, type ToolReturnContent, type UpdateAssistantMessage, type UpdateReasoningMessage, type UpdateSystemMessage, type UpdateUserMessage, type UserMessage, type MessageUpdateResponse, type MessageListResponse, type MessageCancelResponse, type MessageStreamResponse, type MessageUpdateParams, type MessageListParams, type MessageCancelParams, type MessageResetParams, type MessageSendParams, type MessageSendAsyncParams, type MessageStreamParams, } from "./messages.mjs";
|
|
7
|
+
export { Tools, type ToolListResponse, type ToolListParams, type ToolAttachParams, type ToolDetachParams, type ToolUpdateApprovalParams, } from "./tools.mjs";
|
|
9
8
|
//# sourceMappingURL=index.d.mts.map
|