@cadenya/cadenya 0.135.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +86 -358
- package/api.md +781 -0
- package/dist/client.d.ts +69 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +97 -0
- package/dist/client.js.map +1 -0
- package/dist/core/error.d.ts +39 -0
- package/dist/core/error.d.ts.map +1 -0
- package/dist/core/error.js +56 -0
- package/dist/core/error.js.map +1 -0
- package/dist/core/http.d.ts +140 -0
- package/dist/core/http.d.ts.map +1 -0
- package/dist/core/http.js +525 -0
- package/dist/core/http.js.map +1 -0
- package/dist/core/pagination.d.ts +12 -0
- package/dist/core/pagination.d.ts.map +1 -0
- package/dist/core/pagination.js +29 -0
- package/dist/core/pagination.js.map +1 -0
- package/dist/core/sse.d.ts +44 -0
- package/dist/core/sse.d.ts.map +1 -0
- package/dist/core/sse.js +350 -0
- package/dist/core/sse.js.map +1 -0
- package/dist/core/webhooks.d.ts +25 -0
- package/dist/core/webhooks.d.ts.map +1 -0
- package/dist/core/webhooks.js +124 -0
- package/dist/core/webhooks.js.map +1 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -0
- package/dist/resources/accounts.d.ts +34 -0
- package/dist/resources/accounts.d.ts.map +1 -0
- package/dist/resources/accounts.js +47 -0
- package/dist/resources/accounts.js.map +1 -0
- package/dist/resources/agent-schedules.d.ts +186 -0
- package/dist/resources/agent-schedules.d.ts.map +1 -0
- package/dist/resources/agent-schedules.js +141 -0
- package/dist/resources/agent-schedules.js.map +1 -0
- package/dist/resources/agent-variations.d.ts +230 -0
- package/dist/resources/agent-variations.d.ts.map +1 -0
- package/dist/resources/agent-variations.js +174 -0
- package/dist/resources/agent-variations.js.map +1 -0
- package/dist/resources/agents.d.ts +318 -0
- package/dist/resources/agents.d.ts.map +1 -0
- package/dist/resources/agents.js +202 -0
- package/dist/resources/agents.js.map +1 -0
- package/dist/resources/ai-provider-keys.d.ts +141 -0
- package/dist/resources/ai-provider-keys.d.ts.map +1 -0
- package/dist/resources/ai-provider-keys.js +93 -0
- package/dist/resources/ai-provider-keys.js.map +1 -0
- package/dist/resources/api-keys.d.ts +222 -0
- package/dist/resources/api-keys.d.ts.map +1 -0
- package/dist/resources/api-keys.js +194 -0
- package/dist/resources/api-keys.js.map +1 -0
- package/dist/resources/memory-entries.d.ts +122 -0
- package/dist/resources/memory-entries.d.ts.map +1 -0
- package/dist/resources/memory-entries.js +93 -0
- package/dist/resources/memory-entries.js.map +1 -0
- package/dist/resources/memory-layers.d.ts +137 -0
- package/dist/resources/memory-layers.d.ts.map +1 -0
- package/dist/resources/memory-layers.js +97 -0
- package/dist/resources/memory-layers.js.map +1 -0
- package/dist/resources/models.d.ts +148 -0
- package/dist/resources/models.d.ts.map +1 -0
- package/dist/resources/models.js +93 -0
- package/dist/resources/models.js.map +1 -0
- package/dist/resources/objectives.d.ts +602 -0
- package/dist/resources/objectives.d.ts.map +1 -0
- package/dist/resources/objectives.js +356 -0
- package/dist/resources/objectives.js.map +1 -0
- package/dist/resources/profiles.d.ts +16 -0
- package/dist/resources/profiles.d.ts.map +1 -0
- package/dist/resources/profiles.js +21 -0
- package/dist/resources/profiles.js.map +1 -0
- package/dist/resources/tenants.d.ts +135 -0
- package/dist/resources/tenants.d.ts.map +1 -0
- package/dist/resources/tenants.js +80 -0
- package/dist/resources/tenants.js.map +1 -0
- package/dist/resources/tool-search.d.ts +27 -0
- package/dist/resources/tool-search.d.ts.map +1 -0
- package/dist/resources/tool-search.js +25 -0
- package/dist/resources/tool-search.js.map +1 -0
- package/dist/resources/tool-set-secrets.d.ts +128 -0
- package/dist/resources/tool-set-secrets.d.ts.map +1 -0
- package/dist/resources/tool-set-secrets.js +93 -0
- package/dist/resources/tool-set-secrets.js.map +1 -0
- package/dist/resources/tool-sets.d.ts +271 -0
- package/dist/resources/tool-sets.d.ts.map +1 -0
- package/dist/resources/tool-sets.js +185 -0
- package/dist/resources/tool-sets.js.map +1 -0
- package/dist/resources/tools.d.ts +178 -0
- package/dist/resources/tools.d.ts.map +1 -0
- package/dist/resources/tools.js +125 -0
- package/dist/resources/tools.js.map +1 -0
- package/dist/resources/uploads.d.ts +43 -0
- package/dist/resources/uploads.d.ts.map +1 -0
- package/dist/resources/uploads.js +41 -0
- package/dist/resources/uploads.js.map +1 -0
- package/dist/resources/widget-sessions.d.ts +168 -0
- package/dist/resources/widget-sessions.d.ts.map +1 -0
- package/dist/resources/widget-sessions.js +110 -0
- package/dist/resources/widget-sessions.js.map +1 -0
- package/dist/resources/widgets.d.ts +166 -0
- package/dist/resources/widgets.d.ts.map +1 -0
- package/dist/resources/widgets.js +125 -0
- package/dist/resources/widgets.js.map +1 -0
- package/dist/resources/workspace-admin.d.ts +214 -0
- package/dist/resources/workspace-admin.d.ts.map +1 -0
- package/dist/resources/workspace-admin.js +154 -0
- package/dist/resources/workspace-admin.js.map +1 -0
- package/dist/resources/workspace-secrets.d.ts +134 -0
- package/dist/resources/workspace-secrets.d.ts.map +1 -0
- package/dist/resources/workspace-secrets.js +93 -0
- package/dist/resources/workspace-secrets.js.map +1 -0
- package/dist/resources/workspaces.d.ts +44 -0
- package/dist/resources/workspaces.d.ts.map +1 -0
- package/dist/resources/workspaces.js +26 -0
- package/dist/resources/workspaces.js.map +1 -0
- package/dist/types.d.ts +4634 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +103 -0
- package/dist/types.js.map +1 -0
- package/dist/webhooks.d.ts +93 -0
- package/dist/webhooks.d.ts.map +1 -0
- package/dist/webhooks.js +21 -0
- package/dist/webhooks.js.map +1 -0
- package/package.json +24 -165
- package/src/client.ts +124 -1532
- package/src/core/error.ts +50 -109
- package/src/core/http.ts +639 -0
- package/src/core/pagination.ts +16 -150
- package/src/core/sse.ts +338 -0
- package/src/core/webhooks.ts +141 -0
- package/src/index.ts +35 -20
- package/src/resources/accounts.ts +50 -0
- package/src/resources/agent-schedules.ts +251 -0
- package/src/resources/agent-variations.ts +312 -0
- package/src/resources/agents.ts +411 -1
- package/src/resources/ai-provider-keys.ts +119 -309
- package/src/resources/api-keys.ts +219 -276
- package/src/resources/memory-entries.ts +163 -0
- package/src/resources/memory-layers.ts +181 -1
- package/src/resources/models.ts +125 -372
- package/src/resources/objectives.ts +764 -1
- package/src/resources/profiles.ts +17 -13
- package/src/resources/tenants.ts +168 -1
- package/src/resources/tool-search.ts +36 -0
- package/src/resources/tool-set-secrets.ts +169 -0
- package/src/resources/tool-sets.ts +355 -1
- package/src/resources/tools.ts +235 -0
- package/src/resources/uploads.ts +42 -127
- package/src/resources/widget-sessions.ts +148 -437
- package/src/resources/widgets.ts +155 -247
- package/src/resources/workspace-admin.ts +281 -1
- package/src/resources/workspace-secrets.ts +121 -159
- package/src/resources/workspaces.ts +32 -75
- package/src/types.ts +5188 -0
- package/src/webhooks.ts +107 -0
- package/CHANGELOG.md +0 -1542
- package/api-promise.d.mts +0 -3
- package/api-promise.d.mts.map +0 -1
- package/api-promise.d.ts +0 -3
- package/api-promise.d.ts.map +0 -1
- package/api-promise.js +0 -6
- package/api-promise.js.map +0 -1
- package/api-promise.mjs +0 -3
- package/api-promise.mjs.map +0 -1
- package/client.d.mts +0 -335
- package/client.d.mts.map +0 -1
- package/client.d.ts +0 -335
- package/client.d.ts.map +0 -1
- package/client.js +0 -630
- package/client.js.map +0 -1
- package/client.mjs +0 -626
- package/client.mjs.map +0 -1
- package/core/api-promise.d.mts +0 -46
- package/core/api-promise.d.mts.map +0 -1
- package/core/api-promise.d.ts +0 -46
- package/core/api-promise.d.ts.map +0 -1
- package/core/api-promise.js +0 -73
- package/core/api-promise.js.map +0 -1
- package/core/api-promise.mjs +0 -69
- package/core/api-promise.mjs.map +0 -1
- package/core/error.d.mts +0 -46
- package/core/error.d.mts.map +0 -1
- package/core/error.d.ts +0 -46
- package/core/error.d.ts.map +0 -1
- package/core/error.js +0 -112
- package/core/error.js.map +0 -1
- package/core/error.mjs +0 -96
- package/core/error.mjs.map +0 -1
- package/core/pagination.d.mts +0 -59
- package/core/pagination.d.mts.map +0 -1
- package/core/pagination.d.ts +0 -59
- package/core/pagination.d.ts.map +0 -1
- package/core/pagination.js +0 -100
- package/core/pagination.js.map +0 -1
- package/core/pagination.mjs +0 -94
- package/core/pagination.mjs.map +0 -1
- package/core/resource.d.mts +0 -6
- package/core/resource.d.mts.map +0 -1
- package/core/resource.d.ts +0 -6
- package/core/resource.d.ts.map +0 -1
- package/core/resource.js +0 -10
- package/core/resource.js.map +0 -1
- package/core/resource.mjs +0 -6
- package/core/resource.mjs.map +0 -1
- package/core/streaming.d.mts +0 -33
- package/core/streaming.d.mts.map +0 -1
- package/core/streaming.d.ts +0 -33
- package/core/streaming.d.ts.map +0 -1
- package/core/streaming.js +0 -268
- package/core/streaming.js.map +0 -1
- package/core/streaming.mjs +0 -263
- package/core/streaming.mjs.map +0 -1
- package/core/uploads.d.mts +0 -3
- package/core/uploads.d.mts.map +0 -1
- package/core/uploads.d.ts +0 -3
- package/core/uploads.d.ts.map +0 -1
- package/core/uploads.js +0 -6
- package/core/uploads.js.map +0 -1
- package/core/uploads.mjs +0 -2
- package/core/uploads.mjs.map +0 -1
- package/error.d.mts +0 -3
- package/error.d.mts.map +0 -1
- package/error.d.ts +0 -3
- package/error.d.ts.map +0 -1
- package/error.js +0 -6
- package/error.js.map +0 -1
- package/error.mjs +0 -3
- package/error.mjs.map +0 -1
- package/index.d.mts +0 -7
- package/index.d.mts.map +0 -1
- package/index.d.ts +0 -7
- package/index.d.ts.map +0 -1
- package/index.js +0 -31
- package/index.js.map +0 -1
- package/index.mjs +0 -7
- package/index.mjs.map +0 -1
- package/internal/builtin-types.d.mts +0 -73
- package/internal/builtin-types.d.mts.map +0 -1
- package/internal/builtin-types.d.ts +0 -73
- package/internal/builtin-types.d.ts.map +0 -1
- package/internal/builtin-types.js +0 -3
- package/internal/builtin-types.js.map +0 -1
- package/internal/builtin-types.mjs +0 -2
- package/internal/builtin-types.mjs.map +0 -1
- package/internal/decoders/line.d.mts +0 -17
- package/internal/decoders/line.d.mts.map +0 -1
- package/internal/decoders/line.d.ts +0 -17
- package/internal/decoders/line.d.ts.map +0 -1
- package/internal/decoders/line.js +0 -113
- package/internal/decoders/line.js.map +0 -1
- package/internal/decoders/line.mjs +0 -108
- package/internal/decoders/line.mjs.map +0 -1
- package/internal/detect-platform.d.mts +0 -15
- package/internal/detect-platform.d.mts.map +0 -1
- package/internal/detect-platform.d.ts +0 -15
- package/internal/detect-platform.d.ts.map +0 -1
- package/internal/detect-platform.js +0 -161
- package/internal/detect-platform.js.map +0 -1
- package/internal/detect-platform.mjs +0 -156
- package/internal/detect-platform.mjs.map +0 -1
- package/internal/errors.d.mts +0 -3
- package/internal/errors.d.mts.map +0 -1
- package/internal/errors.d.ts +0 -3
- package/internal/errors.d.ts.map +0 -1
- package/internal/errors.js +0 -40
- package/internal/errors.js.map +0 -1
- package/internal/errors.mjs +0 -35
- package/internal/errors.mjs.map +0 -1
- package/internal/headers.d.mts +0 -20
- package/internal/headers.d.mts.map +0 -1
- package/internal/headers.d.ts +0 -20
- package/internal/headers.d.ts.map +0 -1
- package/internal/headers.js +0 -78
- package/internal/headers.js.map +0 -1
- package/internal/headers.mjs +0 -73
- package/internal/headers.mjs.map +0 -1
- package/internal/parse.d.mts +0 -12
- package/internal/parse.d.mts.map +0 -1
- package/internal/parse.d.ts +0 -12
- package/internal/parse.d.ts.map +0 -1
- package/internal/parse.js +0 -49
- package/internal/parse.js.map +0 -1
- package/internal/parse.mjs +0 -46
- package/internal/parse.mjs.map +0 -1
- package/internal/qs/formats.d.mts +0 -7
- package/internal/qs/formats.d.mts.map +0 -1
- package/internal/qs/formats.d.ts +0 -7
- package/internal/qs/formats.d.ts.map +0 -1
- package/internal/qs/formats.js +0 -13
- package/internal/qs/formats.js.map +0 -1
- package/internal/qs/formats.mjs +0 -9
- package/internal/qs/formats.mjs.map +0 -1
- package/internal/qs/index.d.mts +0 -10
- package/internal/qs/index.d.mts.map +0 -1
- package/internal/qs/index.d.ts +0 -10
- package/internal/qs/index.d.ts.map +0 -1
- package/internal/qs/index.js +0 -14
- package/internal/qs/index.js.map +0 -1
- package/internal/qs/index.mjs +0 -10
- package/internal/qs/index.mjs.map +0 -1
- package/internal/qs/stringify.d.mts +0 -3
- package/internal/qs/stringify.d.mts.map +0 -1
- package/internal/qs/stringify.d.ts +0 -3
- package/internal/qs/stringify.d.ts.map +0 -1
- package/internal/qs/stringify.js +0 -277
- package/internal/qs/stringify.js.map +0 -1
- package/internal/qs/stringify.mjs +0 -274
- package/internal/qs/stringify.mjs.map +0 -1
- package/internal/qs/types.d.mts +0 -57
- package/internal/qs/types.d.mts.map +0 -1
- package/internal/qs/types.d.ts +0 -57
- package/internal/qs/types.d.ts.map +0 -1
- package/internal/qs/types.js +0 -3
- package/internal/qs/types.js.map +0 -1
- package/internal/qs/types.mjs +0 -2
- package/internal/qs/types.mjs.map +0 -1
- package/internal/qs/utils.d.mts +0 -15
- package/internal/qs/utils.d.mts.map +0 -1
- package/internal/qs/utils.d.ts +0 -15
- package/internal/qs/utils.d.ts.map +0 -1
- package/internal/qs/utils.js +0 -230
- package/internal/qs/utils.js.map +0 -1
- package/internal/qs/utils.mjs +0 -217
- package/internal/qs/utils.mjs.map +0 -1
- package/internal/request-options.d.mts +0 -77
- package/internal/request-options.d.mts.map +0 -1
- package/internal/request-options.d.ts +0 -77
- package/internal/request-options.d.ts.map +0 -1
- package/internal/request-options.js +0 -13
- package/internal/request-options.js.map +0 -1
- package/internal/request-options.mjs +0 -9
- package/internal/request-options.mjs.map +0 -1
- package/internal/shim-types.d.mts +0 -17
- package/internal/shim-types.d.mts.map +0 -1
- package/internal/shim-types.d.ts +0 -17
- package/internal/shim-types.d.ts.map +0 -1
- package/internal/shim-types.js +0 -9
- package/internal/shim-types.js.map +0 -1
- package/internal/shim-types.mjs +0 -8
- package/internal/shim-types.mjs.map +0 -1
- package/internal/shims.d.mts +0 -26
- package/internal/shims.d.mts.map +0 -1
- package/internal/shims.d.ts +0 -26
- package/internal/shims.d.ts.map +0 -1
- package/internal/shims.js +0 -97
- package/internal/shims.js.map +0 -1
- package/internal/shims.mjs +0 -90
- package/internal/shims.mjs.map +0 -1
- package/internal/to-file.d.mts +0 -45
- package/internal/to-file.d.mts.map +0 -1
- package/internal/to-file.d.ts +0 -45
- package/internal/to-file.d.ts.map +0 -1
- package/internal/to-file.js +0 -91
- package/internal/to-file.js.map +0 -1
- package/internal/to-file.mjs +0 -88
- package/internal/to-file.mjs.map +0 -1
- package/internal/tslib.js +0 -81
- package/internal/tslib.mjs +0 -17
- package/internal/types.d.mts +0 -69
- package/internal/types.d.mts.map +0 -1
- package/internal/types.d.ts +0 -69
- package/internal/types.d.ts.map +0 -1
- package/internal/types.js +0 -3
- package/internal/types.js.map +0 -1
- package/internal/types.mjs +0 -2
- package/internal/types.mjs.map +0 -1
- package/internal/uploads.d.mts +0 -42
- package/internal/uploads.d.mts.map +0 -1
- package/internal/uploads.d.ts +0 -42
- package/internal/uploads.d.ts.map +0 -1
- package/internal/uploads.js +0 -141
- package/internal/uploads.js.map +0 -1
- package/internal/uploads.mjs +0 -131
- package/internal/uploads.mjs.map +0 -1
- package/internal/utils/base64.d.mts +0 -3
- package/internal/utils/base64.d.mts.map +0 -1
- package/internal/utils/base64.d.ts +0 -3
- package/internal/utils/base64.d.ts.map +0 -1
- package/internal/utils/base64.js +0 -37
- package/internal/utils/base64.js.map +0 -1
- package/internal/utils/base64.mjs +0 -32
- package/internal/utils/base64.mjs.map +0 -1
- package/internal/utils/bytes.d.mts +0 -4
- package/internal/utils/bytes.d.mts.map +0 -1
- package/internal/utils/bytes.d.ts +0 -4
- package/internal/utils/bytes.d.ts.map +0 -1
- package/internal/utils/bytes.js +0 -31
- package/internal/utils/bytes.js.map +0 -1
- package/internal/utils/bytes.mjs +0 -26
- package/internal/utils/bytes.mjs.map +0 -1
- package/internal/utils/env.d.mts +0 -9
- package/internal/utils/env.d.mts.map +0 -1
- package/internal/utils/env.d.ts +0 -9
- package/internal/utils/env.d.ts.map +0 -1
- package/internal/utils/env.js +0 -21
- package/internal/utils/env.js.map +0 -1
- package/internal/utils/env.mjs +0 -17
- package/internal/utils/env.mjs.map +0 -1
- package/internal/utils/log.d.mts +0 -37
- package/internal/utils/log.d.mts.map +0 -1
- package/internal/utils/log.d.ts +0 -37
- package/internal/utils/log.d.ts.map +0 -1
- package/internal/utils/log.js +0 -86
- package/internal/utils/log.js.map +0 -1
- package/internal/utils/log.mjs +0 -80
- package/internal/utils/log.mjs.map +0 -1
- package/internal/utils/path.d.mts +0 -15
- package/internal/utils/path.d.mts.map +0 -1
- package/internal/utils/path.d.ts +0 -15
- package/internal/utils/path.d.ts.map +0 -1
- package/internal/utils/path.js +0 -79
- package/internal/utils/path.js.map +0 -1
- package/internal/utils/path.mjs +0 -74
- package/internal/utils/path.mjs.map +0 -1
- package/internal/utils/query.d.mts +0 -2
- package/internal/utils/query.d.mts.map +0 -1
- package/internal/utils/query.d.ts +0 -2
- package/internal/utils/query.d.ts.map +0 -1
- package/internal/utils/query.js +0 -9
- package/internal/utils/query.js.map +0 -1
- package/internal/utils/query.mjs +0 -5
- package/internal/utils/query.mjs.map +0 -1
- package/internal/utils/sleep.d.mts +0 -2
- package/internal/utils/sleep.d.mts.map +0 -1
- package/internal/utils/sleep.d.ts +0 -2
- package/internal/utils/sleep.d.ts.map +0 -1
- package/internal/utils/sleep.js +0 -6
- package/internal/utils/sleep.js.map +0 -1
- package/internal/utils/sleep.mjs +0 -2
- package/internal/utils/sleep.mjs.map +0 -1
- package/internal/utils/uuid.d.mts +0 -5
- package/internal/utils/uuid.d.mts.map +0 -1
- package/internal/utils/uuid.d.ts +0 -5
- package/internal/utils/uuid.d.ts.map +0 -1
- package/internal/utils/uuid.js +0 -18
- package/internal/utils/uuid.js.map +0 -1
- package/internal/utils/uuid.mjs +0 -14
- package/internal/utils/uuid.mjs.map +0 -1
- package/internal/utils/values.d.mts +0 -18
- package/internal/utils/values.d.mts.map +0 -1
- package/internal/utils/values.d.ts +0 -18
- package/internal/utils/values.d.ts.map +0 -1
- package/internal/utils/values.js +0 -111
- package/internal/utils/values.js.map +0 -1
- package/internal/utils/values.mjs +0 -93
- package/internal/utils/values.mjs.map +0 -1
- package/internal/utils.d.mts +0 -8
- package/internal/utils.d.mts.map +0 -1
- package/internal/utils.d.ts +0 -8
- package/internal/utils.d.ts.map +0 -1
- package/internal/utils.js +0 -11
- package/internal/utils.js.map +0 -1
- package/internal/utils.mjs +0 -8
- package/internal/utils.mjs.map +0 -1
- package/pagination.d.mts +0 -3
- package/pagination.d.mts.map +0 -1
- package/pagination.d.ts +0 -3
- package/pagination.d.ts.map +0 -1
- package/pagination.js +0 -6
- package/pagination.js.map +0 -1
- package/pagination.mjs +0 -3
- package/pagination.mjs.map +0 -1
- package/resource.d.mts +0 -3
- package/resource.d.mts.map +0 -1
- package/resource.d.ts +0 -3
- package/resource.d.ts.map +0 -1
- package/resource.js +0 -6
- package/resource.js.map +0 -1
- package/resource.mjs +0 -3
- package/resource.mjs.map +0 -1
- package/resources/account.d.mts +0 -124
- package/resources/account.d.mts.map +0 -1
- package/resources/account.d.ts +0 -124
- package/resources/account.d.ts.map +0 -1
- package/resources/account.js +0 -32
- package/resources/account.js.map +0 -1
- package/resources/account.mjs +0 -28
- package/resources/account.mjs.map +0 -1
- package/resources/agents/agents.d.mts +0 -379
- package/resources/agents/agents.d.mts.map +0 -1
- package/resources/agents/agents.d.ts +0 -379
- package/resources/agents/agents.d.ts.map +0 -1
- package/resources/agents/agents.js +0 -191
- package/resources/agents/agents.js.map +0 -1
- package/resources/agents/agents.mjs +0 -186
- package/resources/agents/agents.mjs.map +0 -1
- package/resources/agents/feedback.d.mts +0 -71
- package/resources/agents/feedback.d.mts.map +0 -1
- package/resources/agents/feedback.d.ts +0 -71
- package/resources/agents/feedback.d.ts.map +0 -1
- package/resources/agents/feedback.js +0 -33
- package/resources/agents/feedback.js.map +0 -1
- package/resources/agents/feedback.mjs +0 -29
- package/resources/agents/feedback.mjs.map +0 -1
- package/resources/agents/index.d.mts +0 -6
- package/resources/agents/index.d.mts.map +0 -1
- package/resources/agents/index.d.ts +0 -6
- package/resources/agents/index.d.ts.map +0 -1
- package/resources/agents/index.js +0 -14
- package/resources/agents/index.js.map +0 -1
- package/resources/agents/index.mjs +0 -6
- package/resources/agents/index.mjs.map +0 -1
- package/resources/agents/schedules.d.mts +0 -383
- package/resources/agents/schedules.d.mts.map +0 -1
- package/resources/agents/schedules.d.ts +0 -383
- package/resources/agents/schedules.d.ts.map +0 -1
- package/resources/agents/schedules.js +0 -171
- package/resources/agents/schedules.js.map +0 -1
- package/resources/agents/schedules.mjs +0 -167
- package/resources/agents/schedules.mjs.map +0 -1
- package/resources/agents/variations.d.mts +0 -723
- package/resources/agents/variations.d.mts.map +0 -1
- package/resources/agents/variations.d.ts +0 -723
- package/resources/agents/variations.d.ts.map +0 -1
- package/resources/agents/variations.js +0 -208
- package/resources/agents/variations.js.map +0 -1
- package/resources/agents/variations.mjs +0 -204
- package/resources/agents/variations.mjs.map +0 -1
- package/resources/agents/webhook-deliveries.d.mts +0 -96
- package/resources/agents/webhook-deliveries.d.mts.map +0 -1
- package/resources/agents/webhook-deliveries.d.ts +0 -96
- package/resources/agents/webhook-deliveries.d.ts.map +0 -1
- package/resources/agents/webhook-deliveries.js +0 -31
- package/resources/agents/webhook-deliveries.js.map +0 -1
- package/resources/agents/webhook-deliveries.mjs +0 -27
- package/resources/agents/webhook-deliveries.mjs.map +0 -1
- package/resources/agents.d.mts +0 -2
- package/resources/agents.d.mts.map +0 -1
- package/resources/agents.d.ts +0 -2
- package/resources/agents.d.ts.map +0 -1
- package/resources/agents.js +0 -5
- package/resources/agents.js.map +0 -1
- package/resources/agents.mjs +0 -2
- package/resources/agents.mjs.map +0 -1
- package/resources/ai-provider-keys.d.mts +0 -269
- package/resources/ai-provider-keys.d.mts.map +0 -1
- package/resources/ai-provider-keys.d.ts +0 -269
- package/resources/ai-provider-keys.d.ts.map +0 -1
- package/resources/ai-provider-keys.js +0 -52
- package/resources/ai-provider-keys.js.map +0 -1
- package/resources/ai-provider-keys.mjs +0 -48
- package/resources/ai-provider-keys.mjs.map +0 -1
- package/resources/api-keys.d.mts +0 -268
- package/resources/api-keys.d.mts.map +0 -1
- package/resources/api-keys.d.ts +0 -268
- package/resources/api-keys.d.ts.map +0 -1
- package/resources/api-keys.js +0 -83
- package/resources/api-keys.js.map +0 -1
- package/resources/api-keys.mjs +0 -79
- package/resources/api-keys.mjs.map +0 -1
- package/resources/global-api-key.d.mts +0 -33
- package/resources/global-api-key.d.mts.map +0 -1
- package/resources/global-api-key.d.ts +0 -33
- package/resources/global-api-key.d.ts.map +0 -1
- package/resources/global-api-key.js +0 -42
- package/resources/global-api-key.js.map +0 -1
- package/resources/global-api-key.mjs +0 -38
- package/resources/global-api-key.mjs.map +0 -1
- package/resources/index.d.mts +0 -21
- package/resources/index.d.mts.map +0 -1
- package/resources/index.d.ts +0 -21
- package/resources/index.d.ts.map +0 -1
- package/resources/index.js +0 -44
- package/resources/index.js.map +0 -1
- package/resources/index.mjs +0 -21
- package/resources/index.mjs.map +0 -1
- package/resources/memory-layers/entries.d.mts +0 -257
- package/resources/memory-layers/entries.d.mts.map +0 -1
- package/resources/memory-layers/entries.d.ts +0 -257
- package/resources/memory-layers/entries.d.ts.map +0 -1
- package/resources/memory-layers/entries.js +0 -58
- package/resources/memory-layers/entries.js.map +0 -1
- package/resources/memory-layers/entries.mjs +0 -54
- package/resources/memory-layers/entries.mjs.map +0 -1
- package/resources/memory-layers/index.d.mts +0 -3
- package/resources/memory-layers/index.d.mts.map +0 -1
- package/resources/memory-layers/index.d.ts +0 -3
- package/resources/memory-layers/index.d.ts.map +0 -1
- package/resources/memory-layers/index.js +0 -8
- package/resources/memory-layers/index.js.map +0 -1
- package/resources/memory-layers/index.mjs +0 -3
- package/resources/memory-layers/index.mjs.map +0 -1
- package/resources/memory-layers/memory-layers.d.mts +0 -196
- package/resources/memory-layers/memory-layers.d.mts.map +0 -1
- package/resources/memory-layers/memory-layers.d.ts +0 -196
- package/resources/memory-layers/memory-layers.d.ts.map +0 -1
- package/resources/memory-layers/memory-layers.js +0 -63
- package/resources/memory-layers/memory-layers.js.map +0 -1
- package/resources/memory-layers/memory-layers.mjs +0 -58
- package/resources/memory-layers/memory-layers.mjs.map +0 -1
- package/resources/memory-layers.d.mts +0 -2
- package/resources/memory-layers.d.mts.map +0 -1
- package/resources/memory-layers.d.ts +0 -2
- package/resources/memory-layers.d.ts.map +0 -1
- package/resources/memory-layers.js +0 -5
- package/resources/memory-layers.js.map +0 -1
- package/resources/memory-layers.mjs +0 -2
- package/resources/memory-layers.mjs.map +0 -1
- package/resources/models.d.mts +0 -315
- package/resources/models.d.mts.map +0 -1
- package/resources/models.d.ts +0 -315
- package/resources/models.d.ts.map +0 -1
- package/resources/models.js +0 -59
- package/resources/models.js.map +0 -1
- package/resources/models.mjs +0 -55
- package/resources/models.mjs.map +0 -1
- package/resources/objectives/feedback.d.mts +0 -126
- package/resources/objectives/feedback.d.mts.map +0 -1
- package/resources/objectives/feedback.d.ts +0 -126
- package/resources/objectives/feedback.d.ts.map +0 -1
- package/resources/objectives/feedback.js +0 -52
- package/resources/objectives/feedback.js.map +0 -1
- package/resources/objectives/feedback.mjs +0 -48
- package/resources/objectives/feedback.mjs.map +0 -1
- package/resources/objectives/index.d.mts +0 -6
- package/resources/objectives/index.d.mts.map +0 -1
- package/resources/objectives/index.d.ts +0 -6
- package/resources/objectives/index.d.ts.map +0 -1
- package/resources/objectives/index.js +0 -14
- package/resources/objectives/index.js.map +0 -1
- package/resources/objectives/index.mjs +0 -6
- package/resources/objectives/index.mjs.map +0 -1
- package/resources/objectives/objectives.d.mts +0 -1280
- package/resources/objectives/objectives.d.mts.map +0 -1
- package/resources/objectives/objectives.d.ts +0 -1280
- package/resources/objectives/objectives.d.ts.map +0 -1
- package/resources/objectives/objectives.js +0 -213
- package/resources/objectives/objectives.js.map +0 -1
- package/resources/objectives/objectives.mjs +0 -208
- package/resources/objectives/objectives.mjs.map +0 -1
- package/resources/objectives/tasks.d.mts +0 -88
- package/resources/objectives/tasks.d.mts.map +0 -1
- package/resources/objectives/tasks.d.ts +0 -88
- package/resources/objectives/tasks.d.ts.map +0 -1
- package/resources/objectives/tasks.js +0 -45
- package/resources/objectives/tasks.js.map +0 -1
- package/resources/objectives/tasks.mjs +0 -41
- package/resources/objectives/tasks.mjs.map +0 -1
- package/resources/objectives/tool-calls.d.mts +0 -379
- package/resources/objectives/tool-calls.d.mts.map +0 -1
- package/resources/objectives/tool-calls.d.ts +0 -379
- package/resources/objectives/tool-calls.d.ts.map +0 -1
- package/resources/objectives/tool-calls.js +0 -110
- package/resources/objectives/tool-calls.js.map +0 -1
- package/resources/objectives/tool-calls.mjs +0 -106
- package/resources/objectives/tool-calls.mjs.map +0 -1
- package/resources/objectives/tools.d.mts +0 -53
- package/resources/objectives/tools.d.mts.map +0 -1
- package/resources/objectives/tools.d.ts +0 -53
- package/resources/objectives/tools.d.ts.map +0 -1
- package/resources/objectives/tools.js +0 -28
- package/resources/objectives/tools.js.map +0 -1
- package/resources/objectives/tools.mjs +0 -24
- package/resources/objectives/tools.mjs.map +0 -1
- package/resources/objectives.d.mts +0 -2
- package/resources/objectives.d.mts.map +0 -1
- package/resources/objectives.d.ts +0 -2
- package/resources/objectives.d.ts.map +0 -1
- package/resources/objectives.js +0 -5
- package/resources/objectives.js.map +0 -1
- package/resources/objectives.mjs +0 -2
- package/resources/objectives.mjs.map +0 -1
- package/resources/profiles.d.mts +0 -16
- package/resources/profiles.d.mts.map +0 -1
- package/resources/profiles.d.ts +0 -16
- package/resources/profiles.d.ts.map +0 -1
- package/resources/profiles.js +0 -19
- package/resources/profiles.js.map +0 -1
- package/resources/profiles.mjs +0 -15
- package/resources/profiles.mjs.map +0 -1
- package/resources/search.d.mts +0 -33
- package/resources/search.d.mts.map +0 -1
- package/resources/search.d.ts +0 -33
- package/resources/search.d.ts.map +0 -1
- package/resources/search.js +0 -19
- package/resources/search.js.map +0 -1
- package/resources/search.mjs +0 -15
- package/resources/search.mjs.map +0 -1
- package/resources/shared.d.mts +0 -215
- package/resources/shared.d.mts.map +0 -1
- package/resources/shared.d.ts +0 -215
- package/resources/shared.d.ts.map +0 -1
- package/resources/shared.js +0 -3
- package/resources/shared.js.map +0 -1
- package/resources/shared.mjs +0 -2
- package/resources/shared.mjs.map +0 -1
- package/resources/tenants/index.d.mts +0 -3
- package/resources/tenants/index.d.mts.map +0 -1
- package/resources/tenants/index.d.ts +0 -3
- package/resources/tenants/index.d.ts.map +0 -1
- package/resources/tenants/index.js +0 -8
- package/resources/tenants/index.js.map +0 -1
- package/resources/tenants/index.mjs +0 -3
- package/resources/tenants/index.mjs.map +0 -1
- package/resources/tenants/subjects.d.mts +0 -43
- package/resources/tenants/subjects.d.mts.map +0 -1
- package/resources/tenants/subjects.d.ts +0 -43
- package/resources/tenants/subjects.d.ts.map +0 -1
- package/resources/tenants/subjects.js +0 -26
- package/resources/tenants/subjects.js.map +0 -1
- package/resources/tenants/subjects.mjs +0 -22
- package/resources/tenants/subjects.mjs.map +0 -1
- package/resources/tenants/tenants.d.mts +0 -158
- package/resources/tenants/tenants.d.mts.map +0 -1
- package/resources/tenants/tenants.d.ts +0 -158
- package/resources/tenants/tenants.d.ts.map +0 -1
- package/resources/tenants/tenants.js +0 -57
- package/resources/tenants/tenants.js.map +0 -1
- package/resources/tenants/tenants.mjs +0 -52
- package/resources/tenants/tenants.mjs.map +0 -1
- package/resources/tenants.d.mts +0 -2
- package/resources/tenants.d.mts.map +0 -1
- package/resources/tenants.d.ts +0 -2
- package/resources/tenants.d.ts.map +0 -1
- package/resources/tenants.js +0 -5
- package/resources/tenants.js.map +0 -1
- package/resources/tenants.mjs +0 -2
- package/resources/tenants.mjs.map +0 -1
- package/resources/tool-sets/index.d.mts +0 -4
- package/resources/tool-sets/index.d.mts.map +0 -1
- package/resources/tool-sets/index.d.ts +0 -4
- package/resources/tool-sets/index.d.ts.map +0 -1
- package/resources/tool-sets/index.js +0 -10
- package/resources/tool-sets/index.js.map +0 -1
- package/resources/tool-sets/index.mjs +0 -4
- package/resources/tool-sets/index.mjs.map +0 -1
- package/resources/tool-sets/secrets.d.mts +0 -135
- package/resources/tool-sets/secrets.d.mts.map +0 -1
- package/resources/tool-sets/secrets.d.ts +0 -135
- package/resources/tool-sets/secrets.d.ts.map +0 -1
- package/resources/tool-sets/secrets.js +0 -62
- package/resources/tool-sets/secrets.js.map +0 -1
- package/resources/tool-sets/secrets.mjs +0 -58
- package/resources/tool-sets/secrets.mjs.map +0 -1
- package/resources/tool-sets/tool-sets.d.mts +0 -595
- package/resources/tool-sets/tool-sets.d.mts.map +0 -1
- package/resources/tool-sets/tool-sets.d.ts +0 -595
- package/resources/tool-sets/tool-sets.d.ts.map +0 -1
- package/resources/tool-sets/tool-sets.js +0 -122
- package/resources/tool-sets/tool-sets.js.map +0 -1
- package/resources/tool-sets/tool-sets.mjs +0 -117
- package/resources/tool-sets/tool-sets.mjs.map +0 -1
- package/resources/tool-sets/tools.d.mts +0 -305
- package/resources/tool-sets/tools.d.mts.map +0 -1
- package/resources/tool-sets/tools.d.ts +0 -305
- package/resources/tool-sets/tools.d.ts.map +0 -1
- package/resources/tool-sets/tools.js +0 -84
- package/resources/tool-sets/tools.js.map +0 -1
- package/resources/tool-sets/tools.mjs +0 -80
- package/resources/tool-sets/tools.mjs.map +0 -1
- package/resources/tool-sets.d.mts +0 -2
- package/resources/tool-sets.d.mts.map +0 -1
- package/resources/tool-sets.d.ts +0 -2
- package/resources/tool-sets.d.ts.map +0 -1
- package/resources/tool-sets.js +0 -5
- package/resources/tool-sets.js.map +0 -1
- package/resources/tool-sets.mjs +0 -2
- package/resources/tool-sets.mjs.map +0 -1
- package/resources/uploads.d.mts +0 -107
- package/resources/uploads.d.mts.map +0 -1
- package/resources/uploads.d.ts +0 -107
- package/resources/uploads.d.ts.map +0 -1
- package/resources/uploads.js +0 -30
- package/resources/uploads.js.map +0 -1
- package/resources/uploads.mjs +0 -26
- package/resources/uploads.mjs.map +0 -1
- package/resources/webhooks.d.mts +0 -92
- package/resources/webhooks.d.mts.map +0 -1
- package/resources/webhooks.d.ts +0 -92
- package/resources/webhooks.d.ts.map +0 -1
- package/resources/webhooks.js +0 -22
- package/resources/webhooks.js.map +0 -1
- package/resources/webhooks.mjs +0 -18
- package/resources/webhooks.mjs.map +0 -1
- package/resources/widget-sessions.d.mts +0 -388
- package/resources/widget-sessions.d.mts.map +0 -1
- package/resources/widget-sessions.d.ts +0 -388
- package/resources/widget-sessions.d.ts.map +0 -1
- package/resources/widget-sessions.js +0 -78
- package/resources/widget-sessions.js.map +0 -1
- package/resources/widget-sessions.mjs +0 -74
- package/resources/widget-sessions.mjs.map +0 -1
- package/resources/widgets.d.mts +0 -225
- package/resources/widgets.d.mts.map +0 -1
- package/resources/widgets.d.ts +0 -225
- package/resources/widgets.d.ts.map +0 -1
- package/resources/widgets.js +0 -82
- package/resources/widgets.js.map +0 -1
- package/resources/widgets.mjs +0 -78
- package/resources/widgets.mjs.map +0 -1
- package/resources/workspace-admin/index.d.mts +0 -4
- package/resources/workspace-admin/index.d.mts.map +0 -1
- package/resources/workspace-admin/index.d.ts +0 -4
- package/resources/workspace-admin/index.d.ts.map +0 -1
- package/resources/workspace-admin/index.js +0 -10
- package/resources/workspace-admin/index.js.map +0 -1
- package/resources/workspace-admin/index.mjs +0 -4
- package/resources/workspace-admin/index.mjs.map +0 -1
- package/resources/workspace-admin/members.d.mts +0 -90
- package/resources/workspace-admin/members.d.mts.map +0 -1
- package/resources/workspace-admin/members.d.ts +0 -90
- package/resources/workspace-admin/members.d.ts.map +0 -1
- package/resources/workspace-admin/members.js +0 -73
- package/resources/workspace-admin/members.js.map +0 -1
- package/resources/workspace-admin/members.mjs +0 -69
- package/resources/workspace-admin/members.mjs.map +0 -1
- package/resources/workspace-admin/profiles.d.mts +0 -46
- package/resources/workspace-admin/profiles.d.mts.map +0 -1
- package/resources/workspace-admin/profiles.d.ts +0 -46
- package/resources/workspace-admin/profiles.d.ts.map +0 -1
- package/resources/workspace-admin/profiles.js +0 -35
- package/resources/workspace-admin/profiles.js.map +0 -1
- package/resources/workspace-admin/profiles.mjs +0 -31
- package/resources/workspace-admin/profiles.mjs.map +0 -1
- package/resources/workspace-admin/workspace-admin.d.mts +0 -227
- package/resources/workspace-admin/workspace-admin.d.mts.map +0 -1
- package/resources/workspace-admin/workspace-admin.d.ts +0 -227
- package/resources/workspace-admin/workspace-admin.d.ts.map +0 -1
- package/resources/workspace-admin/workspace-admin.js +0 -111
- package/resources/workspace-admin/workspace-admin.js.map +0 -1
- package/resources/workspace-admin/workspace-admin.mjs +0 -106
- package/resources/workspace-admin/workspace-admin.mjs.map +0 -1
- package/resources/workspace-admin.d.mts +0 -2
- package/resources/workspace-admin.d.mts.map +0 -1
- package/resources/workspace-admin.d.ts +0 -2
- package/resources/workspace-admin.d.ts.map +0 -1
- package/resources/workspace-admin.js +0 -5
- package/resources/workspace-admin.js.map +0 -1
- package/resources/workspace-admin.mjs +0 -2
- package/resources/workspace-admin.mjs.map +0 -1
- package/resources/workspace-secrets.d.mts +0 -134
- package/resources/workspace-secrets.d.mts.map +0 -1
- package/resources/workspace-secrets.d.ts +0 -134
- package/resources/workspace-secrets.d.ts.map +0 -1
- package/resources/workspace-secrets.js +0 -52
- package/resources/workspace-secrets.js.map +0 -1
- package/resources/workspace-secrets.mjs +0 -48
- package/resources/workspace-secrets.mjs.map +0 -1
- package/resources/workspaces.d.mts +0 -70
- package/resources/workspaces.d.mts.map +0 -1
- package/resources/workspaces.d.ts +0 -70
- package/resources/workspaces.d.ts.map +0 -1
- package/resources/workspaces.js +0 -23
- package/resources/workspaces.js.map +0 -1
- package/resources/workspaces.mjs +0 -19
- package/resources/workspaces.mjs.map +0 -1
- package/resources.d.mts +0 -2
- package/resources.d.mts.map +0 -1
- package/resources.d.ts +0 -2
- package/resources.d.ts.map +0 -1
- package/resources.js +0 -5
- package/resources.js.map +0 -1
- package/resources.mjs +0 -2
- package/resources.mjs.map +0 -1
- package/src/api-promise.ts +0 -2
- package/src/core/README.md +0 -3
- package/src/core/api-promise.ts +0 -90
- package/src/core/resource.ts +0 -9
- package/src/core/streaming.ts +0 -319
- package/src/core/uploads.ts +0 -2
- package/src/error.ts +0 -2
- package/src/internal/README.md +0 -3
- package/src/internal/builtin-types.ts +0 -91
- package/src/internal/decoders/line.ts +0 -135
- package/src/internal/detect-platform.ts +0 -194
- package/src/internal/errors.ts +0 -31
- package/src/internal/headers.ts +0 -95
- package/src/internal/parse.ts +0 -68
- package/src/internal/qs/LICENSE.md +0 -13
- package/src/internal/qs/README.md +0 -3
- package/src/internal/qs/formats.ts +0 -10
- package/src/internal/qs/index.ts +0 -13
- package/src/internal/qs/stringify.ts +0 -385
- package/src/internal/qs/types.ts +0 -71
- package/src/internal/qs/utils.ts +0 -265
- package/src/internal/request-options.ts +0 -91
- package/src/internal/shim-types.ts +0 -24
- package/src/internal/shims.ts +0 -105
- package/src/internal/to-file.ts +0 -154
- package/src/internal/types.ts +0 -91
- package/src/internal/uploads.ts +0 -187
- package/src/internal/utils/base64.ts +0 -38
- package/src/internal/utils/bytes.ts +0 -32
- package/src/internal/utils/env.ts +0 -16
- package/src/internal/utils/log.ts +0 -126
- package/src/internal/utils/path.ts +0 -88
- package/src/internal/utils/query.ts +0 -5
- package/src/internal/utils/sleep.ts +0 -1
- package/src/internal/utils/uuid.ts +0 -15
- package/src/internal/utils/values.ts +0 -103
- package/src/internal/utils.ts +0 -7
- package/src/lib/.keep +0 -3
- package/src/pagination.ts +0 -2
- package/src/resource.ts +0 -2
- package/src/resources/account.ts +0 -158
- package/src/resources/agents/agents.ts +0 -616
- package/src/resources/agents/feedback.ts +0 -96
- package/src/resources/agents/index.ts +0 -75
- package/src/resources/agents/schedules.ts +0 -541
- package/src/resources/agents/variations.ts +0 -981
- package/src/resources/agents/webhook-deliveries.ts +0 -176
- package/src/resources/global-api-key.ts +0 -44
- package/src/resources/index.ts +0 -307
- package/src/resources/memory-layers/entries.ts +0 -373
- package/src/resources/memory-layers/index.ts +0 -29
- package/src/resources/memory-layers/memory-layers.ts +0 -314
- package/src/resources/objectives/feedback.ts +0 -171
- package/src/resources/objectives/index.ts +0 -115
- package/src/resources/objectives/objectives.ts +0 -1787
- package/src/resources/objectives/tasks.ts +0 -129
- package/src/resources/objectives/tool-calls.ts +0 -572
- package/src/resources/objectives/tools.ts +0 -74
- package/src/resources/search.ts +0 -52
- package/src/resources/shared.ts +0 -234
- package/src/resources/tenants/index.ts +0 -13
- package/src/resources/tenants/subjects.ts +0 -61
- package/src/resources/tenants/tenants.ts +0 -218
- package/src/resources/tool-sets/index.ts +0 -87
- package/src/resources/tool-sets/secrets.ts +0 -223
- package/src/resources/tool-sets/tool-sets.ts +0 -934
- package/src/resources/tool-sets/tools.ts +0 -456
- package/src/resources/webhooks.ts +0 -122
- package/src/resources/workspace-admin/index.ts +0 -12
- package/src/resources/workspace-admin/members.ts +0 -131
- package/src/resources/workspace-admin/profiles.ts +0 -58
- package/src/resources/workspace-admin/workspace-admin.ts +0 -302
- package/src/resources.ts +0 -1
- package/src/streaming.ts +0 -2
- package/src/tsconfig.json +0 -11
- package/src/uploads.ts +0 -2
- package/src/version.ts +0 -1
- package/streaming.d.mts +0 -3
- package/streaming.d.mts.map +0 -1
- package/streaming.d.ts +0 -3
- package/streaming.d.ts.map +0 -1
- package/streaming.js +0 -6
- package/streaming.js.map +0 -1
- package/streaming.mjs +0 -3
- package/streaming.mjs.map +0 -1
- package/uploads.d.mts +0 -3
- package/uploads.d.mts.map +0 -1
- package/uploads.d.ts +0 -3
- package/uploads.d.ts.map +0 -1
- package/uploads.js +0 -6
- package/uploads.js.map +0 -1
- package/uploads.mjs +0 -3
- package/uploads.mjs.map +0 -1
- package/version.d.mts +0 -2
- package/version.d.mts.map +0 -1
- package/version.d.ts +0 -2
- package/version.d.ts.map +0 -1
- package/version.js +0 -5
- package/version.js.map +0 -1
- package/version.mjs +0 -2
- package/version.mjs.map +0 -1
|
@@ -1,1280 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as ObjectivesAPI from "./objectives.mjs";
|
|
3
|
-
import * as AccountAPI from "../account.mjs";
|
|
4
|
-
import * as Shared from "../shared.mjs";
|
|
5
|
-
import * as WidgetSessionsAPI from "../widget-sessions.mjs";
|
|
6
|
-
import * as AgentsAPI from "../agents/agents.mjs";
|
|
7
|
-
import * as SchedulesAPI from "../agents/schedules.mjs";
|
|
8
|
-
import * as VariationsAPI from "../agents/variations.mjs";
|
|
9
|
-
import * as FeedbackAPI from "./feedback.mjs";
|
|
10
|
-
import { Feedback, FeedbackCreateParams, FeedbackListParams, ObjectiveFeedback, ObjectiveFeedbackData, ObjectiveFeedbackInfo, ObjectiveFeedbacksCursorPagination } from "./feedback.mjs";
|
|
11
|
-
import * as TasksAPI from "./tasks.mjs";
|
|
12
|
-
import { ObjectiveTask, ObjectiveTaskData, ObjectiveTasksCursorPagination, TaskListParams, TaskRetrieveParams, Tasks } from "./tasks.mjs";
|
|
13
|
-
import * as ToolCallsAPI from "./tool-calls.mjs";
|
|
14
|
-
import { ObjectiveToolCall, ObjectiveToolCallData, ObjectiveToolCallInfo, ObjectiveToolCallResult, ObjectiveToolCallResultAudioBlock, ObjectiveToolCallResultContentBlock, ObjectiveToolCallResultContentBlockAudio, ObjectiveToolCallResultContentBlockImage, ObjectiveToolCallResultContentBlockText, ObjectiveToolCallResultImageBlock, ObjectiveToolCallResultTextBlock, ObjectiveToolCallWithResult, ObjectiveToolCallsCursorPagination, ResolvedSecret, SetToolCallContentRequestAudioBlock, SetToolCallContentRequestContentBlock, SetToolCallContentRequestContentBlockAudio, SetToolCallContentRequestContentBlockImage, SetToolCallContentRequestContentBlockText, SetToolCallContentRequestImageBlock, SetToolCallContentRequestTextBlock, ToolCallApproveParams, ToolCallDenyParams, ToolCallListParams, ToolCallRetrieveParams, ToolCallSetContentParams, ToolCalls } from "./tool-calls.mjs";
|
|
15
|
-
import * as ToolsAPI from "./tools.mjs";
|
|
16
|
-
import { ObjectiveTool, ObjectiveToolsCursorPagination, ToolListParams, Tools } from "./tools.mjs";
|
|
17
|
-
import * as ToolSetsToolsAPI from "../tool-sets/tools.mjs";
|
|
18
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
19
|
-
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../../core/pagination.mjs";
|
|
20
|
-
import { Stream } from "../../core/streaming.mjs";
|
|
21
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
22
|
-
export declare class Objectives extends APIResource {
|
|
23
|
-
tools: ToolsAPI.Tools;
|
|
24
|
-
toolCalls: ToolCallsAPI.ToolCalls;
|
|
25
|
-
tasks: TasksAPI.Tasks;
|
|
26
|
-
feedback: FeedbackAPI.Feedback;
|
|
27
|
-
/**
|
|
28
|
-
* Creates a new objective in the workspace
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```ts
|
|
32
|
-
* const objective = await client.objectives.create({
|
|
33
|
-
* workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q',
|
|
34
|
-
* agentId: 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
35
|
-
* systemPromptData: { foo: 'bar' },
|
|
36
|
-
* });
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
create(params: ObjectiveCreateParams, options?: RequestOptions): APIPromise<Objective>;
|
|
40
|
-
/**
|
|
41
|
-
* Retrieves an objective by ID from the workspace
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* ```ts
|
|
45
|
-
* const objective = await client.objectives.retrieve(
|
|
46
|
-
* 'obj_01HXKD2E5NQM3T9AYWCFQAZGFV',
|
|
47
|
-
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
48
|
-
* );
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
retrieve(id: string, params?: ObjectiveRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Objective>;
|
|
52
|
-
/**
|
|
53
|
-
* Lists all objectives in the workspace
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```ts
|
|
57
|
-
* // Automatically fetches more pages as needed.
|
|
58
|
-
* for await (const objective of client.objectives.list({
|
|
59
|
-
* workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q',
|
|
60
|
-
* })) {
|
|
61
|
-
* // ...
|
|
62
|
-
* }
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
list(params?: ObjectiveListParams | null | undefined, options?: RequestOptions): PagePromise<ObjectivesCursorPagination, Objective>;
|
|
66
|
-
/**
|
|
67
|
-
* Cancels a running or pending objective. The objective's state will be set to
|
|
68
|
-
* STATE_CANCELLED.
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* ```ts
|
|
72
|
-
* const objective = await client.objectives.cancel(
|
|
73
|
-
* 'obj_01HXKD2E5NQM3T9AYWCFQAZGFV',
|
|
74
|
-
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
75
|
-
* );
|
|
76
|
-
* ```
|
|
77
|
-
*/
|
|
78
|
-
cancel(objectiveID: string, params: ObjectiveCancelParams, options?: RequestOptions): APIPromise<Objective>;
|
|
79
|
-
/**
|
|
80
|
-
* Triggers compaction on a running objective. Optionally override the variation's
|
|
81
|
-
* compaction config.
|
|
82
|
-
*
|
|
83
|
-
* @example
|
|
84
|
-
* ```ts
|
|
85
|
-
* const response = await client.objectives.compact(
|
|
86
|
-
* 'obj_01HXKD2E5NQM3T9AYWCFQAZGFV',
|
|
87
|
-
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
88
|
-
* );
|
|
89
|
-
* ```
|
|
90
|
-
*/
|
|
91
|
-
compact(objectiveID: string, params: ObjectiveCompactParams, options?: RequestOptions): APIPromise<ObjectiveCompactResponse>;
|
|
92
|
-
/**
|
|
93
|
-
* Continues an objective that has completed
|
|
94
|
-
*
|
|
95
|
-
* @example
|
|
96
|
-
* ```ts
|
|
97
|
-
* const objectiveEvent = await client.objectives.continue(
|
|
98
|
-
* 'obj_01HXKD2E5NQM3T9AYWCFQAZGFV',
|
|
99
|
-
* {
|
|
100
|
-
* workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q',
|
|
101
|
-
* message: 'message',
|
|
102
|
-
* },
|
|
103
|
-
* );
|
|
104
|
-
* ```
|
|
105
|
-
*/
|
|
106
|
-
continue(objectiveID: string, params: ObjectiveContinueParams, options?: RequestOptions): APIPromise<ObjectiveEvent>;
|
|
107
|
-
/**
|
|
108
|
-
* Read-only list of the last five windows of execution for this objective, ordered
|
|
109
|
-
* by most recent first
|
|
110
|
-
*
|
|
111
|
-
* @example
|
|
112
|
-
* ```ts
|
|
113
|
-
* // Automatically fetches more pages as needed.
|
|
114
|
-
* for await (const objectiveContextWindow of client.objectives.listContextWindows(
|
|
115
|
-
* 'obj_01HXKD2E5NQM3T9AYWCFQAZGFV',
|
|
116
|
-
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
117
|
-
* )) {
|
|
118
|
-
* // ...
|
|
119
|
-
* }
|
|
120
|
-
* ```
|
|
121
|
-
*/
|
|
122
|
-
listContextWindows(objectiveID: string, params?: ObjectiveListContextWindowsParams | null | undefined, options?: RequestOptions): PagePromise<ObjectiveContextWindowsCursorPagination, ObjectiveContextWindow>;
|
|
123
|
-
/**
|
|
124
|
-
* Lists all events for an objective
|
|
125
|
-
*
|
|
126
|
-
* @example
|
|
127
|
-
* ```ts
|
|
128
|
-
* // Automatically fetches more pages as needed.
|
|
129
|
-
* for await (const objectiveEvent of client.objectives.listEvents(
|
|
130
|
-
* 'obj_01HXKD2E5NQM3T9AYWCFQAZGFV',
|
|
131
|
-
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
132
|
-
* )) {
|
|
133
|
-
* // ...
|
|
134
|
-
* }
|
|
135
|
-
* ```
|
|
136
|
-
*/
|
|
137
|
-
listEvents(objectiveID: string, params?: ObjectiveListEventsParams | null | undefined, options?: RequestOptions): PagePromise<ObjectiveEventsCursorPagination, ObjectiveEvent>;
|
|
138
|
-
/**
|
|
139
|
-
* Returns the context-usage breakdown measured for the objective's most recent
|
|
140
|
-
* iteration: character lengths per context component (system prompt, memory
|
|
141
|
-
* appendices, tool definitions, messages by role) alongside the iteration's input
|
|
142
|
-
* token counts.
|
|
143
|
-
*
|
|
144
|
-
* @example
|
|
145
|
-
* ```ts
|
|
146
|
-
* const response =
|
|
147
|
-
* await client.objectives.retrieveDiagnostics(
|
|
148
|
-
* 'obj_01HXKD2E5NQM3T9AYWCFQAZGFV',
|
|
149
|
-
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
150
|
-
* );
|
|
151
|
-
* ```
|
|
152
|
-
*/
|
|
153
|
-
retrieveDiagnostics(objectiveID: string, params?: ObjectiveRetrieveDiagnosticsParams | null | undefined, options?: RequestOptions): APIPromise<ObjectiveRetrieveDiagnosticsResponse>;
|
|
154
|
-
/**
|
|
155
|
-
* Streams events for an objective in real-time using server-sent events (SSE)
|
|
156
|
-
*
|
|
157
|
-
* @example
|
|
158
|
-
* ```ts
|
|
159
|
-
* const objectiveEvent = await client.objectives.streamEvents(
|
|
160
|
-
* 'obj_01HXKD2E5NQM3T9AYWCFQAZGFV',
|
|
161
|
-
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
162
|
-
* );
|
|
163
|
-
* ```
|
|
164
|
-
*/
|
|
165
|
-
streamEvents(objectiveID: string, params?: ObjectiveStreamEventsParams | undefined, options?: RequestOptions): APIPromise<Stream<ObjectiveEvent>>;
|
|
166
|
-
}
|
|
167
|
-
export type ObjectivesCursorPagination = CursorPagination<Objective>;
|
|
168
|
-
export type ObjectiveContextWindowsCursorPagination = CursorPagination<ObjectiveContextWindow>;
|
|
169
|
-
export type ObjectiveEventsCursorPagination = CursorPagination<ObjectiveEvent>;
|
|
170
|
-
export interface AssistantMessage {
|
|
171
|
-
content?: string;
|
|
172
|
-
toolCalls?: Array<AssistantToolCall>;
|
|
173
|
-
}
|
|
174
|
-
export interface AssistantToolCall {
|
|
175
|
-
arguments?: string;
|
|
176
|
-
functionName?: string;
|
|
177
|
-
/**
|
|
178
|
-
* CallableTool is a union that represents a tool that can be called by an agent.
|
|
179
|
-
* In Cadenya, a tool that is used within an agent objective might be a
|
|
180
|
-
* user-defined tool (IE: MCP, HTTP), another Agent (useful to separate context),
|
|
181
|
-
* or a Cadenya Tool (one Cadenya provides).
|
|
182
|
-
*/
|
|
183
|
-
tool?: CallableTool;
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* CallableTool is a union that represents a tool that can be called by an agent.
|
|
187
|
-
* In Cadenya, a tool that is used within an agent objective might be a
|
|
188
|
-
* user-defined tool (IE: MCP, HTTP), another Agent (useful to separate context),
|
|
189
|
-
* or a Cadenya Tool (one Cadenya provides).
|
|
190
|
-
*/
|
|
191
|
-
export type CallableTool = CallableToolTool | CallableToolAgent | CallableToolCadenyaProvidedTool;
|
|
192
|
-
export interface CallableToolAgent {
|
|
193
|
-
/**
|
|
194
|
-
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
195
|
-
*/
|
|
196
|
-
agent: Shared.ResourceMetadata;
|
|
197
|
-
type: 'agent';
|
|
198
|
-
}
|
|
199
|
-
export interface CallableToolCadenyaProvidedTool {
|
|
200
|
-
/**
|
|
201
|
-
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
202
|
-
*/
|
|
203
|
-
cadenyaProvidedTool: Shared.ResourceMetadata;
|
|
204
|
-
type: 'cadenyaProvidedTool';
|
|
205
|
-
}
|
|
206
|
-
export interface CallableToolTool {
|
|
207
|
-
/**
|
|
208
|
-
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
209
|
-
*/
|
|
210
|
-
tool: Shared.ResourceMetadata;
|
|
211
|
-
type: 'tool';
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* ContextLengths is the measured character length of each distinct component of an
|
|
215
|
-
* iteration's assembled context window. Values are raw character lengths of the
|
|
216
|
-
* component as assembled into the request — token estimates are derived by the
|
|
217
|
-
* client against input_tokens (component share = component length / sum of all
|
|
218
|
-
* lengths).
|
|
219
|
-
*
|
|
220
|
-
* New components are added as new fields — wire-compatible; absent components read
|
|
221
|
-
* as 0.
|
|
222
|
-
*/
|
|
223
|
-
export interface ContextLengths {
|
|
224
|
-
/**
|
|
225
|
-
* Character length of the chat history messages with the assistant role.
|
|
226
|
-
*/
|
|
227
|
-
assistantMessages: number;
|
|
228
|
-
/**
|
|
229
|
-
* Character length of the discoverable/available-tools appendix attached to the
|
|
230
|
-
* system prompt.
|
|
231
|
-
*/
|
|
232
|
-
availableTools: number;
|
|
233
|
-
/**
|
|
234
|
-
* Character length of the episodic memory appendix attached to the system prompt.
|
|
235
|
-
*/
|
|
236
|
-
episodicMemory: number;
|
|
237
|
-
/**
|
|
238
|
-
* Character length of the skills memory appendix attached to the system prompt.
|
|
239
|
-
*/
|
|
240
|
-
skillsMemory: number;
|
|
241
|
-
/**
|
|
242
|
-
* Character length of the objective's base system prompt (rendered variation
|
|
243
|
-
* template). Not tokens -- see the message comment.
|
|
244
|
-
*/
|
|
245
|
-
systemPrompt: number;
|
|
246
|
-
/**
|
|
247
|
-
* Character length of the serialized tool definitions sent with the completion
|
|
248
|
-
* request (names, descriptions, and JSON-schema parameters).
|
|
249
|
-
*/
|
|
250
|
-
toolDefinitions: number;
|
|
251
|
-
/**
|
|
252
|
-
* Character length of the tool results present in the chat history.
|
|
253
|
-
*/
|
|
254
|
-
toolResults: number;
|
|
255
|
-
/**
|
|
256
|
-
* Character length of the chat history messages with the user role.
|
|
257
|
-
*/
|
|
258
|
-
userMessages: number;
|
|
259
|
-
}
|
|
260
|
-
export interface ContextWindowCompacted {
|
|
261
|
-
/**
|
|
262
|
-
* Number of messages that were compacted
|
|
263
|
-
*/
|
|
264
|
-
messagesCompacted?: number;
|
|
265
|
-
/**
|
|
266
|
-
* The new context window created by this compaction
|
|
267
|
-
*/
|
|
268
|
-
newContextWindow?: ObjectiveContextWindowData;
|
|
269
|
-
/**
|
|
270
|
-
* The strategies that were applied during this compaction
|
|
271
|
-
*/
|
|
272
|
-
strategies?: Array<string>;
|
|
273
|
-
/**
|
|
274
|
-
* The summary generated by the summarization strategy, if used.
|
|
275
|
-
*/
|
|
276
|
-
summary?: string;
|
|
277
|
-
}
|
|
278
|
-
/**
|
|
279
|
-
* MemoryRead is emitted each time the agent resolves a key against the memory
|
|
280
|
-
* cascade and loads an entry. Lookups that miss (key not found in any layer) do
|
|
281
|
-
* not emit this event.
|
|
282
|
-
*/
|
|
283
|
-
export interface MemoryRead {
|
|
284
|
-
/**
|
|
285
|
-
* The specific entry that was read.
|
|
286
|
-
*/
|
|
287
|
-
memoryEntryId?: string;
|
|
288
|
-
/**
|
|
289
|
-
* The layer the entry resolved to. The top-most layer that contained the key —
|
|
290
|
-
* other layers beneath it that also contained the key are shadowed and not
|
|
291
|
-
* referenced here.
|
|
292
|
-
*/
|
|
293
|
-
memoryLayerId?: string;
|
|
294
|
-
/**
|
|
295
|
-
* Human-readable description of the read, set by the runtime. For example: "Loaded
|
|
296
|
-
* skill", "Resolved context key". Not machine-parsed; intended for UI display
|
|
297
|
-
* alongside the other events in an objective's timeline.
|
|
298
|
-
*/
|
|
299
|
-
message?: string;
|
|
300
|
-
}
|
|
301
|
-
/**
|
|
302
|
-
* MemoryReference identifies a memory layer or a specific entry within one, for
|
|
303
|
-
* composition into a memory cascade. Used on objectives (where entry pinning is
|
|
304
|
-
* permitted).
|
|
305
|
-
*
|
|
306
|
-
* memory*layer_id accepts both the canonical form (memlyr*…) and the external-id
|
|
307
|
-
* form (external_id:my-custom-id). The same applies to memory_entry_id when set.
|
|
308
|
-
*/
|
|
309
|
-
export interface MemoryReference {
|
|
310
|
-
memoryLayerId: string;
|
|
311
|
-
/**
|
|
312
|
-
* When set, inserts only this entry from memory_layer_id into the cascade —
|
|
313
|
-
* behaves as a single-entry layer (only this key resolves at this position). The
|
|
314
|
-
* entry must belong to memory_layer_id; mismatches are rejected with
|
|
315
|
-
* InvalidArgument.
|
|
316
|
-
*/
|
|
317
|
-
memoryEntryId?: string;
|
|
318
|
-
}
|
|
319
|
-
/**
|
|
320
|
-
* Objective is the data for an objective. It contains the snapshotted fields for
|
|
321
|
-
* the selected agent and variation. Secrets are returned only with their names,
|
|
322
|
-
* and the output definition is copied from the agent's configuration.
|
|
323
|
-
*/
|
|
324
|
-
export interface Objective {
|
|
325
|
-
/**
|
|
326
|
-
* ObjectiveConfigSnapshot is the point-in-time snapshot of the agent, variation,
|
|
327
|
-
* and (when applicable) schedule that an objective was started with.
|
|
328
|
-
*/
|
|
329
|
-
configSnapshot: ObjectiveConfigSnapshot;
|
|
330
|
-
/**
|
|
331
|
-
* The first user message in the LLM chat history, either provided explicitly at
|
|
332
|
-
* creation or rendered from the variation's first_user_message_template.
|
|
333
|
-
*/
|
|
334
|
-
firstUserMessage: string;
|
|
335
|
-
/**
|
|
336
|
-
* Metadata for ephemeral operations and activities (e.g., objectives, executions,
|
|
337
|
-
* runs)
|
|
338
|
-
*/
|
|
339
|
-
metadata: Shared.OperationMetadata;
|
|
340
|
-
/**
|
|
341
|
-
* The current lifecycle state of the objective.
|
|
342
|
-
*/
|
|
343
|
-
state: 'STATE_UNSPECIFIED' | 'STATE_PENDING' | 'STATE_RUNNING' | 'STATE_WAITING' | 'STATE_FAILED' | 'STATE_CANCELLED' | 'STATE_FINALIZED' | 'STATE_TIMED_OUT';
|
|
344
|
-
/**
|
|
345
|
-
* system_prompt is read-only, derived from the selected variation's prompt
|
|
346
|
-
*/
|
|
347
|
-
systemPrompt: string;
|
|
348
|
-
/**
|
|
349
|
-
* Episodic is used to configure the episodic memory for the objective
|
|
350
|
-
*/
|
|
351
|
-
episodicMemory?: Objective.EpisodicMemory;
|
|
352
|
-
/**
|
|
353
|
-
* Arbitrary data rendered into the variation's first_user_message_template
|
|
354
|
-
*/
|
|
355
|
-
firstUserMessageData?: {
|
|
356
|
-
[key: string]: unknown;
|
|
357
|
-
};
|
|
358
|
-
/**
|
|
359
|
-
* ObjectiveInfo provides read-only aggregated statistics about an objective's
|
|
360
|
-
* execution
|
|
361
|
-
*/
|
|
362
|
-
info?: ObjectiveInfo;
|
|
363
|
-
/**
|
|
364
|
-
* Memory layers/entries layered over the baseline cascade inherited from the
|
|
365
|
-
* selected variation — element-level rules over inherited styles, in CSS terms.
|
|
366
|
-
*
|
|
367
|
-
* Array order is resolution order: EARLIER elements are more specific and are
|
|
368
|
-
* consulted first. Entries pinned via memory_entry_id behave as single-entry
|
|
369
|
-
* layers at their position.
|
|
370
|
-
*
|
|
371
|
-
* System-managed layers (e.g., episodic) cannot be referenced here; they attach
|
|
372
|
-
* themselves automatically based on the episodic key.
|
|
373
|
-
*
|
|
374
|
-
* Size cap: the TOTAL effective cascade (this field + the variation's memory layer
|
|
375
|
-
* assignments) must not exceed 10 entries. A request that would produce a larger
|
|
376
|
-
* cascade is rejected with InvalidArgument.
|
|
377
|
-
*/
|
|
378
|
-
memoryCascade?: Array<MemoryReference>;
|
|
379
|
-
/**
|
|
380
|
-
* The output of the objective, populated when the objective completes. Will match
|
|
381
|
-
* the schema of output_json_schema or output_json_inferred. This will only be set
|
|
382
|
-
* if the state of the objective is set to STATE_FINALIZED
|
|
383
|
-
*/
|
|
384
|
-
output?: {
|
|
385
|
-
[key: string]: unknown;
|
|
386
|
-
};
|
|
387
|
-
/**
|
|
388
|
-
* A parent objective means the objective was spawned off using a separate agent to
|
|
389
|
-
* complete an objective
|
|
390
|
-
*/
|
|
391
|
-
parentObjectiveId?: string;
|
|
392
|
-
/**
|
|
393
|
-
* Parameters forced onto this objective's tool calls, as provided at creation. See
|
|
394
|
-
* CreateObjectiveRequest.pinned_parameters for semantics.
|
|
395
|
-
*/
|
|
396
|
-
pinnedParameters?: {
|
|
397
|
-
[key: string]: string;
|
|
398
|
-
};
|
|
399
|
-
/**
|
|
400
|
-
* Secrets that can be used in the headers for tool calls using the secret
|
|
401
|
-
* interpolation format.
|
|
402
|
-
*/
|
|
403
|
-
secrets?: Array<ObjectiveSecret>;
|
|
404
|
-
/**
|
|
405
|
-
* Optional human-readable detail about the current state (e.g. a failure reason).
|
|
406
|
-
*/
|
|
407
|
-
stateMessage?: string;
|
|
408
|
-
/**
|
|
409
|
-
* Arbitrary data rendered into the variation's system_prompt_template
|
|
410
|
-
*/
|
|
411
|
-
systemPromptData?: {
|
|
412
|
-
[key: string]: unknown;
|
|
413
|
-
};
|
|
414
|
-
}
|
|
415
|
-
export declare namespace Objective {
|
|
416
|
-
/**
|
|
417
|
-
* Episodic is used to configure the episodic memory for the objective
|
|
418
|
-
*/
|
|
419
|
-
interface EpisodicMemory {
|
|
420
|
-
/**
|
|
421
|
-
* The caller-supplied episodic key. Objectives created with the same key (for the
|
|
422
|
-
* same agent) share one episodic memory layer.
|
|
423
|
-
*/
|
|
424
|
-
key: string;
|
|
425
|
-
/**
|
|
426
|
-
* The episodic memory layer resolved (created or reused) for this objective's key.
|
|
427
|
-
* Populated by the system at objective creation.
|
|
428
|
-
*/
|
|
429
|
-
memoryLayerId?: string;
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
/**
|
|
433
|
-
* ObjectiveConfigSnapshot is the point-in-time snapshot of the agent, variation,
|
|
434
|
-
* and (when applicable) schedule that an objective was started with.
|
|
435
|
-
*/
|
|
436
|
-
export interface ObjectiveConfigSnapshot {
|
|
437
|
-
/**
|
|
438
|
-
* Agent resource
|
|
439
|
-
*/
|
|
440
|
-
agent?: AgentsAPI.Agent;
|
|
441
|
-
/**
|
|
442
|
-
* AgentSchedule resource — a recurring trigger attached to an agent that creates
|
|
443
|
-
* objectives on its cadence.
|
|
444
|
-
*/
|
|
445
|
-
agentSchedule?: SchedulesAPI.AgentSchedule;
|
|
446
|
-
/**
|
|
447
|
-
* AgentVariation resource
|
|
448
|
-
*/
|
|
449
|
-
agentVariation?: VariationsAPI.AgentVariation;
|
|
450
|
-
}
|
|
451
|
-
/**
|
|
452
|
-
* ObjectiveContextWindow is a window of chat completions that is grouped together
|
|
453
|
-
* to prevent context-window overflows. Context windows also allow agents to
|
|
454
|
-
* compact their windows and carry on into a new one.
|
|
455
|
-
*/
|
|
456
|
-
export interface ObjectiveContextWindow {
|
|
457
|
-
data: ObjectiveContextWindowData;
|
|
458
|
-
/**
|
|
459
|
-
* Metadata for ephemeral operations and activities (e.g., objectives, executions,
|
|
460
|
-
* runs)
|
|
461
|
-
*/
|
|
462
|
-
metadata: Shared.OperationMetadata;
|
|
463
|
-
info?: ObjectiveContextWindow.Info;
|
|
464
|
-
}
|
|
465
|
-
export declare namespace ObjectiveContextWindow {
|
|
466
|
-
interface Info {
|
|
467
|
-
/**
|
|
468
|
-
* A profile identifies a user or non-human principal (such as an API key) at the
|
|
469
|
-
* account level. Profiles are account-scoped and can be granted access to multiple
|
|
470
|
-
* workspaces.
|
|
471
|
-
*/
|
|
472
|
-
createdBy?: AccountAPI.Profile;
|
|
473
|
-
/**
|
|
474
|
-
* Metadata for ephemeral operations and activities (e.g., objectives, executions,
|
|
475
|
-
* runs)
|
|
476
|
-
*/
|
|
477
|
-
objective?: Shared.OperationMetadata;
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
export interface ObjectiveContextWindowData {
|
|
481
|
-
/**
|
|
482
|
-
* A calculated value for how many completion tokens (output tokens) have been used
|
|
483
|
-
* in this context window
|
|
484
|
-
*/
|
|
485
|
-
completionTokens?: number;
|
|
486
|
-
/**
|
|
487
|
-
* The objective's ID that this window belongs to
|
|
488
|
-
*/
|
|
489
|
-
objectiveId?: string;
|
|
490
|
-
/**
|
|
491
|
-
* The instructions for this window to continue from a previous window's chat
|
|
492
|
-
* history.
|
|
493
|
-
*/
|
|
494
|
-
previousWindowContinueInstructions?: string;
|
|
495
|
-
/**
|
|
496
|
-
* A calculated value for how many prompt tokens (input tokens) have been used in
|
|
497
|
-
* this context window
|
|
498
|
-
*/
|
|
499
|
-
promptTokens?: number;
|
|
500
|
-
/**
|
|
501
|
-
* sequence is a numeric representation of which context window this is. Sequences
|
|
502
|
-
* are useful to perform a max(sequence) on in order to calculate how many context
|
|
503
|
-
* windows an objective has.
|
|
504
|
-
*/
|
|
505
|
-
sequence?: number;
|
|
506
|
-
}
|
|
507
|
-
/**
|
|
508
|
-
* ObjectiveDiagnostics is the context-usage breakdown measured for a single
|
|
509
|
-
* iteration at request-assembly time. It reports how much of the context window
|
|
510
|
-
* each component occupies so tool parameters, memory cascades, and prompts can be
|
|
511
|
-
* tuned against real token usage.
|
|
512
|
-
*/
|
|
513
|
-
export interface ObjectiveDiagnostics {
|
|
514
|
-
/**
|
|
515
|
-
* The portion of input_tokens served from the provider's prompt cache. Lets
|
|
516
|
-
* clients distinguish "big but cached" from "big and paid fresh every iteration".
|
|
517
|
-
*/
|
|
518
|
-
cachedInputTokens: number;
|
|
519
|
-
/**
|
|
520
|
-
* ContextLengths is the measured character length of each distinct component of an
|
|
521
|
-
* iteration's assembled context window. Values are raw character lengths of the
|
|
522
|
-
* component as assembled into the request — token estimates are derived by the
|
|
523
|
-
* client against input_tokens (component share = component length / sum of all
|
|
524
|
-
* lengths).
|
|
525
|
-
*
|
|
526
|
-
* New components are added as new fields — wire-compatible; absent components read
|
|
527
|
-
* as 0.
|
|
528
|
-
*/
|
|
529
|
-
contextLengths: ContextLengths;
|
|
530
|
-
/**
|
|
531
|
-
* Input tokens reported by the LLM provider for the iteration's completion.
|
|
532
|
-
*/
|
|
533
|
-
inputTokens: number;
|
|
534
|
-
}
|
|
535
|
-
export interface ObjectiveError {
|
|
536
|
-
message?: string;
|
|
537
|
-
type?: string;
|
|
538
|
-
}
|
|
539
|
-
export interface ObjectiveEvent {
|
|
540
|
-
data: ObjectiveEventData;
|
|
541
|
-
/**
|
|
542
|
-
* Metadata for ephemeral operations and activities (e.g., objectives, executions,
|
|
543
|
-
* runs)
|
|
544
|
-
*/
|
|
545
|
-
metadata: Shared.OperationMetadata;
|
|
546
|
-
contextWindowId?: string;
|
|
547
|
-
/**
|
|
548
|
-
* Elapsed time of the work this event records, when it is known at write time
|
|
549
|
-
* (e.g. assistant message generation, tool execution for result/error events).
|
|
550
|
-
* Unset means the event is instantaneous or the duration is not measurable.
|
|
551
|
-
* Serialized as a canonical duration string (e.g. "4.1s"). Always set together
|
|
552
|
-
* with started_at.
|
|
553
|
-
*/
|
|
554
|
-
duration?: string;
|
|
555
|
-
info?: ObjectiveEventInfo;
|
|
556
|
-
/**
|
|
557
|
-
* When the work this event records began. Set together with duration, so the work
|
|
558
|
-
* interval is [started_at, started_at + duration]. The event's created_at remains
|
|
559
|
-
* the time the event was persisted.
|
|
560
|
-
*/
|
|
561
|
-
startedAt?: string;
|
|
562
|
-
}
|
|
563
|
-
export type ObjectiveEventData = ObjectiveEventDataUserMessage | ObjectiveEventDataToolApprovalRequested | ObjectiveEventDataToolApproved | ObjectiveEventDataToolDenied | ObjectiveEventDataToolCalled | ObjectiveEventDataError | ObjectiveEventDataAssistantMessage | ObjectiveEventDataToolResult | ObjectiveEventDataToolError | ObjectiveEventDataContextWindowCompacted | ObjectiveEventDataMemoryRead | ObjectiveEventDataCancelled | ObjectiveEventDataSubAgentSpawned | ObjectiveEventDataSubAgentUpdated | ObjectiveEventDataFinalized | ObjectiveEventDataNotice | ObjectiveEventDataTimedOut | ObjectiveEventDataReasoning;
|
|
564
|
-
export interface ObjectiveEventDataAssistantMessage {
|
|
565
|
-
assistantMessage: AssistantMessage;
|
|
566
|
-
type: 'assistantMessage';
|
|
567
|
-
}
|
|
568
|
-
export interface ObjectiveEventDataCancelled {
|
|
569
|
-
/**
|
|
570
|
-
* ObjectiveCancelled is the terminal event written when an objective is cancelled.
|
|
571
|
-
* After this event, the objective is super-terminal: no further iterations,
|
|
572
|
-
* compaction, or continuation are permitted.
|
|
573
|
-
*/
|
|
574
|
-
cancelled: ObjectiveEventDataCancelled.Cancelled;
|
|
575
|
-
type: 'cancelled';
|
|
576
|
-
}
|
|
577
|
-
export declare namespace ObjectiveEventDataCancelled {
|
|
578
|
-
/**
|
|
579
|
-
* ObjectiveCancelled is the terminal event written when an objective is cancelled.
|
|
580
|
-
* After this event, the objective is super-terminal: no further iterations,
|
|
581
|
-
* compaction, or continuation are permitted.
|
|
582
|
-
*/
|
|
583
|
-
interface Cancelled {
|
|
584
|
-
/**
|
|
585
|
-
* Optional human-readable note recorded at cancel time. Today the workflow sets
|
|
586
|
-
* "Cancelled" but this field leaves room for richer reasons (e.g. "Cancelled by
|
|
587
|
-
* user", "Cancelled by schedule sweep", "Credit balance exhausted").
|
|
588
|
-
*/
|
|
589
|
-
message?: string;
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
export interface ObjectiveEventDataContextWindowCompacted {
|
|
593
|
-
contextWindowCompacted: ContextWindowCompacted;
|
|
594
|
-
type: 'contextWindowCompacted';
|
|
595
|
-
}
|
|
596
|
-
export interface ObjectiveEventDataError {
|
|
597
|
-
error: ObjectiveError;
|
|
598
|
-
type: 'error';
|
|
599
|
-
}
|
|
600
|
-
export interface ObjectiveEventDataFinalized {
|
|
601
|
-
/**
|
|
602
|
-
* ObjectiveFinalized is the terminal event written when an objective is finalized.
|
|
603
|
-
* After this event, the objective is super-terminal: no further iterations,
|
|
604
|
-
* compaction, or continuation are permitted.
|
|
605
|
-
*/
|
|
606
|
-
finalized: ObjectiveEventDataFinalized.Finalized;
|
|
607
|
-
type: 'finalized';
|
|
608
|
-
}
|
|
609
|
-
export declare namespace ObjectiveEventDataFinalized {
|
|
610
|
-
/**
|
|
611
|
-
* ObjectiveFinalized is the terminal event written when an objective is finalized.
|
|
612
|
-
* After this event, the objective is super-terminal: no further iterations,
|
|
613
|
-
* compaction, or continuation are permitted.
|
|
614
|
-
*/
|
|
615
|
-
interface Finalized {
|
|
616
|
-
/**
|
|
617
|
-
* If the objective was created with an output schema, and the agent successfully
|
|
618
|
-
* completed the objective, this field will contain the structured output of the
|
|
619
|
-
* objective.
|
|
620
|
-
*/
|
|
621
|
-
output?: unknown;
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
export interface ObjectiveEventDataMemoryRead {
|
|
625
|
-
/**
|
|
626
|
-
* MemoryRead is emitted each time the agent resolves a key against the memory
|
|
627
|
-
* cascade and loads an entry. Lookups that miss (key not found in any layer) do
|
|
628
|
-
* not emit this event.
|
|
629
|
-
*/
|
|
630
|
-
memoryRead: MemoryRead;
|
|
631
|
-
type: 'memoryRead';
|
|
632
|
-
}
|
|
633
|
-
export interface ObjectiveEventDataNotice {
|
|
634
|
-
/**
|
|
635
|
-
* Notice is a non-terminal diagnostic emitted by the runtime when something
|
|
636
|
-
* noteworthy but non-fatal happens during an objective — for example a
|
|
637
|
-
* just-in-time tool set failing to load, or a previously loaded tool being dropped
|
|
638
|
-
* because it was archived. Notices carry no structured payload; they exist to make
|
|
639
|
-
* the objective timeline self-explanatory.
|
|
640
|
-
*/
|
|
641
|
-
notice: ObjectiveEventDataNotice.Notice;
|
|
642
|
-
type: 'notice';
|
|
643
|
-
}
|
|
644
|
-
export declare namespace ObjectiveEventDataNotice {
|
|
645
|
-
/**
|
|
646
|
-
* Notice is a non-terminal diagnostic emitted by the runtime when something
|
|
647
|
-
* noteworthy but non-fatal happens during an objective — for example a
|
|
648
|
-
* just-in-time tool set failing to load, or a previously loaded tool being dropped
|
|
649
|
-
* because it was archived. Notices carry no structured payload; they exist to make
|
|
650
|
-
* the objective timeline self-explanatory.
|
|
651
|
-
*/
|
|
652
|
-
interface Notice {
|
|
653
|
-
/**
|
|
654
|
-
* Stable machine-readable identifier for the notice kind (for example
|
|
655
|
-
* "tool_set_load_failed", "tool_archived"). Clients can switch on it or use it as
|
|
656
|
-
* an i18n key; the message is the English fallback.
|
|
657
|
-
*/
|
|
658
|
-
key?: string;
|
|
659
|
-
level?: 'LEVEL_UNSPECIFIED' | 'LEVEL_INFO' | 'LEVEL_WARN';
|
|
660
|
-
/**
|
|
661
|
-
* Human-readable description of what happened.
|
|
662
|
-
*/
|
|
663
|
-
message?: string;
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
export interface ObjectiveEventDataReasoning {
|
|
667
|
-
/**
|
|
668
|
-
* Reasoning carries the human-readable reasoning text a model produced while
|
|
669
|
-
* working on an iteration — extended thinking (Anthropic, Gemini) or reasoning
|
|
670
|
-
* summaries (OpenAI). It is emitted alongside the assistant message from the same
|
|
671
|
-
* model response and is purely informational: the text shown here is never sent
|
|
672
|
-
* back to the model.
|
|
673
|
-
*/
|
|
674
|
-
reasoning: Reasoning;
|
|
675
|
-
type: 'reasoning';
|
|
676
|
-
}
|
|
677
|
-
export interface ObjectiveEventDataSubAgentSpawned {
|
|
678
|
-
subAgentSpawned: SubAgentSpawned;
|
|
679
|
-
type: 'subAgentSpawned';
|
|
680
|
-
}
|
|
681
|
-
export interface ObjectiveEventDataSubAgentUpdated {
|
|
682
|
-
subAgentUpdated: SubAgentUpdated;
|
|
683
|
-
type: 'subAgentUpdated';
|
|
684
|
-
}
|
|
685
|
-
export interface ObjectiveEventDataTimedOut {
|
|
686
|
-
/**
|
|
687
|
-
* ObjectiveTimedOut is the terminal event written when an objective is finalized
|
|
688
|
-
* by the inactivity sweep because it saw no activity (no user messages, no LLM
|
|
689
|
-
* calls) within its variation's inactivity timeout — or the system-wide 24 hour
|
|
690
|
-
* maximum when no timeout is configured. The objective produces no output. After
|
|
691
|
-
* this event, the objective is super-terminal: no further iterations, compaction,
|
|
692
|
-
* or continuation are permitted.
|
|
693
|
-
*/
|
|
694
|
-
timedOut: ObjectiveEventDataTimedOut.TimedOut;
|
|
695
|
-
type: 'timedOut';
|
|
696
|
-
}
|
|
697
|
-
export declare namespace ObjectiveEventDataTimedOut {
|
|
698
|
-
/**
|
|
699
|
-
* ObjectiveTimedOut is the terminal event written when an objective is finalized
|
|
700
|
-
* by the inactivity sweep because it saw no activity (no user messages, no LLM
|
|
701
|
-
* calls) within its variation's inactivity timeout — or the system-wide 24 hour
|
|
702
|
-
* maximum when no timeout is configured. The objective produces no output. After
|
|
703
|
-
* this event, the objective is super-terminal: no further iterations, compaction,
|
|
704
|
-
* or continuation are permitted.
|
|
705
|
-
*/
|
|
706
|
-
interface TimedOut {
|
|
707
|
-
/**
|
|
708
|
-
* Human-readable note recorded at timeout time (e.g. "Timed out after 2h of
|
|
709
|
-
* inactivity").
|
|
710
|
-
*/
|
|
711
|
-
message?: string;
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
export interface ObjectiveEventDataToolApprovalRequested {
|
|
715
|
-
toolApprovalRequested: ToolApprovalRequested;
|
|
716
|
-
type: 'toolApprovalRequested';
|
|
717
|
-
}
|
|
718
|
-
export interface ObjectiveEventDataToolApproved {
|
|
719
|
-
toolApproved: ToolApproved;
|
|
720
|
-
type: 'toolApproved';
|
|
721
|
-
}
|
|
722
|
-
export interface ObjectiveEventDataToolCalled {
|
|
723
|
-
toolCalled: ToolCalled;
|
|
724
|
-
type: 'toolCalled';
|
|
725
|
-
}
|
|
726
|
-
export interface ObjectiveEventDataToolDenied {
|
|
727
|
-
toolDenied: ToolDenied;
|
|
728
|
-
type: 'toolDenied';
|
|
729
|
-
}
|
|
730
|
-
export interface ObjectiveEventDataToolError {
|
|
731
|
-
toolError: ToolError;
|
|
732
|
-
type: 'toolError';
|
|
733
|
-
}
|
|
734
|
-
export interface ObjectiveEventDataToolResult {
|
|
735
|
-
toolResult: ToolResult;
|
|
736
|
-
type: 'toolResult';
|
|
737
|
-
}
|
|
738
|
-
export interface ObjectiveEventDataUserMessage {
|
|
739
|
-
type: 'userMessage';
|
|
740
|
-
userMessage: UserMessage;
|
|
741
|
-
}
|
|
742
|
-
export interface ObjectiveEventInfo {
|
|
743
|
-
/**
|
|
744
|
-
* A profile identifies a user or non-human principal (such as an API key) at the
|
|
745
|
-
* account level. Profiles are account-scoped and can be granted access to multiple
|
|
746
|
-
* workspaces.
|
|
747
|
-
*/
|
|
748
|
-
createdBy?: AccountAPI.Profile;
|
|
749
|
-
/**
|
|
750
|
-
* Metadata for ephemeral operations and activities (e.g., objectives, executions,
|
|
751
|
-
* runs)
|
|
752
|
-
*/
|
|
753
|
-
objective?: Shared.OperationMetadata;
|
|
754
|
-
}
|
|
755
|
-
/**
|
|
756
|
-
* The envelope for an objective event webhook delivery. Contains timestamp, event
|
|
757
|
-
* type, and the webhook data payload.
|
|
758
|
-
*/
|
|
759
|
-
export interface ObjectiveEventWebhookData {
|
|
760
|
-
/**
|
|
761
|
-
* The webhook data payload with flat top-level keys for agent, variation,
|
|
762
|
-
* objective, and event.
|
|
763
|
-
*/
|
|
764
|
-
data: ObjectiveEventWebhookData.Data;
|
|
765
|
-
timestamp: string;
|
|
766
|
-
/**
|
|
767
|
-
* The event type, prefixed with objective_event. (e.g.,
|
|
768
|
-
* objective_event.tool_result)
|
|
769
|
-
*/
|
|
770
|
-
type: string;
|
|
771
|
-
}
|
|
772
|
-
export declare namespace ObjectiveEventWebhookData {
|
|
773
|
-
/**
|
|
774
|
-
* The webhook data payload with flat top-level keys for agent, variation,
|
|
775
|
-
* objective, and event.
|
|
776
|
-
*/
|
|
777
|
-
interface Data {
|
|
778
|
-
/**
|
|
779
|
-
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
780
|
-
*/
|
|
781
|
-
agent: Shared.ResourceMetadata;
|
|
782
|
-
/**
|
|
783
|
-
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
784
|
-
*/
|
|
785
|
-
agentVariation: Shared.ResourceMetadata;
|
|
786
|
-
/**
|
|
787
|
-
* Metadata for ephemeral operations and activities (e.g., objectives, executions,
|
|
788
|
-
* runs)
|
|
789
|
-
*/
|
|
790
|
-
objective: Shared.OperationMetadata;
|
|
791
|
-
objectiveEvent: ObjectivesAPI.ObjectiveEvent;
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
/**
|
|
795
|
-
* ObjectiveInfo provides read-only aggregated statistics about an objective's
|
|
796
|
-
* execution
|
|
797
|
-
*/
|
|
798
|
-
export interface ObjectiveInfo {
|
|
799
|
-
/**
|
|
800
|
-
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
801
|
-
*/
|
|
802
|
-
agent: Shared.ResourceMetadata;
|
|
803
|
-
/**
|
|
804
|
-
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
805
|
-
*/
|
|
806
|
-
agentVariation: Shared.ResourceMetadata;
|
|
807
|
-
/**
|
|
808
|
-
* A profile identifies a user or non-human principal (such as an API key) at the
|
|
809
|
-
* account level. Profiles are account-scoped and can be granted access to multiple
|
|
810
|
-
* workspaces.
|
|
811
|
-
*/
|
|
812
|
-
createdBy: AccountAPI.Profile;
|
|
813
|
-
/**
|
|
814
|
-
* ID of the objective's current (most recent) context window. Hydrated on demand;
|
|
815
|
-
* empty when the objective has not yet produced a context window.
|
|
816
|
-
*/
|
|
817
|
-
currentContextWindowId: string;
|
|
818
|
-
/**
|
|
819
|
-
* The effective memory cascade at objective creation time: the episodic layer
|
|
820
|
-
* (when present), then Objective.memory_cascade, then the variation's baseline
|
|
821
|
-
* layers by ascending position. Order is resolution order — index 0 is the most
|
|
822
|
-
* specific and is consulted first; the first layer containing a key wins. Returned
|
|
823
|
-
* on reads so clients can see exactly what the objective resolves against without
|
|
824
|
-
* re-joining variation state.
|
|
825
|
-
*/
|
|
826
|
-
effectiveMemoryCascade: Array<MemoryReference>;
|
|
827
|
-
/**
|
|
828
|
-
* Total number of context windows that this objective has generated
|
|
829
|
-
*/
|
|
830
|
-
totalContextWindows: number;
|
|
831
|
-
/**
|
|
832
|
-
* Total number of events generated during this objective's execution
|
|
833
|
-
*/
|
|
834
|
-
totalEvents: number;
|
|
835
|
-
/**
|
|
836
|
-
* Total input tokens consumed across all LLM completions across all context
|
|
837
|
-
* windows
|
|
838
|
-
*/
|
|
839
|
-
totalInputTokens: number;
|
|
840
|
-
totalIterations: number;
|
|
841
|
-
/**
|
|
842
|
-
* Total output tokens generated across all LLM completions across all context
|
|
843
|
-
* windows
|
|
844
|
-
*/
|
|
845
|
-
totalOutputTokens: number;
|
|
846
|
-
/**
|
|
847
|
-
* Total number of tool calls made during execution
|
|
848
|
-
*/
|
|
849
|
-
totalToolCalls: number;
|
|
850
|
-
/**
|
|
851
|
-
* SubjectReference is the read-only echo of a resource's subject association,
|
|
852
|
-
* carrying both Cadenya's canonical id and the customer's own key.
|
|
853
|
-
*/
|
|
854
|
-
subject?: WidgetSessionsAPI.SubjectReference;
|
|
855
|
-
/**
|
|
856
|
-
* TenantReference is the read-only echo of a resource's tenant association,
|
|
857
|
-
* carrying both Cadenya's canonical id and the customer's own key.
|
|
858
|
-
*/
|
|
859
|
-
tenant?: WidgetSessionsAPI.TenantReference;
|
|
860
|
-
/**
|
|
861
|
-
* BareMetadata contains the minimal metadata for a resource: the ID and an
|
|
862
|
-
* optional human-readable name. These are used for reference fields where the full
|
|
863
|
-
* metadata (account scoping, timestamps, labels, external IDs) is not needed —
|
|
864
|
-
* e.g., the tool references inside an agent variation spec or the tools assigned
|
|
865
|
-
* to an objective. Both fields are server-populated; clients provide IDs through
|
|
866
|
-
* sibling fields rather than by constructing a BareMetadata themselves.
|
|
867
|
-
*/
|
|
868
|
-
widget?: Shared.BareMetadata;
|
|
869
|
-
}
|
|
870
|
-
export interface ObjectiveSecret {
|
|
871
|
-
name?: string;
|
|
872
|
-
}
|
|
873
|
-
/**
|
|
874
|
-
* Reasoning carries the human-readable reasoning text a model produced while
|
|
875
|
-
* working on an iteration — extended thinking (Anthropic, Gemini) or reasoning
|
|
876
|
-
* summaries (OpenAI). It is emitted alongside the assistant message from the same
|
|
877
|
-
* model response and is purely informational: the text shown here is never sent
|
|
878
|
-
* back to the model.
|
|
879
|
-
*/
|
|
880
|
-
export interface Reasoning {
|
|
881
|
-
/**
|
|
882
|
-
* The reasoning text. May be a verbatim chain of thought or a provider-generated
|
|
883
|
-
* summary depending on the model.
|
|
884
|
-
*/
|
|
885
|
-
content: string;
|
|
886
|
-
}
|
|
887
|
-
export interface SubAgentSpawned {
|
|
888
|
-
/**
|
|
889
|
-
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
890
|
-
*/
|
|
891
|
-
agent?: Shared.ResourceMetadata;
|
|
892
|
-
/**
|
|
893
|
-
* Metadata for ephemeral operations and activities (e.g., objectives, executions,
|
|
894
|
-
* runs)
|
|
895
|
-
*/
|
|
896
|
-
objective?: Shared.OperationMetadata;
|
|
897
|
-
task?: string;
|
|
898
|
-
}
|
|
899
|
-
export interface SubAgentUpdated {
|
|
900
|
-
/**
|
|
901
|
-
* BareMetadata contains the minimal metadata for a resource: the ID and an
|
|
902
|
-
* optional human-readable name. These are used for reference fields where the full
|
|
903
|
-
* metadata (account scoping, timestamps, labels, external IDs) is not needed —
|
|
904
|
-
* e.g., the tool references inside an agent variation spec or the tools assigned
|
|
905
|
-
* to an objective. Both fields are server-populated; clients provide IDs through
|
|
906
|
-
* sibling fields rather than by constructing a BareMetadata themselves.
|
|
907
|
-
*/
|
|
908
|
-
agent?: Shared.BareMetadata;
|
|
909
|
-
message?: string;
|
|
910
|
-
/**
|
|
911
|
-
* BareMetadata contains the minimal metadata for a resource: the ID and an
|
|
912
|
-
* optional human-readable name. These are used for reference fields where the full
|
|
913
|
-
* metadata (account scoping, timestamps, labels, external IDs) is not needed —
|
|
914
|
-
* e.g., the tool references inside an agent variation spec or the tools assigned
|
|
915
|
-
* to an objective. Both fields are server-populated; clients provide IDs through
|
|
916
|
-
* sibling fields rather than by constructing a BareMetadata themselves.
|
|
917
|
-
*/
|
|
918
|
-
objective?: Shared.BareMetadata;
|
|
919
|
-
status?: 'STATUS_UNSPECIFIED' | 'STATUS_PENDING' | 'STATUS_RUNNING' | 'STATUS_COMPLETED' | 'STATUS_FAILED' | 'STATUS_CANCELLED';
|
|
920
|
-
}
|
|
921
|
-
export interface ToolApprovalRequested {
|
|
922
|
-
/**
|
|
923
|
-
* The ID of the objective tool call record. Use this ID with the ApproveToolCall
|
|
924
|
-
* or DenyToolCall RPCs to approve or deny the tool call.
|
|
925
|
-
*/
|
|
926
|
-
toolCallId?: string;
|
|
927
|
-
}
|
|
928
|
-
export interface ToolApproved {
|
|
929
|
-
/**
|
|
930
|
-
* The ID of the objective tool call record that was approved via the
|
|
931
|
-
* ApproveToolCall RPC.
|
|
932
|
-
*/
|
|
933
|
-
toolCallId?: string;
|
|
934
|
-
}
|
|
935
|
-
export interface ToolCalled {
|
|
936
|
-
/**
|
|
937
|
-
* The arguments passed to the tool.
|
|
938
|
-
*/
|
|
939
|
-
arguments?: {
|
|
940
|
-
[key: string]: unknown;
|
|
941
|
-
};
|
|
942
|
-
/**
|
|
943
|
-
* Config defines the adapter to use for the tool. This is used to determine how
|
|
944
|
-
* the tool is called. For example, if the tool is an HTTP tool, the adapter will
|
|
945
|
-
* be Http. If the tool is an inline tool, the adapter will be Inline.
|
|
946
|
-
*/
|
|
947
|
-
config?: ToolSetsToolsAPI.ToolSpecConfig;
|
|
948
|
-
/**
|
|
949
|
-
* CallableTool is a union that represents a tool that can be called by an agent.
|
|
950
|
-
* In Cadenya, a tool that is used within an agent objective might be a
|
|
951
|
-
* user-defined tool (IE: MCP, HTTP), another Agent (useful to separate context),
|
|
952
|
-
* or a Cadenya Tool (one Cadenya provides).
|
|
953
|
-
*/
|
|
954
|
-
tool?: CallableTool;
|
|
955
|
-
/**
|
|
956
|
-
* The ID of the objective tool call record that was executed.
|
|
957
|
-
*/
|
|
958
|
-
toolCallId?: string;
|
|
959
|
-
}
|
|
960
|
-
export interface ToolDenied {
|
|
961
|
-
/**
|
|
962
|
-
* The memo provided by the reviewer when denying the tool call. This is passed to
|
|
963
|
-
* the agent to provide further instructions.
|
|
964
|
-
*/
|
|
965
|
-
memo?: string;
|
|
966
|
-
/**
|
|
967
|
-
* The ID of the objective tool call record that was denied via the DenyToolCall
|
|
968
|
-
* RPC.
|
|
969
|
-
*/
|
|
970
|
-
toolCallId?: string;
|
|
971
|
-
}
|
|
972
|
-
export interface ToolError {
|
|
973
|
-
message?: string;
|
|
974
|
-
/**
|
|
975
|
-
* The ID of the objective tool call record that encountered an error during
|
|
976
|
-
* execution.
|
|
977
|
-
*/
|
|
978
|
-
toolCallId?: string;
|
|
979
|
-
}
|
|
980
|
-
export interface ToolResult {
|
|
981
|
-
/**
|
|
982
|
-
* ObjectiveToolCallResult is the content a tool returned after execution. Tools
|
|
983
|
-
* can return multiple content blocks, and blocks can be multi-modal (text, image,
|
|
984
|
-
* audio). Media blocks are stored by Cadenya and served as short-lived signed URLs
|
|
985
|
-
* rather than inline bytes.
|
|
986
|
-
*/
|
|
987
|
-
result: ToolCallsAPI.ObjectiveToolCallResult;
|
|
988
|
-
toolCallId: string;
|
|
989
|
-
}
|
|
990
|
-
export interface UserMessage {
|
|
991
|
-
content?: string;
|
|
992
|
-
}
|
|
993
|
-
/**
|
|
994
|
-
* Compact objective response
|
|
995
|
-
*/
|
|
996
|
-
export interface ObjectiveCompactResponse {
|
|
997
|
-
/**
|
|
998
|
-
* The new context window created by the compaction
|
|
999
|
-
*/
|
|
1000
|
-
contextWindow?: ObjectiveContextWindowData;
|
|
1001
|
-
}
|
|
1002
|
-
export interface ObjectiveRetrieveDiagnosticsResponse {
|
|
1003
|
-
/**
|
|
1004
|
-
* ObjectiveDiagnostics is the context-usage breakdown measured for a single
|
|
1005
|
-
* iteration at request-assembly time. It reports how much of the context window
|
|
1006
|
-
* each component occupies so tool parameters, memory cascades, and prompts can be
|
|
1007
|
-
* tuned against real token usage.
|
|
1008
|
-
*/
|
|
1009
|
-
diagnostics: ObjectiveDiagnostics;
|
|
1010
|
-
}
|
|
1011
|
-
export interface ObjectiveCreateParams {
|
|
1012
|
-
/**
|
|
1013
|
-
* Path param
|
|
1014
|
-
*/
|
|
1015
|
-
workspaceId?: string;
|
|
1016
|
-
/**
|
|
1017
|
-
* Body param
|
|
1018
|
-
*/
|
|
1019
|
-
agentId: string;
|
|
1020
|
-
/**
|
|
1021
|
-
* Body param: Arbitrary data rendered into the selected variation's
|
|
1022
|
-
* system_prompt_template (liquid) to produce the objective's system prompt. If the
|
|
1023
|
-
* agent has a system_prompt_data_schema, this must satisfy it.
|
|
1024
|
-
*/
|
|
1025
|
-
systemPromptData: {
|
|
1026
|
-
[key: string]: unknown;
|
|
1027
|
-
};
|
|
1028
|
-
/**
|
|
1029
|
-
* Body param: Episodic is used to configure the episodic memory for the objective
|
|
1030
|
-
*/
|
|
1031
|
-
episodicMemory?: ObjectiveCreateParams.EpisodicMemory;
|
|
1032
|
-
/**
|
|
1033
|
-
* Body param: Optional explicit first user message for the LLM chat history. When
|
|
1034
|
-
* not set, the selected variation's first_user_message_template is rendered with
|
|
1035
|
-
* first_user_message_data instead. If neither this field nor a
|
|
1036
|
-
* first_user_message_template is present, the request is rejected with
|
|
1037
|
-
* InvalidArgument.
|
|
1038
|
-
*/
|
|
1039
|
-
firstUserMessage?: string;
|
|
1040
|
-
/**
|
|
1041
|
-
* Body param: Arbitrary data rendered into the selected variation's
|
|
1042
|
-
* first_user_message_template (liquid) to produce the first user message. Separate
|
|
1043
|
-
* from `system_prompt_data`, which renders the system prompt template.
|
|
1044
|
-
*/
|
|
1045
|
-
firstUserMessageData?: {
|
|
1046
|
-
[key: string]: unknown;
|
|
1047
|
-
};
|
|
1048
|
-
/**
|
|
1049
|
-
* Body param: Memory layers/entries layered over the baseline cascade inherited
|
|
1050
|
-
* from the selected variation — element-level rules over inherited styles, in CSS
|
|
1051
|
-
* terms.
|
|
1052
|
-
*
|
|
1053
|
-
* Array order is resolution order: EARLIER elements are more specific and are
|
|
1054
|
-
* consulted first. Entries pinned via memory_entry_id behave as single-entry
|
|
1055
|
-
* layers at their position.
|
|
1056
|
-
*
|
|
1057
|
-
* System-managed layers (e.g., episodic) cannot be referenced here; they attach
|
|
1058
|
-
* themselves automatically based on the episodic key.
|
|
1059
|
-
*
|
|
1060
|
-
* Size cap: the TOTAL effective cascade (this field + the variation's memory layer
|
|
1061
|
-
* assignments) must not exceed 10 entries. A request that would produce a larger
|
|
1062
|
-
* cascade is rejected with InvalidArgument.
|
|
1063
|
-
*/
|
|
1064
|
-
memoryCascade?: Array<MemoryReference>;
|
|
1065
|
-
/**
|
|
1066
|
-
* Body param: CreateOperationMetadata contains the user-provided fields for
|
|
1067
|
-
* creating an operation. Read-only fields (id, account_id, workspace_id,
|
|
1068
|
-
* created_at, profile_id) are excluded since they are set by the server.
|
|
1069
|
-
*/
|
|
1070
|
-
metadata?: Shared.CreateOperationMetadata;
|
|
1071
|
-
/**
|
|
1072
|
-
* Body param: Parameters forced onto this objective's tool calls. A pinned
|
|
1073
|
-
* parameter is an overlay on a tool's JSON schema: the parameter is removed from
|
|
1074
|
-
* what the LLM sees, and its value is always overwritten server-side with the
|
|
1075
|
-
* pinned value — the model cannot choose a different value for it.
|
|
1076
|
-
*/
|
|
1077
|
-
pinnedParameters?: {
|
|
1078
|
-
[key: string]: string;
|
|
1079
|
-
};
|
|
1080
|
-
/**
|
|
1081
|
-
* Body param: Secrets that can be used in the headers for tool calls using the
|
|
1082
|
-
* secret interpolation format.
|
|
1083
|
-
*/
|
|
1084
|
-
secrets?: Array<ObjectiveCreateParams.Secret>;
|
|
1085
|
-
/**
|
|
1086
|
-
* Body param: SubjectAssertion identifies a person within a tenant in the
|
|
1087
|
-
* customer's own namespace — typically their user id. Asserting a subject upserts
|
|
1088
|
-
* the subject record under the asserted tenant and associates the created resource
|
|
1089
|
-
* with it. A subject assertion is only valid alongside a tenant assertion: subject
|
|
1090
|
-
* identifiers are scoped to their tenant.
|
|
1091
|
-
*/
|
|
1092
|
-
subject?: WidgetSessionsAPI.SubjectAssertion;
|
|
1093
|
-
/**
|
|
1094
|
-
* Body param: TenantAssertion identifies a tenant in the customer's own namespace
|
|
1095
|
-
* — their org, company, or team identifier for an end user. Asserting a tenant
|
|
1096
|
-
* upserts the tenant record in the workspace (keyed on `id` as the tenant's
|
|
1097
|
-
* external_id) and associates the created resource with it.
|
|
1098
|
-
*/
|
|
1099
|
-
tenant?: WidgetSessionsAPI.TenantAssertion;
|
|
1100
|
-
/**
|
|
1101
|
-
* Body param: Optional explicit variation selection. Overrides the agent's
|
|
1102
|
-
* variation_selection_mode.
|
|
1103
|
-
*/
|
|
1104
|
-
variationId?: string;
|
|
1105
|
-
}
|
|
1106
|
-
export declare namespace ObjectiveCreateParams {
|
|
1107
|
-
/**
|
|
1108
|
-
* Episodic is used to configure the episodic memory for the objective
|
|
1109
|
-
*/
|
|
1110
|
-
interface EpisodicMemory {
|
|
1111
|
-
/**
|
|
1112
|
-
* The caller-supplied episodic key. Objectives created with the same key (for the
|
|
1113
|
-
* same agent) share one episodic memory layer.
|
|
1114
|
-
*/
|
|
1115
|
-
key: string;
|
|
1116
|
-
}
|
|
1117
|
-
interface Secret {
|
|
1118
|
-
name?: string;
|
|
1119
|
-
value?: string;
|
|
1120
|
-
}
|
|
1121
|
-
}
|
|
1122
|
-
export interface ObjectiveRetrieveParams {
|
|
1123
|
-
workspaceId?: string;
|
|
1124
|
-
}
|
|
1125
|
-
export interface ObjectiveListParams extends CursorPaginationParams {
|
|
1126
|
-
/**
|
|
1127
|
-
* Path param
|
|
1128
|
-
*/
|
|
1129
|
-
workspaceId?: string;
|
|
1130
|
-
/**
|
|
1131
|
-
* Query param: Agent ID for filtering
|
|
1132
|
-
*/
|
|
1133
|
-
agentId?: string;
|
|
1134
|
-
/**
|
|
1135
|
-
* Query param: Filter to objectives produced by a specific AgentSchedule. Accepts
|
|
1136
|
-
* canonical as\_… form or external_id:<value> form.
|
|
1137
|
-
*/
|
|
1138
|
-
agentScheduleId?: string;
|
|
1139
|
-
/**
|
|
1140
|
-
* Query param: When set to true you may use more of your alloted API rate-limit
|
|
1141
|
-
*/
|
|
1142
|
-
includeInfo?: boolean;
|
|
1143
|
-
/**
|
|
1144
|
-
* Query param: Filters by metadata labels. Comma-separated key=value pairs, e.g.
|
|
1145
|
-
* "env=prod,team=ai". A resource matches only if every pair matches exactly (AND
|
|
1146
|
-
* semantics).
|
|
1147
|
-
*/
|
|
1148
|
-
labels?: string;
|
|
1149
|
-
/**
|
|
1150
|
-
* Query param: Optional filters
|
|
1151
|
-
*/
|
|
1152
|
-
parentObjectiveId?: string;
|
|
1153
|
-
/**
|
|
1154
|
-
* Query param
|
|
1155
|
-
*/
|
|
1156
|
-
profileId?: string;
|
|
1157
|
-
/**
|
|
1158
|
-
* Query param: Sort order for results (asc or desc by creation time)
|
|
1159
|
-
*/
|
|
1160
|
-
sortOrder?: string;
|
|
1161
|
-
/**
|
|
1162
|
-
* Query param: Filter by state
|
|
1163
|
-
*/
|
|
1164
|
-
state?: 'STATE_UNSPECIFIED' | 'STATE_PENDING' | 'STATE_RUNNING' | 'STATE_WAITING' | 'STATE_FAILED' | 'STATE_CANCELLED' | 'STATE_FINALIZED' | 'STATE_TIMED_OUT';
|
|
1165
|
-
/**
|
|
1166
|
-
* Query param: Filter to objectives associated with a subject. Accepts the
|
|
1167
|
-
* canonical `subj_…` form or the `external_id:<value>` form; the external_id form
|
|
1168
|
-
* is scoped within a tenant and requires `tenant_id` to also be set.
|
|
1169
|
-
*/
|
|
1170
|
-
subjectId?: string;
|
|
1171
|
-
/**
|
|
1172
|
-
* Query param: Filter to objectives associated with a tenant. Accepts the
|
|
1173
|
-
* canonical `tenant_…` form or the `external_id:<value>` form.
|
|
1174
|
-
*/
|
|
1175
|
-
tenantId?: string;
|
|
1176
|
-
/**
|
|
1177
|
-
* Query param: Filter to objectives whose conversation ran through a widget.
|
|
1178
|
-
* Accepts the canonical `wgt_…` form or the `external_id:<value>` form.
|
|
1179
|
-
*/
|
|
1180
|
-
widgetId?: string;
|
|
1181
|
-
/**
|
|
1182
|
-
* Query param: Filter to objectives created by a specific widget session.
|
|
1183
|
-
*/
|
|
1184
|
-
widgetSessionId?: string;
|
|
1185
|
-
}
|
|
1186
|
-
export interface ObjectiveCancelParams {
|
|
1187
|
-
/**
|
|
1188
|
-
* Path param
|
|
1189
|
-
*/
|
|
1190
|
-
workspaceId?: string;
|
|
1191
|
-
/**
|
|
1192
|
-
* Body param: Optional reason for cancellation
|
|
1193
|
-
*/
|
|
1194
|
-
reason?: string;
|
|
1195
|
-
}
|
|
1196
|
-
export interface ObjectiveCompactParams {
|
|
1197
|
-
/**
|
|
1198
|
-
* Path param
|
|
1199
|
-
*/
|
|
1200
|
-
workspaceId?: string;
|
|
1201
|
-
/**
|
|
1202
|
-
* Body param: CompactionConfig defines how context window compaction behaves for
|
|
1203
|
-
* objectives using this variation.
|
|
1204
|
-
*/
|
|
1205
|
-
compactionConfig?: VariationsAPI.AgentVariationSpecCompactionConfig;
|
|
1206
|
-
}
|
|
1207
|
-
export interface ObjectiveContinueParams {
|
|
1208
|
-
/**
|
|
1209
|
-
* Path param
|
|
1210
|
-
*/
|
|
1211
|
-
workspaceId?: string;
|
|
1212
|
-
/**
|
|
1213
|
-
* Body param: The message to continue an objective that has completed (or you are
|
|
1214
|
-
* enqueing)
|
|
1215
|
-
*/
|
|
1216
|
-
message: string;
|
|
1217
|
-
/**
|
|
1218
|
-
* Body param: When set to true, the message will be enqueued for when the agent
|
|
1219
|
-
* loop is available to process it.
|
|
1220
|
-
*/
|
|
1221
|
-
enqueue?: boolean;
|
|
1222
|
-
}
|
|
1223
|
-
export interface ObjectiveListContextWindowsParams extends CursorPaginationParams {
|
|
1224
|
-
/**
|
|
1225
|
-
* Path param
|
|
1226
|
-
*/
|
|
1227
|
-
workspaceId?: string;
|
|
1228
|
-
/**
|
|
1229
|
-
* Query param: When set to true you may use more of your alloted API rate-limit
|
|
1230
|
-
*/
|
|
1231
|
-
includeInfo?: boolean;
|
|
1232
|
-
/**
|
|
1233
|
-
* Query param: Filters by metadata labels. Comma-separated key=value pairs, e.g.
|
|
1234
|
-
* "env=prod,team=ai". A resource matches only if every pair matches exactly (AND
|
|
1235
|
-
* semantics).
|
|
1236
|
-
*/
|
|
1237
|
-
labels?: string;
|
|
1238
|
-
}
|
|
1239
|
-
export interface ObjectiveListEventsParams extends CursorPaginationParams {
|
|
1240
|
-
/**
|
|
1241
|
-
* Path param
|
|
1242
|
-
*/
|
|
1243
|
-
workspaceId?: string;
|
|
1244
|
-
/**
|
|
1245
|
-
* Query param: When set to true you may use more of your alloted API rate-limit
|
|
1246
|
-
*/
|
|
1247
|
-
includeInfo?: boolean;
|
|
1248
|
-
/**
|
|
1249
|
-
* Query param: Filters by metadata labels. Comma-separated key=value pairs, e.g.
|
|
1250
|
-
* "env=prod,team=ai". A resource matches only if every pair matches exactly (AND
|
|
1251
|
-
* semantics).
|
|
1252
|
-
*/
|
|
1253
|
-
labels?: string;
|
|
1254
|
-
/**
|
|
1255
|
-
* Query param: Optional string to fetch events since an ID
|
|
1256
|
-
*/
|
|
1257
|
-
sinceEventId?: string;
|
|
1258
|
-
/**
|
|
1259
|
-
* Query param: Sort order for results (asc or desc by creation time)
|
|
1260
|
-
*/
|
|
1261
|
-
sortOrder?: string;
|
|
1262
|
-
/**
|
|
1263
|
-
* Query param: Optional context window ID to filter events by
|
|
1264
|
-
*/
|
|
1265
|
-
windowId?: string;
|
|
1266
|
-
}
|
|
1267
|
-
export interface ObjectiveRetrieveDiagnosticsParams {
|
|
1268
|
-
workspaceId?: string;
|
|
1269
|
-
}
|
|
1270
|
-
export interface ObjectiveStreamEventsParams {
|
|
1271
|
-
workspaceId?: string;
|
|
1272
|
-
}
|
|
1273
|
-
export declare namespace Objectives {
|
|
1274
|
-
export { type AssistantMessage as AssistantMessage, type AssistantToolCall as AssistantToolCall, type CallableTool as CallableTool, type CallableToolAgent as CallableToolAgent, type CallableToolCadenyaProvidedTool as CallableToolCadenyaProvidedTool, type CallableToolTool as CallableToolTool, type ContextLengths as ContextLengths, type ContextWindowCompacted as ContextWindowCompacted, type MemoryRead as MemoryRead, type MemoryReference as MemoryReference, type Objective as Objective, type ObjectiveConfigSnapshot as ObjectiveConfigSnapshot, type ObjectiveContextWindow as ObjectiveContextWindow, type ObjectiveContextWindowData as ObjectiveContextWindowData, type ObjectiveDiagnostics as ObjectiveDiagnostics, type ObjectiveError as ObjectiveError, type ObjectiveEvent as ObjectiveEvent, type ObjectiveEventData as ObjectiveEventData, type ObjectiveEventDataAssistantMessage as ObjectiveEventDataAssistantMessage, type ObjectiveEventDataCancelled as ObjectiveEventDataCancelled, type ObjectiveEventDataContextWindowCompacted as ObjectiveEventDataContextWindowCompacted, type ObjectiveEventDataError as ObjectiveEventDataError, type ObjectiveEventDataFinalized as ObjectiveEventDataFinalized, type ObjectiveEventDataMemoryRead as ObjectiveEventDataMemoryRead, type ObjectiveEventDataNotice as ObjectiveEventDataNotice, type ObjectiveEventDataReasoning as ObjectiveEventDataReasoning, type ObjectiveEventDataSubAgentSpawned as ObjectiveEventDataSubAgentSpawned, type ObjectiveEventDataSubAgentUpdated as ObjectiveEventDataSubAgentUpdated, type ObjectiveEventDataTimedOut as ObjectiveEventDataTimedOut, type ObjectiveEventDataToolApprovalRequested as ObjectiveEventDataToolApprovalRequested, type ObjectiveEventDataToolApproved as ObjectiveEventDataToolApproved, type ObjectiveEventDataToolCalled as ObjectiveEventDataToolCalled, type ObjectiveEventDataToolDenied as ObjectiveEventDataToolDenied, type ObjectiveEventDataToolError as ObjectiveEventDataToolError, type ObjectiveEventDataToolResult as ObjectiveEventDataToolResult, type ObjectiveEventDataUserMessage as ObjectiveEventDataUserMessage, type ObjectiveEventInfo as ObjectiveEventInfo, type ObjectiveEventWebhookData as ObjectiveEventWebhookData, type ObjectiveInfo as ObjectiveInfo, type ObjectiveSecret as ObjectiveSecret, type Reasoning as Reasoning, type SubAgentSpawned as SubAgentSpawned, type SubAgentUpdated as SubAgentUpdated, type ToolApprovalRequested as ToolApprovalRequested, type ToolApproved as ToolApproved, type ToolCalled as ToolCalled, type ToolDenied as ToolDenied, type ToolError as ToolError, type ToolResult as ToolResult, type UserMessage as UserMessage, type ObjectiveCompactResponse as ObjectiveCompactResponse, type ObjectiveRetrieveDiagnosticsResponse as ObjectiveRetrieveDiagnosticsResponse, type ObjectivesCursorPagination as ObjectivesCursorPagination, type ObjectiveContextWindowsCursorPagination as ObjectiveContextWindowsCursorPagination, type ObjectiveEventsCursorPagination as ObjectiveEventsCursorPagination, type ObjectiveCreateParams as ObjectiveCreateParams, type ObjectiveRetrieveParams as ObjectiveRetrieveParams, type ObjectiveListParams as ObjectiveListParams, type ObjectiveCancelParams as ObjectiveCancelParams, type ObjectiveCompactParams as ObjectiveCompactParams, type ObjectiveContinueParams as ObjectiveContinueParams, type ObjectiveListContextWindowsParams as ObjectiveListContextWindowsParams, type ObjectiveListEventsParams as ObjectiveListEventsParams, type ObjectiveRetrieveDiagnosticsParams as ObjectiveRetrieveDiagnosticsParams, type ObjectiveStreamEventsParams as ObjectiveStreamEventsParams, };
|
|
1275
|
-
export { Tools as Tools, type ObjectiveTool as ObjectiveTool, type ObjectiveToolsCursorPagination as ObjectiveToolsCursorPagination, type ToolListParams as ToolListParams, };
|
|
1276
|
-
export { ToolCalls as ToolCalls, type ObjectiveToolCall as ObjectiveToolCall, type ObjectiveToolCallData as ObjectiveToolCallData, type ObjectiveToolCallInfo as ObjectiveToolCallInfo, type ObjectiveToolCallResult as ObjectiveToolCallResult, type ObjectiveToolCallResultAudioBlock as ObjectiveToolCallResultAudioBlock, type ObjectiveToolCallResultContentBlock as ObjectiveToolCallResultContentBlock, type ObjectiveToolCallResultContentBlockAudio as ObjectiveToolCallResultContentBlockAudio, type ObjectiveToolCallResultContentBlockImage as ObjectiveToolCallResultContentBlockImage, type ObjectiveToolCallResultContentBlockText as ObjectiveToolCallResultContentBlockText, type ObjectiveToolCallResultImageBlock as ObjectiveToolCallResultImageBlock, type ObjectiveToolCallResultTextBlock as ObjectiveToolCallResultTextBlock, type ObjectiveToolCallWithResult as ObjectiveToolCallWithResult, type ResolvedSecret as ResolvedSecret, type SetToolCallContentRequestAudioBlock as SetToolCallContentRequestAudioBlock, type SetToolCallContentRequestContentBlock as SetToolCallContentRequestContentBlock, type SetToolCallContentRequestContentBlockAudio as SetToolCallContentRequestContentBlockAudio, type SetToolCallContentRequestContentBlockImage as SetToolCallContentRequestContentBlockImage, type SetToolCallContentRequestContentBlockText as SetToolCallContentRequestContentBlockText, type SetToolCallContentRequestImageBlock as SetToolCallContentRequestImageBlock, type SetToolCallContentRequestTextBlock as SetToolCallContentRequestTextBlock, type ObjectiveToolCallsCursorPagination as ObjectiveToolCallsCursorPagination, type ToolCallRetrieveParams as ToolCallRetrieveParams, type ToolCallListParams as ToolCallListParams, type ToolCallApproveParams as ToolCallApproveParams, type ToolCallDenyParams as ToolCallDenyParams, type ToolCallSetContentParams as ToolCallSetContentParams, };
|
|
1277
|
-
export { Tasks as Tasks, type ObjectiveTask as ObjectiveTask, type ObjectiveTaskData as ObjectiveTaskData, type ObjectiveTasksCursorPagination as ObjectiveTasksCursorPagination, type TaskRetrieveParams as TaskRetrieveParams, type TaskListParams as TaskListParams, };
|
|
1278
|
-
export { Feedback as Feedback, type ObjectiveFeedback as ObjectiveFeedback, type ObjectiveFeedbackData as ObjectiveFeedbackData, type ObjectiveFeedbackInfo as ObjectiveFeedbackInfo, type ObjectiveFeedbacksCursorPagination as ObjectiveFeedbacksCursorPagination, type FeedbackCreateParams as FeedbackCreateParams, type FeedbackListParams as FeedbackListParams, };
|
|
1279
|
-
}
|
|
1280
|
-
//# sourceMappingURL=objectives.d.mts.map
|