@puku-ai/sdk 4.0.0 → 4.0.2
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 +29 -10
- package/dist/index.d.ts +26 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -0
- package/dist/vendor/_vendor/partial-json-parser/parser.d.ts +2 -0
- package/dist/vendor/_vendor/partial-json-parser/parser.js +223 -0
- package/dist/vendor/_vendor/partial-json-parser/parser.js.map +1 -0
- package/dist/vendor/api-promise.d.ts +2 -0
- package/dist/vendor/api-promise.js +3 -0
- package/dist/vendor/api-promise.js.map +1 -0
- package/dist/vendor/client.d.ts +399 -0
- package/dist/vendor/client.js +976 -0
- package/dist/vendor/client.js.map +1 -0
- package/dist/vendor/core/api-promise.d.ts +49 -0
- package/dist/vendor/core/api-promise.js +77 -0
- package/dist/vendor/core/api-promise.js.map +1 -0
- package/dist/vendor/core/api.d.ts +10 -0
- package/dist/vendor/core/api.js +2 -0
- package/dist/vendor/core/api.js.map +1 -0
- package/dist/vendor/core/credentials.d.ts +130 -0
- package/dist/vendor/core/credentials.js +274 -0
- package/dist/vendor/core/credentials.js.map +1 -0
- package/dist/vendor/core/error.d.ts +82 -0
- package/dist/vendor/core/error.js +140 -0
- package/dist/vendor/core/error.js.map +1 -0
- package/dist/vendor/core/middleware.d.ts +153 -0
- package/dist/vendor/core/middleware.js +168 -0
- package/dist/vendor/core/middleware.js.map +1 -0
- package/dist/vendor/core/pagination.d.ts +121 -0
- package/dist/vendor/core/pagination.js +207 -0
- package/dist/vendor/core/pagination.js.map +1 -0
- package/dist/vendor/core/resource.d.ts +5 -0
- package/dist/vendor/core/resource.js +8 -0
- package/dist/vendor/core/resource.js.map +1 -0
- package/dist/vendor/core/streaming.d.ts +41 -0
- package/dist/vendor/core/streaming.js +342 -0
- package/dist/vendor/core/streaming.js.map +1 -0
- package/dist/vendor/core/uploads.d.ts +2 -0
- package/dist/vendor/core/uploads.js +2 -0
- package/dist/vendor/core/uploads.js.map +1 -0
- package/dist/vendor/error.d.ts +2 -0
- package/dist/vendor/error.js +3 -0
- package/dist/vendor/error.js.map +1 -0
- package/dist/vendor/helpers/beta/environments.d.ts +22 -0
- package/dist/vendor/helpers/beta/environments.js +23 -0
- package/dist/vendor/helpers/beta/environments.js.map +1 -0
- package/dist/vendor/helpers/beta/json-schema.d.ts +36 -0
- package/dist/vendor/helpers/beta/json-schema.js +53 -0
- package/dist/vendor/helpers/beta/json-schema.js.map +1 -0
- package/dist/vendor/helpers/beta/mcp.d.ts +302 -0
- package/dist/vendor/helpers/beta/mcp.js +406 -0
- package/dist/vendor/helpers/beta/mcp.js.map +1 -0
- package/dist/vendor/helpers/beta/memory.d.ts +10 -0
- package/dist/vendor/helpers/beta/memory.js +15 -0
- package/dist/vendor/helpers/beta/memory.js.map +1 -0
- package/dist/vendor/helpers/beta/standard-schema.d.ts +44 -0
- package/dist/vendor/helpers/beta/standard-schema.js +54 -0
- package/dist/vendor/helpers/beta/standard-schema.js.map +1 -0
- package/dist/vendor/helpers/beta/zod.d.ts +32 -0
- package/dist/vendor/helpers/beta/zod.js +52 -0
- package/dist/vendor/helpers/beta/zod.js.map +1 -0
- package/dist/vendor/helpers/index.d.ts +2 -0
- package/dist/vendor/helpers/index.js +3 -0
- package/dist/vendor/helpers/index.js.map +1 -0
- package/dist/vendor/helpers/json-schema.d.ts +17 -0
- package/dist/vendor/helpers/json-schema.js +34 -0
- package/dist/vendor/helpers/json-schema.js.map +1 -0
- package/dist/vendor/helpers/zod.d.ts +12 -0
- package/dist/vendor/helpers/zod.js +42 -0
- package/dist/vendor/helpers/zod.js.map +1 -0
- package/dist/vendor/index.d.ts +16 -0
- package/dist/vendor/index.js +23 -0
- package/dist/vendor/index.js.map +1 -0
- package/dist/vendor/internal/builtin-types.d.ts +72 -0
- package/dist/vendor/internal/builtin-types.js +3 -0
- package/dist/vendor/internal/builtin-types.js.map +1 -0
- package/dist/vendor/internal/constants.d.ts +4 -0
- package/dist/vendor/internal/constants.js +10 -0
- package/dist/vendor/internal/constants.js.map +1 -0
- package/dist/vendor/internal/decoders/jsonl.d.ts +9 -0
- package/dist/vendor/internal/decoders/jsonl.js +37 -0
- package/dist/vendor/internal/decoders/jsonl.js.map +1 -0
- package/dist/vendor/internal/decoders/line.d.ts +16 -0
- package/dist/vendor/internal/decoders/line.js +105 -0
- package/dist/vendor/internal/decoders/line.js.map +1 -0
- package/dist/vendor/internal/detect-platform.d.ts +14 -0
- package/dist/vendor/internal/detect-platform.js +155 -0
- package/dist/vendor/internal/detect-platform.js.map +1 -0
- package/dist/vendor/internal/errors.d.ts +2 -0
- package/dist/vendor/internal/errors.js +38 -0
- package/dist/vendor/internal/errors.js.map +1 -0
- package/dist/vendor/internal/file-store.d.ts +135 -0
- package/dist/vendor/internal/file-store.js +529 -0
- package/dist/vendor/internal/file-store.js.map +1 -0
- package/dist/vendor/internal/headers.d.ts +28 -0
- package/dist/vendor/internal/headers.js +114 -0
- package/dist/vendor/internal/headers.js.map +1 -0
- package/dist/vendor/internal/message-stream-utils.d.ts +9 -0
- package/dist/vendor/internal/message-stream-utils.js +30 -0
- package/dist/vendor/internal/message-stream-utils.js.map +1 -0
- package/dist/vendor/internal/node.browser.d.ts +8 -0
- package/dist/vendor/internal/node.browser.js +19 -0
- package/dist/vendor/internal/node.browser.js.map +1 -0
- package/dist/vendor/internal/node.d.ts +13 -0
- package/dist/vendor/internal/node.js +14 -0
- package/dist/vendor/internal/node.js.map +1 -0
- package/dist/vendor/internal/parse.d.ts +17 -0
- package/dist/vendor/internal/parse.js +62 -0
- package/dist/vendor/internal/parse.js.map +1 -0
- package/dist/vendor/internal/qs/formats.d.ts +6 -0
- package/dist/vendor/internal/qs/formats.js +9 -0
- package/dist/vendor/internal/qs/formats.js.map +1 -0
- package/dist/vendor/internal/qs/index.d.ts +9 -0
- package/dist/vendor/internal/qs/index.js +10 -0
- package/dist/vendor/internal/qs/index.js.map +1 -0
- package/dist/vendor/internal/qs/stringify.d.ts +2 -0
- package/dist/vendor/internal/qs/stringify.js +274 -0
- package/dist/vendor/internal/qs/stringify.js.map +1 -0
- package/dist/vendor/internal/qs/types.d.ts +56 -0
- package/dist/vendor/internal/qs/types.js +2 -0
- package/dist/vendor/internal/qs/types.js.map +1 -0
- package/dist/vendor/internal/qs/utils.d.ts +14 -0
- package/dist/vendor/internal/qs/utils.js +217 -0
- package/dist/vendor/internal/qs/utils.js.map +1 -0
- package/dist/vendor/internal/request-options.d.ts +126 -0
- package/dist/vendor/internal/request-options.js +27 -0
- package/dist/vendor/internal/request-options.js.map +1 -0
- package/dist/vendor/internal/request-signal.d.ts +3 -0
- package/dist/vendor/internal/request-signal.js +45 -0
- package/dist/vendor/internal/request-signal.js.map +1 -0
- package/dist/vendor/internal/shim-types.d.ts +16 -0
- package/dist/vendor/internal/shim-types.js +3 -0
- package/dist/vendor/internal/shim-types.js.map +1 -0
- package/dist/vendor/internal/shims.d.ts +25 -0
- package/dist/vendor/internal/shims.js +85 -0
- package/dist/vendor/internal/shims.js.map +1 -0
- package/dist/vendor/internal/stainless-helper-header.d.ts +59 -0
- package/dist/vendor/internal/stainless-helper-header.js +83 -0
- package/dist/vendor/internal/stainless-helper-header.js.map +1 -0
- package/dist/vendor/internal/stream-utils.d.ts +7 -0
- package/dist/vendor/internal/stream-utils.js +35 -0
- package/dist/vendor/internal/stream-utils.js.map +1 -0
- package/dist/vendor/internal/to-file.d.ts +44 -0
- package/dist/vendor/internal/to-file.js +93 -0
- package/dist/vendor/internal/to-file.js.map +1 -0
- package/dist/vendor/internal/types.d.ts +62 -0
- package/dist/vendor/internal/types.js +3 -0
- package/dist/vendor/internal/types.js.map +1 -0
- package/dist/vendor/internal/uploads.d.ts +41 -0
- package/dist/vendor/internal/uploads.js +139 -0
- package/dist/vendor/internal/uploads.js.map +1 -0
- package/dist/vendor/internal/utils/abort.d.ts +11 -0
- package/dist/vendor/internal/utils/abort.js +22 -0
- package/dist/vendor/internal/utils/abort.js.map +1 -0
- package/dist/vendor/internal/utils/async-queue.d.ts +30 -0
- package/dist/vendor/internal/utils/async-queue.js +66 -0
- package/dist/vendor/internal/utils/async-queue.js.map +1 -0
- package/dist/vendor/internal/utils/backoff.d.ts +22 -0
- package/dist/vendor/internal/utils/backoff.js +36 -0
- package/dist/vendor/internal/utils/backoff.js.map +1 -0
- package/dist/vendor/internal/utils/base64.d.ts +2 -0
- package/dist/vendor/internal/utils/base64.js +33 -0
- package/dist/vendor/internal/utils/base64.js.map +1 -0
- package/dist/vendor/internal/utils/bytes.d.ts +3 -0
- package/dist/vendor/internal/utils/bytes.js +26 -0
- package/dist/vendor/internal/utils/bytes.js.map +1 -0
- package/dist/vendor/internal/utils/env.d.ts +8 -0
- package/dist/vendor/internal/utils/env.js +18 -0
- package/dist/vendor/internal/utils/env.js.map +1 -0
- package/dist/vendor/internal/utils/log.d.ts +46 -0
- package/dist/vendor/internal/utils/log.js +105 -0
- package/dist/vendor/internal/utils/log.js.map +1 -0
- package/dist/vendor/internal/utils/path.d.ts +14 -0
- package/dist/vendor/internal/utils/path.js +74 -0
- package/dist/vendor/internal/utils/path.js.map +1 -0
- package/dist/vendor/internal/utils/promise.d.ts +10 -0
- package/dist/vendor/internal/utils/promise.js +15 -0
- package/dist/vendor/internal/utils/promise.js.map +1 -0
- package/dist/vendor/internal/utils/query.d.ts +1 -0
- package/dist/vendor/internal/utils/query.js +6 -0
- package/dist/vendor/internal/utils/query.js.map +1 -0
- package/dist/vendor/internal/utils/sleep.d.ts +9 -0
- package/dist/vendor/internal/utils/sleep.js +24 -0
- package/dist/vendor/internal/utils/sleep.js.map +1 -0
- package/dist/vendor/internal/utils/time.d.ts +2 -0
- package/dist/vendor/internal/utils/time.js +5 -0
- package/dist/vendor/internal/utils/time.js.map +1 -0
- package/dist/vendor/internal/utils/uuid.d.ts +4 -0
- package/dist/vendor/internal/utils/uuid.js +15 -0
- package/dist/vendor/internal/utils/uuid.js.map +1 -0
- package/dist/vendor/internal/utils/values.d.ts +24 -0
- package/dist/vendor/internal/utils/values.js +106 -0
- package/dist/vendor/internal/utils/values.js.map +1 -0
- package/dist/vendor/internal/utils.d.ts +7 -0
- package/dist/vendor/internal/utils.js +9 -0
- package/dist/vendor/internal/utils.js.map +1 -0
- package/dist/vendor/lib/BetaMessageStream.d.ts +123 -0
- package/dist/vendor/lib/BetaMessageStream.js +662 -0
- package/dist/vendor/lib/BetaMessageStream.js.map +1 -0
- package/dist/vendor/lib/MessageStream.d.ts +122 -0
- package/dist/vendor/lib/MessageStream.js +609 -0
- package/dist/vendor/lib/MessageStream.js.map +1 -0
- package/dist/vendor/lib/beta-parser.d.ts +36 -0
- package/dist/vendor/lib/beta-parser.js +75 -0
- package/dist/vendor/lib/beta-parser.js.map +1 -0
- package/dist/vendor/lib/credentials/credential-chain.d.ts +38 -0
- package/dist/vendor/lib/credentials/credential-chain.js +208 -0
- package/dist/vendor/lib/credentials/credential-chain.js.map +1 -0
- package/dist/vendor/lib/credentials/identity-token.d.ts +10 -0
- package/dist/vendor/lib/credentials/identity-token.js +35 -0
- package/dist/vendor/lib/credentials/identity-token.js.map +1 -0
- package/dist/vendor/lib/credentials/oidc-federation.d.ts +39 -0
- package/dist/vendor/lib/credentials/oidc-federation.js +79 -0
- package/dist/vendor/lib/credentials/oidc-federation.js.map +1 -0
- package/dist/vendor/lib/credentials/token-cache.d.ts +53 -0
- package/dist/vendor/lib/credentials/token-cache.js +110 -0
- package/dist/vendor/lib/credentials/token-cache.js.map +1 -0
- package/dist/vendor/lib/credentials/types.d.ts +95 -0
- package/dist/vendor/lib/credentials/types.js +226 -0
- package/dist/vendor/lib/credentials/types.js.map +1 -0
- package/dist/vendor/lib/credentials/user-oauth.d.ts +20 -0
- package/dist/vendor/lib/credentials/user-oauth.js +94 -0
- package/dist/vendor/lib/credentials/user-oauth.js.map +1 -0
- package/dist/vendor/lib/credentials.d.ts +3 -0
- package/dist/vendor/lib/credentials.js +3 -0
- package/dist/vendor/lib/credentials.js.map +1 -0
- package/dist/vendor/lib/environments/index.d.ts +3 -0
- package/dist/vendor/lib/environments/index.js +4 -0
- package/dist/vendor/lib/environments/index.js.map +1 -0
- package/dist/vendor/lib/environments/poller.d.ts +94 -0
- package/dist/vendor/lib/environments/poller.js +218 -0
- package/dist/vendor/lib/environments/poller.js.map +1 -0
- package/dist/vendor/lib/environments/worker.d.ts +226 -0
- package/dist/vendor/lib/environments/worker.js +572 -0
- package/dist/vendor/lib/environments/worker.js.map +1 -0
- package/dist/vendor/lib/helper-client.d.ts +30 -0
- package/dist/vendor/lib/helper-client.js +55 -0
- package/dist/vendor/lib/helper-client.js.map +1 -0
- package/dist/vendor/lib/middleware.d.ts +97 -0
- package/dist/vendor/lib/middleware.js +775 -0
- package/dist/vendor/lib/middleware.js.map +1 -0
- package/dist/vendor/lib/parser.d.ts +31 -0
- package/dist/vendor/lib/parser.js +62 -0
- package/dist/vendor/lib/parser.js.map +1 -0
- package/dist/vendor/lib/sessions/accumulate.d.ts +22 -0
- package/dist/vendor/lib/sessions/accumulate.js +42 -0
- package/dist/vendor/lib/sessions/accumulate.js.map +1 -0
- package/dist/vendor/lib/standard-schema.d.ts +130 -0
- package/dist/vendor/lib/standard-schema.js +41 -0
- package/dist/vendor/lib/standard-schema.js.map +1 -0
- package/dist/vendor/lib/tools/BetaRunnableTool.d.ts +48 -0
- package/dist/vendor/lib/tools/BetaRunnableTool.js +26 -0
- package/dist/vendor/lib/tools/BetaRunnableTool.js.map +1 -0
- package/dist/vendor/lib/tools/BetaToolRunner.d.ts +160 -0
- package/dist/vendor/lib/tools/BetaToolRunner.js +497 -0
- package/dist/vendor/lib/tools/BetaToolRunner.js.map +1 -0
- package/dist/vendor/lib/tools/CompactionControl.d.ts +29 -0
- package/dist/vendor/lib/tools/CompactionControl.js +25 -0
- package/dist/vendor/lib/tools/CompactionControl.js.map +1 -0
- package/dist/vendor/lib/tools/SessionToolRunner.d.ts +178 -0
- package/dist/vendor/lib/tools/SessionToolRunner.js +737 -0
- package/dist/vendor/lib/tools/SessionToolRunner.js.map +1 -0
- package/dist/vendor/lib/tools/ToolError.d.ts +32 -0
- package/dist/vendor/lib/tools/ToolError.js +43 -0
- package/dist/vendor/lib/tools/ToolError.js.map +1 -0
- package/dist/vendor/lib/transform-json-schema.d.ts +2 -0
- package/dist/vendor/lib/transform-json-schema.js +111 -0
- package/dist/vendor/lib/transform-json-schema.js.map +1 -0
- package/dist/vendor/pagination.d.ts +2 -0
- package/dist/vendor/pagination.js +3 -0
- package/dist/vendor/pagination.js.map +1 -0
- package/dist/vendor/resource.d.ts +2 -0
- package/dist/vendor/resource.js +3 -0
- package/dist/vendor/resource.js.map +1 -0
- package/dist/vendor/resources/beta/agents/agents.d.ts +1128 -0
- package/dist/vendor/resources/beta/agents/agents.js +123 -0
- package/dist/vendor/resources/beta/agents/agents.js.map +1 -0
- package/dist/vendor/resources/beta/agents/index.d.ts +2 -0
- package/dist/vendor/resources/beta/agents/index.js +4 -0
- package/dist/vendor/resources/beta/agents/index.js.map +1 -0
- package/dist/vendor/resources/beta/agents/versions.d.ts +32 -0
- package/dist/vendor/resources/beta/agents/versions.js +32 -0
- package/dist/vendor/resources/beta/agents/versions.js.map +1 -0
- package/dist/vendor/resources/beta/agents.d.ts +1 -0
- package/dist/vendor/resources/beta/agents.js +3 -0
- package/dist/vendor/resources/beta/agents.js.map +1 -0
- package/dist/vendor/resources/beta/beta.d.ts +131 -0
- package/dist/vendor/resources/beta/beta.js +69 -0
- package/dist/vendor/resources/beta/beta.js.map +1 -0
- package/dist/vendor/resources/beta/deployment-runs.d.ts +305 -0
- package/dist/vendor/resources/beta/deployment-runs.js +51 -0
- package/dist/vendor/resources/beta/deployment-runs.js.map +1 -0
- package/dist/vendor/resources/beta/deployments.d.ts +698 -0
- package/dist/vendor/resources/beta/deployments.js +192 -0
- package/dist/vendor/resources/beta/deployments.js.map +1 -0
- package/dist/vendor/resources/beta/dreams.d.ts +335 -0
- package/dist/vendor/resources/beta/dreams.js +112 -0
- package/dist/vendor/resources/beta/dreams.js.map +1 -0
- package/dist/vendor/resources/beta/environments/environments.d.ts +432 -0
- package/dist/vendor/resources/beta/environments/environments.js +142 -0
- package/dist/vendor/resources/beta/environments/environments.js.map +1 -0
- package/dist/vendor/resources/beta/environments/index.d.ts +2 -0
- package/dist/vendor/resources/beta/environments/index.js +4 -0
- package/dist/vendor/resources/beta/environments/index.js.map +1 -0
- package/dist/vendor/resources/beta/environments/work.d.ts +500 -0
- package/dist/vendor/resources/beta/environments/work.js +251 -0
- package/dist/vendor/resources/beta/environments/work.js.map +1 -0
- package/dist/vendor/resources/beta/environments.d.ts +1 -0
- package/dist/vendor/resources/beta/environments.js +3 -0
- package/dist/vendor/resources/beta/environments.js.map +1 -0
- package/dist/vendor/resources/beta/files.d.ts +190 -0
- package/dist/vendor/resources/beta/files.js +120 -0
- package/dist/vendor/resources/beta/files.js.map +1 -0
- package/dist/vendor/resources/beta/index.d.ts +17 -0
- package/dist/vendor/resources/beta/index.js +19 -0
- package/dist/vendor/resources/beta/index.js.map +1 -0
- package/dist/vendor/resources/beta/memory-stores/index.d.ts +3 -0
- package/dist/vendor/resources/beta/memory-stores/index.js +5 -0
- package/dist/vendor/resources/beta/memory-stores/index.js.map +1 -0
- package/dist/vendor/resources/beta/memory-stores/memories.d.ts +346 -0
- package/dist/vendor/resources/beta/memory-stores/memories.js +126 -0
- package/dist/vendor/resources/beta/memory-stores/memories.js.map +1 -0
- package/dist/vendor/resources/beta/memory-stores/memory-stores.d.ts +230 -0
- package/dist/vendor/resources/beta/memory-stores/memory-stores.js +137 -0
- package/dist/vendor/resources/beta/memory-stores/memory-stores.js.map +1 -0
- package/dist/vendor/resources/beta/memory-stores/memory-versions.d.ts +252 -0
- package/dist/vendor/resources/beta/memory-stores/memory-versions.js +77 -0
- package/dist/vendor/resources/beta/memory-stores/memory-versions.js.map +1 -0
- package/dist/vendor/resources/beta/memory-stores.d.ts +1 -0
- package/dist/vendor/resources/beta/memory-stores.js +3 -0
- package/dist/vendor/resources/beta/memory-stores.js.map +1 -0
- package/dist/vendor/resources/beta/messages/batches.d.ts +685 -0
- package/dist/vendor/resources/beta/messages/batches.js +203 -0
- package/dist/vendor/resources/beta/messages/batches.js.map +1 -0
- package/dist/vendor/resources/beta/messages/index.d.ts +3 -0
- package/dist/vendor/resources/beta/messages/index.js +5 -0
- package/dist/vendor/resources/beta/messages/index.js.map +1 -0
- package/dist/vendor/resources/beta/messages/messages.d.ts +5376 -0
- package/dist/vendor/resources/beta/messages/messages.js +158 -0
- package/dist/vendor/resources/beta/messages/messages.js.map +1 -0
- package/dist/vendor/resources/beta/messages.d.ts +1 -0
- package/dist/vendor/resources/beta/messages.js +3 -0
- package/dist/vendor/resources/beta/messages.js.map +1 -0
- package/dist/vendor/resources/beta/models.d.ts +217 -0
- package/dist/vendor/resources/beta/models.js +56 -0
- package/dist/vendor/resources/beta/models.js.map +1 -0
- package/dist/vendor/resources/beta/organization/api-keys.d.ts +176 -0
- package/dist/vendor/resources/beta/organization/api-keys.js +52 -0
- package/dist/vendor/resources/beta/organization/api-keys.js.map +1 -0
- package/dist/vendor/resources/beta/organization/compliance-settings.d.ts +73 -0
- package/dist/vendor/resources/beta/organization/compliance-settings.js +48 -0
- package/dist/vendor/resources/beta/organization/compliance-settings.js.map +1 -0
- package/dist/vendor/resources/beta/organization/external-keys.d.ts +271 -0
- package/dist/vendor/resources/beta/organization/external-keys.js +115 -0
- package/dist/vendor/resources/beta/organization/external-keys.js.map +1 -0
- package/dist/vendor/resources/beta/organization/federation/federation.d.ts +13 -0
- package/dist/vendor/resources/beta/organization/federation/federation.js +13 -0
- package/dist/vendor/resources/beta/organization/federation/federation.js.map +1 -0
- package/dist/vendor/resources/beta/organization/federation/index.d.ts +3 -0
- package/dist/vendor/resources/beta/organization/federation/index.js +5 -0
- package/dist/vendor/resources/beta/organization/federation/index.js.map +1 -0
- package/dist/vendor/resources/beta/organization/federation/issuers.d.ts +352 -0
- package/dist/vendor/resources/beta/organization/federation/issuers.js +165 -0
- package/dist/vendor/resources/beta/organization/federation/issuers.js.map +1 -0
- package/dist/vendor/resources/beta/organization/federation/rules/index.d.ts +2 -0
- package/dist/vendor/resources/beta/organization/federation/rules/index.js +4 -0
- package/dist/vendor/resources/beta/organization/federation/rules/index.js.map +1 -0
- package/dist/vendor/resources/beta/organization/federation/rules/rules.d.ts +467 -0
- package/dist/vendor/resources/beta/organization/federation/rules/rules.js +190 -0
- package/dist/vendor/resources/beta/organization/federation/rules/rules.js.map +1 -0
- package/dist/vendor/resources/beta/organization/federation/rules/workspaces.d.ts +123 -0
- package/dist/vendor/resources/beta/organization/federation/rules/workspaces.js +110 -0
- package/dist/vendor/resources/beta/organization/federation/rules/workspaces.js.map +1 -0
- package/dist/vendor/resources/beta/organization/federation/rules.d.ts +1 -0
- package/dist/vendor/resources/beta/organization/federation/rules.js +3 -0
- package/dist/vendor/resources/beta/organization/federation/rules.js.map +1 -0
- package/dist/vendor/resources/beta/organization/federation.d.ts +1 -0
- package/dist/vendor/resources/beta/organization/federation.js +3 -0
- package/dist/vendor/resources/beta/organization/federation.js.map +1 -0
- package/dist/vendor/resources/beta/organization/index.d.ts +10 -0
- package/dist/vendor/resources/beta/organization/index.js +12 -0
- package/dist/vendor/resources/beta/organization/index.js.map +1 -0
- package/dist/vendor/resources/beta/organization/invites.d.ts +161 -0
- package/dist/vendor/resources/beta/organization/invites.js +72 -0
- package/dist/vendor/resources/beta/organization/invites.js.map +1 -0
- package/dist/vendor/resources/beta/organization/organization.d.ts +72 -0
- package/dist/vendor/resources/beta/organization/organization.js +54 -0
- package/dist/vendor/resources/beta/organization/organization.js.map +1 -0
- package/dist/vendor/resources/beta/organization/rate-limits.d.ts +76 -0
- package/dist/vendor/resources/beta/organization/rate-limits.js +27 -0
- package/dist/vendor/resources/beta/organization/rate-limits.js.map +1 -0
- package/dist/vendor/resources/beta/organization/service-accounts/index.d.ts +2 -0
- package/dist/vendor/resources/beta/organization/service-accounts/index.js +4 -0
- package/dist/vendor/resources/beta/organization/service-accounts/index.js.map +1 -0
- package/dist/vendor/resources/beta/organization/service-accounts/service-accounts.d.ts +257 -0
- package/dist/vendor/resources/beta/organization/service-accounts/service-accounts.js +166 -0
- package/dist/vendor/resources/beta/organization/service-accounts/service-accounts.js.map +1 -0
- package/dist/vendor/resources/beta/organization/service-accounts/workspaces.d.ts +140 -0
- package/dist/vendor/resources/beta/organization/service-accounts/workspaces.js +121 -0
- package/dist/vendor/resources/beta/organization/service-accounts/workspaces.js.map +1 -0
- package/dist/vendor/resources/beta/organization/service-accounts.d.ts +1 -0
- package/dist/vendor/resources/beta/organization/service-accounts.js +3 -0
- package/dist/vendor/resources/beta/organization/service-accounts.js.map +1 -0
- package/dist/vendor/resources/beta/organization/users.d.ts +123 -0
- package/dist/vendor/resources/beta/organization/users.js +63 -0
- package/dist/vendor/resources/beta/organization/users.js.map +1 -0
- package/dist/vendor/resources/beta/organization/workspaces/index.d.ts +4 -0
- package/dist/vendor/resources/beta/organization/workspaces/index.js +6 -0
- package/dist/vendor/resources/beta/organization/workspaces/index.js.map +1 -0
- package/dist/vendor/resources/beta/organization/workspaces/members.d.ts +134 -0
- package/dist/vendor/resources/beta/organization/workspaces/members.js +98 -0
- package/dist/vendor/resources/beta/organization/workspaces/members.js.map +1 -0
- package/dist/vendor/resources/beta/organization/workspaces/rate-limits.d.ts +82 -0
- package/dist/vendor/resources/beta/organization/workspaces/rate-limits.js +30 -0
- package/dist/vendor/resources/beta/organization/workspaces/rate-limits.js.map +1 -0
- package/dist/vendor/resources/beta/organization/workspaces/service-accounts.d.ts +209 -0
- package/dist/vendor/resources/beta/organization/workspaces/service-accounts.js +185 -0
- package/dist/vendor/resources/beta/organization/workspaces/service-accounts.js.map +1 -0
- package/dist/vendor/resources/beta/organization/workspaces/workspaces.d.ts +302 -0
- package/dist/vendor/resources/beta/organization/workspaces/workspaces.js +104 -0
- package/dist/vendor/resources/beta/organization/workspaces/workspaces.js.map +1 -0
- package/dist/vendor/resources/beta/organization/workspaces.d.ts +1 -0
- package/dist/vendor/resources/beta/organization/workspaces.js +3 -0
- package/dist/vendor/resources/beta/organization/workspaces.js.map +1 -0
- package/dist/vendor/resources/beta/organization.d.ts +1 -0
- package/dist/vendor/resources/beta/organization.js +3 -0
- package/dist/vendor/resources/beta/organization.js.map +1 -0
- package/dist/vendor/resources/beta/sessions/events.d.ts +1513 -0
- package/dist/vendor/resources/beta/sessions/events.js +115 -0
- package/dist/vendor/resources/beta/sessions/events.js.map +1 -0
- package/dist/vendor/resources/beta/sessions/index.d.ts +4 -0
- package/dist/vendor/resources/beta/sessions/index.js +6 -0
- package/dist/vendor/resources/beta/sessions/index.js.map +1 -0
- package/dist/vendor/resources/beta/sessions/resources.d.ts +227 -0
- package/dist/vendor/resources/beta/sessions/resources.js +128 -0
- package/dist/vendor/resources/beta/sessions/resources.js.map +1 -0
- package/dist/vendor/resources/beta/sessions/sessions.d.ts +866 -0
- package/dist/vendor/resources/beta/sessions/sessions.js +150 -0
- package/dist/vendor/resources/beta/sessions/sessions.js.map +1 -0
- package/dist/vendor/resources/beta/sessions/threads/events.d.ts +77 -0
- package/dist/vendor/resources/beta/sessions/threads/events.js +57 -0
- package/dist/vendor/resources/beta/sessions/threads/events.js.map +1 -0
- package/dist/vendor/resources/beta/sessions/threads/index.d.ts +2 -0
- package/dist/vendor/resources/beta/sessions/threads/index.js +4 -0
- package/dist/vendor/resources/beta/sessions/threads/index.js.map +1 -0
- package/dist/vendor/resources/beta/sessions/threads/threads.d.ts +195 -0
- package/dist/vendor/resources/beta/sessions/threads/threads.js +80 -0
- package/dist/vendor/resources/beta/sessions/threads/threads.js.map +1 -0
- package/dist/vendor/resources/beta/sessions/threads.d.ts +1 -0
- package/dist/vendor/resources/beta/sessions/threads.js +3 -0
- package/dist/vendor/resources/beta/sessions/threads.js.map +1 -0
- package/dist/vendor/resources/beta/sessions.d.ts +1 -0
- package/dist/vendor/resources/beta/sessions.js +3 -0
- package/dist/vendor/resources/beta/sessions.js.map +1 -0
- package/dist/vendor/resources/beta/skills/index.d.ts +2 -0
- package/dist/vendor/resources/beta/skills/index.js +4 -0
- package/dist/vendor/resources/beta/skills/index.js.map +1 -0
- package/dist/vendor/resources/beta/skills/skills.d.ts +178 -0
- package/dist/vendor/resources/beta/skills/skills.js +96 -0
- package/dist/vendor/resources/beta/skills/skills.js.map +1 -0
- package/dist/vendor/resources/beta/skills/versions.d.ts +181 -0
- package/dist/vendor/resources/beta/skills/versions.js +125 -0
- package/dist/vendor/resources/beta/skills/versions.js.map +1 -0
- package/dist/vendor/resources/beta/skills.d.ts +1 -0
- package/dist/vendor/resources/beta/skills.js +3 -0
- package/dist/vendor/resources/beta/skills.js.map +1 -0
- package/dist/vendor/resources/beta/tunnels/certificates.d.ts +162 -0
- package/dist/vendor/resources/beta/tunnels/certificates.js +125 -0
- package/dist/vendor/resources/beta/tunnels/certificates.js.map +1 -0
- package/dist/vendor/resources/beta/tunnels/index.d.ts +2 -0
- package/dist/vendor/resources/beta/tunnels/index.js +4 -0
- package/dist/vendor/resources/beta/tunnels/index.js.map +1 -0
- package/dist/vendor/resources/beta/tunnels/tunnels.d.ts +211 -0
- package/dist/vendor/resources/beta/tunnels/tunnels.js +173 -0
- package/dist/vendor/resources/beta/tunnels/tunnels.js.map +1 -0
- package/dist/vendor/resources/beta/tunnels.d.ts +1 -0
- package/dist/vendor/resources/beta/tunnels.js +3 -0
- package/dist/vendor/resources/beta/tunnels.js.map +1 -0
- package/dist/vendor/resources/beta/user-profiles.d.ts +244 -0
- package/dist/vendor/resources/beta/user-profiles.js +114 -0
- package/dist/vendor/resources/beta/user-profiles.js.map +1 -0
- package/dist/vendor/resources/beta/vaults/credentials.d.ts +715 -0
- package/dist/vendor/resources/beta/vaults/credentials.js +173 -0
- package/dist/vendor/resources/beta/vaults/credentials.js.map +1 -0
- package/dist/vendor/resources/beta/vaults/index.d.ts +2 -0
- package/dist/vendor/resources/beta/vaults/index.js +4 -0
- package/dist/vendor/resources/beta/vaults/index.js.map +1 -0
- package/dist/vendor/resources/beta/vaults/vaults.d.ts +191 -0
- package/dist/vendor/resources/beta/vaults/vaults.js +141 -0
- package/dist/vendor/resources/beta/vaults/vaults.js.map +1 -0
- package/dist/vendor/resources/beta/vaults.d.ts +1 -0
- package/dist/vendor/resources/beta/vaults.js +3 -0
- package/dist/vendor/resources/beta/vaults.js.map +1 -0
- package/dist/vendor/resources/beta/webhooks.d.ts +464 -0
- package/dist/vendor/resources/beta/webhooks.js +29 -0
- package/dist/vendor/resources/beta/webhooks.js.map +1 -0
- package/dist/vendor/resources/beta.d.ts +1 -0
- package/dist/vendor/resources/beta.js +3 -0
- package/dist/vendor/resources/beta.js.map +1 -0
- package/dist/vendor/resources/completions.d.ts +172 -0
- package/dist/vendor/resources/completions.js +19 -0
- package/dist/vendor/resources/completions.js.map +1 -0
- package/dist/vendor/resources/files.d.ts +104 -0
- package/dist/vendor/resources/files.js +48 -0
- package/dist/vendor/resources/files.js.map +1 -0
- package/dist/vendor/resources/index.d.ts +7 -0
- package/dist/vendor/resources/index.js +9 -0
- package/dist/vendor/resources/index.js.map +1 -0
- package/dist/vendor/resources/messages/batches.d.ts +312 -0
- package/dist/vendor/resources/messages/batches.js +157 -0
- package/dist/vendor/resources/messages/batches.js.map +1 -0
- package/dist/vendor/resources/messages/index.d.ts +2 -0
- package/dist/vendor/resources/messages/index.js +4 -0
- package/dist/vendor/resources/messages/index.js.map +1 -0
- package/dist/vendor/resources/messages/messages.d.ts +3886 -0
- package/dist/vendor/resources/messages/messages.js +130 -0
- package/dist/vendor/resources/messages/messages.js.map +1 -0
- package/dist/vendor/resources/messages.d.ts +1 -0
- package/dist/vendor/resources/messages.js +3 -0
- package/dist/vendor/resources/messages.js.map +1 -0
- package/dist/vendor/resources/models.d.ts +196 -0
- package/dist/vendor/resources/models.js +41 -0
- package/dist/vendor/resources/models.js.map +1 -0
- package/dist/vendor/resources/shared.d.ts +43 -0
- package/dist/vendor/resources/shared.js +3 -0
- package/dist/vendor/resources/shared.js.map +1 -0
- package/dist/vendor/resources/skills/index.d.ts +2 -0
- package/dist/vendor/resources/skills/index.js +4 -0
- package/dist/vendor/resources/skills/index.js.map +1 -0
- package/dist/vendor/resources/skills/skills.d.ts +128 -0
- package/dist/vendor/resources/skills/skills.js +36 -0
- package/dist/vendor/resources/skills/skills.js.map +1 -0
- package/dist/vendor/resources/skills/versions.d.ts +103 -0
- package/dist/vendor/resources/skills/versions.js +37 -0
- package/dist/vendor/resources/skills/versions.js.map +1 -0
- package/dist/vendor/resources/skills.d.ts +1 -0
- package/dist/vendor/resources/skills.js +3 -0
- package/dist/vendor/resources/skills.js.map +1 -0
- package/dist/vendor/resources/top-level.d.ts +1 -0
- package/dist/vendor/resources/top-level.js +3 -0
- package/dist/vendor/resources/top-level.js.map +1 -0
- package/dist/vendor/resources.d.ts +1 -0
- package/dist/vendor/resources.js +2 -0
- package/dist/vendor/resources.js.map +1 -0
- package/dist/vendor/streaming.d.ts +2 -0
- package/dist/vendor/streaming.js +3 -0
- package/dist/vendor/streaming.js.map +1 -0
- package/dist/vendor/tools/agent-toolset/fs-util.d.ts +74 -0
- package/dist/vendor/tools/agent-toolset/fs-util.js +184 -0
- package/dist/vendor/tools/agent-toolset/fs-util.js.map +1 -0
- package/dist/vendor/tools/agent-toolset/memories.d.ts +172 -0
- package/dist/vendor/tools/agent-toolset/memories.js +910 -0
- package/dist/vendor/tools/agent-toolset/memories.js.map +1 -0
- package/dist/vendor/tools/agent-toolset/node.browser.d.ts +80 -0
- package/dist/vendor/tools/agent-toolset/node.browser.js +129 -0
- package/dist/vendor/tools/agent-toolset/node.browser.js.map +1 -0
- package/dist/vendor/tools/agent-toolset/node.d.ts +191 -0
- package/dist/vendor/tools/agent-toolset/node.js +886 -0
- package/dist/vendor/tools/agent-toolset/node.js.map +1 -0
- package/dist/vendor/tools/agent-toolset/skills.d.ts +73 -0
- package/dist/vendor/tools/agent-toolset/skills.js +320 -0
- package/dist/vendor/tools/agent-toolset/skills.js.map +1 -0
- package/dist/vendor/tools/agent-toolset/sync-interval.d.ts +18 -0
- package/dist/vendor/tools/agent-toolset/sync-interval.js +25 -0
- package/dist/vendor/tools/agent-toolset/sync-interval.js.map +1 -0
- package/dist/vendor/tools/memory/node.browser.d.ts +26 -0
- package/dist/vendor/tools/memory/node.browser.js +44 -0
- package/dist/vendor/tools/memory/node.browser.js.map +1 -0
- package/dist/vendor/tools/memory/node.d.ts +17 -0
- package/dist/vendor/tools/memory/node.js +327 -0
- package/dist/vendor/tools/memory/node.js.map +1 -0
- package/dist/vendor/uploads.d.ts +2 -0
- package/dist/vendor/uploads.js +3 -0
- package/dist/vendor/uploads.js.map +1 -0
- package/dist/vendor/version.d.ts +1 -0
- package/dist/vendor/version.js +2 -0
- package/dist/vendor/version.js.map +1 -0
- package/package.json +7 -14
- package/sdk.cjs +6 -6
- package/sdk.cjs.map +18 -18
- package/sdk.d.ts +10 -10
- package/sdk.mjs +21 -21
- package/sdk.mjs.map +18 -18
|
@@ -0,0 +1,1128 @@
|
|
|
1
|
+
import { APIResource } from '../../../core/resource';
|
|
2
|
+
import * as BetaAPI from '../beta';
|
|
3
|
+
import * as VersionsAPI from './versions';
|
|
4
|
+
import { VersionListParams, Versions } from './versions';
|
|
5
|
+
import * as SessionsAPI from '../sessions/sessions';
|
|
6
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
7
|
+
import { PageCursor, type PageCursorParams, PagePromise } from '../../../core/pagination';
|
|
8
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
9
|
+
export declare class Agents extends APIResource {
|
|
10
|
+
versions: VersionsAPI.Versions;
|
|
11
|
+
/**
|
|
12
|
+
* Create Agent
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const betaManagedAgentsAgent =
|
|
17
|
+
* await client.beta.agents.create({
|
|
18
|
+
* model: 'puku-opus-5',
|
|
19
|
+
* name: 'My First Agent',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
create(params: AgentCreateParams, options?: RequestOptions): APIPromise<BetaManagedAgentsAgent>;
|
|
24
|
+
/**
|
|
25
|
+
* Get Agent
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const betaManagedAgentsAgent =
|
|
30
|
+
* await client.beta.agents.retrieve(
|
|
31
|
+
* 'agent_011CZkYpogX7uDKUyvBTophP',
|
|
32
|
+
* );
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
retrieve(agentID: string, params?: AgentRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<BetaManagedAgentsAgent>;
|
|
36
|
+
/**
|
|
37
|
+
* Update Agent
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const betaManagedAgentsAgent =
|
|
42
|
+
* await client.beta.agents.update(
|
|
43
|
+
* 'agent_011CZkYpogX7uDKUyvBTophP',
|
|
44
|
+
* { description: 'updated' },
|
|
45
|
+
* );
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
update(agentID: string, params: AgentUpdateParams, options?: RequestOptions): APIPromise<BetaManagedAgentsAgent>;
|
|
49
|
+
/**
|
|
50
|
+
* List Agents
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* // Automatically fetches more pages as needed.
|
|
55
|
+
* for await (const betaManagedAgentsAgent of client.beta.agents.list()) {
|
|
56
|
+
* // ...
|
|
57
|
+
* }
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
list(params?: AgentListParams | null | undefined, options?: RequestOptions): PagePromise<BetaManagedAgentsAgentsPageCursor, BetaManagedAgentsAgent>;
|
|
61
|
+
/**
|
|
62
|
+
* Archive Agent
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* const betaManagedAgentsAgent =
|
|
67
|
+
* await client.beta.agents.archive(
|
|
68
|
+
* 'agent_011CZkYpogX7uDKUyvBTophP',
|
|
69
|
+
* );
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
archive(agentID: string, params?: AgentArchiveParams | null | undefined, options?: RequestOptions): APIPromise<BetaManagedAgentsAgent>;
|
|
73
|
+
}
|
|
74
|
+
export type BetaManagedAgentsAgentsPageCursor = PageCursor<BetaManagedAgentsAgent>;
|
|
75
|
+
/**
|
|
76
|
+
* Platform advisor roster entry: a model the session's primary thread may consult
|
|
77
|
+
* mid-turn.
|
|
78
|
+
*/
|
|
79
|
+
export interface BetaManagedAgentsAdvisor {
|
|
80
|
+
/**
|
|
81
|
+
* The advisor model id.
|
|
82
|
+
*/
|
|
83
|
+
model: string;
|
|
84
|
+
type: 'advisor';
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* A Managed Agents `agent`.
|
|
88
|
+
*/
|
|
89
|
+
export interface BetaManagedAgentsAgent {
|
|
90
|
+
id: string;
|
|
91
|
+
/**
|
|
92
|
+
* A timestamp in RFC 3339 format
|
|
93
|
+
*/
|
|
94
|
+
archived_at: string | null;
|
|
95
|
+
/**
|
|
96
|
+
* A timestamp in RFC 3339 format
|
|
97
|
+
*/
|
|
98
|
+
created_at: string;
|
|
99
|
+
description: string | null;
|
|
100
|
+
mcp_servers: Array<BetaManagedAgentsMCPServerURLDefinition>;
|
|
101
|
+
metadata: {
|
|
102
|
+
[key: string]: string;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Model identifier and configuration.
|
|
106
|
+
*/
|
|
107
|
+
model: BetaManagedAgentsModelConfig;
|
|
108
|
+
/**
|
|
109
|
+
* Resolved coordinator topology with a concrete agent roster.
|
|
110
|
+
*/
|
|
111
|
+
multiagent: SessionsAPI.BetaManagedAgentsMultiagent | null;
|
|
112
|
+
name: string;
|
|
113
|
+
skills: Array<BetaManagedAgentsPukuSkill | BetaManagedAgentsCustomSkill>;
|
|
114
|
+
system: string | null;
|
|
115
|
+
tools: Array<BetaManagedAgentsAgentToolset20260401 | BetaManagedAgentsMCPToolset | BetaManagedAgentsCustomTool>;
|
|
116
|
+
type: 'agent';
|
|
117
|
+
/**
|
|
118
|
+
* A timestamp in RFC 3339 format
|
|
119
|
+
*/
|
|
120
|
+
updated_at: string;
|
|
121
|
+
/**
|
|
122
|
+
* The agent's current version. Starts at 1 and increments when the agent is
|
|
123
|
+
* modified.
|
|
124
|
+
*/
|
|
125
|
+
version: number;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* A resolved agent reference with a concrete version.
|
|
129
|
+
*/
|
|
130
|
+
export interface BetaManagedAgentsAgentReference {
|
|
131
|
+
id: string;
|
|
132
|
+
type: 'agent';
|
|
133
|
+
version: number;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Configuration for a specific agent tool.
|
|
137
|
+
*/
|
|
138
|
+
export type BetaManagedAgentsAgentToolConfig = BetaManagedAgentsBashToolConfig | BetaManagedAgentsEditToolConfig | BetaManagedAgentsReadToolConfig | BetaManagedAgentsWriteToolConfig | BetaManagedAgentsGlobToolConfig | BetaManagedAgentsGrepToolConfig | BetaManagedAgentsWebFetchToolConfig | BetaManagedAgentsWebSearchToolConfig;
|
|
139
|
+
/**
|
|
140
|
+
* Configuration override for a specific tool within a toolset.
|
|
141
|
+
*/
|
|
142
|
+
export type BetaManagedAgentsAgentToolConfigParams = BetaManagedAgentsBashToolConfigParams | BetaManagedAgentsEditToolConfigParams | BetaManagedAgentsReadToolConfigParams | BetaManagedAgentsWriteToolConfigParams | BetaManagedAgentsGlobToolConfigParams | BetaManagedAgentsGrepToolConfigParams | BetaManagedAgentsWebFetchToolConfigParams | BetaManagedAgentsWebSearchToolConfigParams;
|
|
143
|
+
/**
|
|
144
|
+
* Resolved default configuration for agent tools.
|
|
145
|
+
*/
|
|
146
|
+
export interface BetaManagedAgentsAgentToolsetDefaultConfig {
|
|
147
|
+
enabled: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Permission policy for tool execution.
|
|
150
|
+
*/
|
|
151
|
+
permission_policy: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Default configuration for all tools in a toolset.
|
|
155
|
+
*/
|
|
156
|
+
export interface BetaManagedAgentsAgentToolsetDefaultConfigParams {
|
|
157
|
+
/**
|
|
158
|
+
* Whether tools are enabled and available to Puku by default. Defaults to true
|
|
159
|
+
* if not specified.
|
|
160
|
+
*/
|
|
161
|
+
enabled?: boolean | null;
|
|
162
|
+
/**
|
|
163
|
+
* Permission policy for tool execution.
|
|
164
|
+
*/
|
|
165
|
+
permission_policy?: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy | null;
|
|
166
|
+
}
|
|
167
|
+
export interface BetaManagedAgentsAgentToolset20260401 {
|
|
168
|
+
configs: Array<BetaManagedAgentsAgentToolConfig>;
|
|
169
|
+
/**
|
|
170
|
+
* Resolved default configuration for agent tools.
|
|
171
|
+
*/
|
|
172
|
+
default_config: BetaManagedAgentsAgentToolsetDefaultConfig;
|
|
173
|
+
type: 'agent_toolset_20260401';
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Input payload for the `bash` tool of the `agent_toolset_20260401` toolset. All
|
|
177
|
+
* fields are optional; a normal invocation supplies `command`, while
|
|
178
|
+
* `restart=true` (with no `command`) reboots the runner-side bash session.
|
|
179
|
+
*/
|
|
180
|
+
export interface BetaManagedAgentsAgentToolset20260401BashInput {
|
|
181
|
+
/**
|
|
182
|
+
* Shell command to execute. Omit only when `restart` is true.
|
|
183
|
+
*/
|
|
184
|
+
command?: string;
|
|
185
|
+
/**
|
|
186
|
+
* When true, restart the persistent bash session instead of running a command.
|
|
187
|
+
* Subsequent calls without `restart` will run against the fresh session.
|
|
188
|
+
*/
|
|
189
|
+
restart?: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* Per-call timeout in milliseconds. Defaults to the runner-wide tool timeout when
|
|
192
|
+
* omitted or zero.
|
|
193
|
+
*/
|
|
194
|
+
timeout_ms?: number;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Input payload for the `edit` tool. Performs a string replacement in the named
|
|
198
|
+
* file; by default `old_string` must occur exactly once.
|
|
199
|
+
*/
|
|
200
|
+
export interface BetaManagedAgentsAgentToolset20260401EditInput {
|
|
201
|
+
/**
|
|
202
|
+
* Path of the file to edit.
|
|
203
|
+
*/
|
|
204
|
+
file_path: string;
|
|
205
|
+
/**
|
|
206
|
+
* Replacement text.
|
|
207
|
+
*/
|
|
208
|
+
new_string: string;
|
|
209
|
+
/**
|
|
210
|
+
* Substring to find and replace.
|
|
211
|
+
*/
|
|
212
|
+
old_string: string;
|
|
213
|
+
/**
|
|
214
|
+
* When true, replace every occurrence of `old_string` instead of requiring a
|
|
215
|
+
* unique match.
|
|
216
|
+
*/
|
|
217
|
+
replace_all?: boolean;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Input payload for the `glob` tool. Returns paths matching a doublestar glob
|
|
221
|
+
* pattern, newest first.
|
|
222
|
+
*/
|
|
223
|
+
export interface BetaManagedAgentsAgentToolset20260401GlobInput {
|
|
224
|
+
/**
|
|
225
|
+
* Doublestar glob pattern (e.g. `** /*.go`). Absolute patterns are only permitted
|
|
226
|
+
* when the runner is configured to allow them.
|
|
227
|
+
*/
|
|
228
|
+
pattern: string;
|
|
229
|
+
/**
|
|
230
|
+
* Optional directory root to search under. Defaults to the runner's working
|
|
231
|
+
* directory.
|
|
232
|
+
*/
|
|
233
|
+
path?: string;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Input payload for the `grep` tool. Searches file contents for a regular
|
|
237
|
+
* expression, returning matching lines.
|
|
238
|
+
*/
|
|
239
|
+
export interface BetaManagedAgentsAgentToolset20260401GrepInput {
|
|
240
|
+
/**
|
|
241
|
+
* Regular expression to search for.
|
|
242
|
+
*/
|
|
243
|
+
pattern: string;
|
|
244
|
+
/**
|
|
245
|
+
* Optional directory root to search under. Defaults to the runner's working
|
|
246
|
+
* directory.
|
|
247
|
+
*/
|
|
248
|
+
path?: string;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Configuration for built-in agent tools. Use this to enable or disable groups of
|
|
252
|
+
* tools available to the agent.
|
|
253
|
+
*/
|
|
254
|
+
export interface BetaManagedAgentsAgentToolset20260401Params {
|
|
255
|
+
type: 'agent_toolset_20260401';
|
|
256
|
+
/**
|
|
257
|
+
* Per-tool configuration overrides.
|
|
258
|
+
*/
|
|
259
|
+
configs?: Array<BetaManagedAgentsAgentToolConfigParams>;
|
|
260
|
+
/**
|
|
261
|
+
* Default configuration for all tools in a toolset.
|
|
262
|
+
*/
|
|
263
|
+
default_config?: BetaManagedAgentsAgentToolsetDefaultConfigParams | null;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Input payload for the `read` tool. Reads file contents relative to the runner's
|
|
267
|
+
* working directory (or absolute when the runner permits).
|
|
268
|
+
*/
|
|
269
|
+
export interface BetaManagedAgentsAgentToolset20260401ReadInput {
|
|
270
|
+
/**
|
|
271
|
+
* Path of the file to read.
|
|
272
|
+
*/
|
|
273
|
+
file_path: string;
|
|
274
|
+
/**
|
|
275
|
+
* Optional `[start_line, end_line]` 1-indexed inclusive range. When omitted the
|
|
276
|
+
* entire file is returned. `end_line` of 0 or negative means "to end of file".
|
|
277
|
+
*/
|
|
278
|
+
view_range?: Array<number>;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Input payload for the `write` tool. Writes (overwriting) the entire file
|
|
282
|
+
* contents.
|
|
283
|
+
*/
|
|
284
|
+
export interface BetaManagedAgentsAgentToolset20260401WriteInput {
|
|
285
|
+
/**
|
|
286
|
+
* Full file contents to write.
|
|
287
|
+
*/
|
|
288
|
+
content: string;
|
|
289
|
+
/**
|
|
290
|
+
* Path of the file to write.
|
|
291
|
+
*/
|
|
292
|
+
file_path: string;
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Tool calls are automatically approved without user confirmation.
|
|
296
|
+
*/
|
|
297
|
+
export interface BetaManagedAgentsAlwaysAllowPolicy {
|
|
298
|
+
type: 'always_allow';
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Tool calls require user confirmation before execution.
|
|
302
|
+
*/
|
|
303
|
+
export interface BetaManagedAgentsAlwaysAskPolicy {
|
|
304
|
+
type: 'always_ask';
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* A resolved PukuAI-managed skill.
|
|
308
|
+
*/
|
|
309
|
+
export interface BetaManagedAgentsPukuSkill {
|
|
310
|
+
skill_id: string;
|
|
311
|
+
type: 'puku';
|
|
312
|
+
version: string;
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* An PukuAI-managed skill.
|
|
316
|
+
*/
|
|
317
|
+
export interface BetaManagedAgentsPukuSkillParams {
|
|
318
|
+
/**
|
|
319
|
+
* Identifier of the PukuAI skill (e.g., "xlsx").
|
|
320
|
+
*/
|
|
321
|
+
skill_id: string;
|
|
322
|
+
type: 'puku';
|
|
323
|
+
/**
|
|
324
|
+
* Version to pin. Defaults to latest if omitted.
|
|
325
|
+
*/
|
|
326
|
+
version?: string | null;
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Configuration for the bash tool.
|
|
330
|
+
*/
|
|
331
|
+
export interface BetaManagedAgentsBashToolConfig {
|
|
332
|
+
enabled: boolean;
|
|
333
|
+
name: 'bash';
|
|
334
|
+
/**
|
|
335
|
+
* Permission policy for tool execution.
|
|
336
|
+
*/
|
|
337
|
+
permission_policy: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy;
|
|
338
|
+
type: 'bash';
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Configuration override for the bash tool.
|
|
342
|
+
*/
|
|
343
|
+
export interface BetaManagedAgentsBashToolConfigParams {
|
|
344
|
+
/**
|
|
345
|
+
* Must be "bash".
|
|
346
|
+
*/
|
|
347
|
+
name: 'bash';
|
|
348
|
+
/**
|
|
349
|
+
* Whether this tool is enabled and available to Puku. Overrides the
|
|
350
|
+
* default_config setting.
|
|
351
|
+
*/
|
|
352
|
+
enabled?: boolean | null;
|
|
353
|
+
/**
|
|
354
|
+
* Permission policy for tool execution.
|
|
355
|
+
*/
|
|
356
|
+
permission_policy?: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy | null;
|
|
357
|
+
type?: 'bash';
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* A resolved user-created custom skill.
|
|
361
|
+
*/
|
|
362
|
+
export interface BetaManagedAgentsCustomSkill {
|
|
363
|
+
skill_id: string;
|
|
364
|
+
type: 'custom';
|
|
365
|
+
version: string;
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* A user-created custom skill.
|
|
369
|
+
*/
|
|
370
|
+
export interface BetaManagedAgentsCustomSkillParams {
|
|
371
|
+
/**
|
|
372
|
+
* Tagged ID of the custom skill (e.g., "skill_01XJ5...").
|
|
373
|
+
*/
|
|
374
|
+
skill_id: string;
|
|
375
|
+
type: 'custom';
|
|
376
|
+
/**
|
|
377
|
+
* Version to pin. Defaults to latest if omitted.
|
|
378
|
+
*/
|
|
379
|
+
version?: string | null;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* A custom tool as returned in API responses.
|
|
383
|
+
*/
|
|
384
|
+
export interface BetaManagedAgentsCustomTool {
|
|
385
|
+
description: string;
|
|
386
|
+
/**
|
|
387
|
+
* JSON Schema for custom tool input parameters.
|
|
388
|
+
*/
|
|
389
|
+
input_schema: BetaManagedAgentsCustomToolInputSchema;
|
|
390
|
+
name: string;
|
|
391
|
+
type: 'custom';
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* JSON Schema for custom tool input parameters.
|
|
395
|
+
*/
|
|
396
|
+
export interface BetaManagedAgentsCustomToolInputSchema {
|
|
397
|
+
type: 'object';
|
|
398
|
+
properties?: {
|
|
399
|
+
[key: string]: unknown;
|
|
400
|
+
} | null;
|
|
401
|
+
required?: Array<string> | null;
|
|
402
|
+
[k: string]: unknown;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* A custom tool that is executed by the API client rather than the agent. When the
|
|
406
|
+
* agent calls this tool, an `agent.custom_tool_use` event is emitted and the
|
|
407
|
+
* session goes idle, waiting for the client to provide the result via a
|
|
408
|
+
* `user.custom_tool_result` event.
|
|
409
|
+
*/
|
|
410
|
+
export interface BetaManagedAgentsCustomToolParams {
|
|
411
|
+
/**
|
|
412
|
+
* Description of what the tool does, shown to the agent to help it decide when to
|
|
413
|
+
* use the tool.
|
|
414
|
+
*/
|
|
415
|
+
description: string;
|
|
416
|
+
/**
|
|
417
|
+
* JSON Schema for custom tool input parameters.
|
|
418
|
+
*/
|
|
419
|
+
input_schema: BetaManagedAgentsCustomToolInputSchema;
|
|
420
|
+
/**
|
|
421
|
+
* Unique name for the tool. 1-128 characters; letters, digits, underscores, and
|
|
422
|
+
* hyphens.
|
|
423
|
+
*/
|
|
424
|
+
name: string;
|
|
425
|
+
type: 'custom';
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Configuration for the edit tool.
|
|
429
|
+
*/
|
|
430
|
+
export interface BetaManagedAgentsEditToolConfig {
|
|
431
|
+
enabled: boolean;
|
|
432
|
+
name: 'edit';
|
|
433
|
+
/**
|
|
434
|
+
* Permission policy for tool execution.
|
|
435
|
+
*/
|
|
436
|
+
permission_policy: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy;
|
|
437
|
+
type: 'edit';
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* Configuration override for the edit tool.
|
|
441
|
+
*/
|
|
442
|
+
export interface BetaManagedAgentsEditToolConfigParams {
|
|
443
|
+
/**
|
|
444
|
+
* Must be "edit".
|
|
445
|
+
*/
|
|
446
|
+
name: 'edit';
|
|
447
|
+
/**
|
|
448
|
+
* Whether this tool is enabled and available to Puku. Overrides the
|
|
449
|
+
* default_config setting.
|
|
450
|
+
*/
|
|
451
|
+
enabled?: boolean | null;
|
|
452
|
+
/**
|
|
453
|
+
* Permission policy for tool execution.
|
|
454
|
+
*/
|
|
455
|
+
permission_policy?: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy | null;
|
|
456
|
+
type?: 'edit';
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* High effort. Favors reasoning depth.
|
|
460
|
+
*/
|
|
461
|
+
export interface BetaManagedAgentsEffortHigh {
|
|
462
|
+
type: 'high';
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* Low effort. Favors latency over reasoning depth.
|
|
466
|
+
*/
|
|
467
|
+
export interface BetaManagedAgentsEffortLow {
|
|
468
|
+
type: 'low';
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* Maximum effort. Favors reasoning depth over latency.
|
|
472
|
+
*/
|
|
473
|
+
export interface BetaManagedAgentsEffortMax {
|
|
474
|
+
type: 'max';
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* Medium effort. Balances latency and reasoning depth.
|
|
478
|
+
*/
|
|
479
|
+
export interface BetaManagedAgentsEffortMedium {
|
|
480
|
+
type: 'medium';
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* Extra-high effort. Not all models accept this level.
|
|
484
|
+
*/
|
|
485
|
+
export interface BetaManagedAgentsEffortXhigh {
|
|
486
|
+
type: 'xhigh';
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* Configuration for the glob tool.
|
|
490
|
+
*/
|
|
491
|
+
export interface BetaManagedAgentsGlobToolConfig {
|
|
492
|
+
enabled: boolean;
|
|
493
|
+
name: 'glob';
|
|
494
|
+
/**
|
|
495
|
+
* Permission policy for tool execution.
|
|
496
|
+
*/
|
|
497
|
+
permission_policy: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy;
|
|
498
|
+
type: 'glob';
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* Configuration override for the glob tool.
|
|
502
|
+
*/
|
|
503
|
+
export interface BetaManagedAgentsGlobToolConfigParams {
|
|
504
|
+
/**
|
|
505
|
+
* Must be "glob".
|
|
506
|
+
*/
|
|
507
|
+
name: 'glob';
|
|
508
|
+
/**
|
|
509
|
+
* Whether this tool is enabled and available to Puku. Overrides the
|
|
510
|
+
* default_config setting.
|
|
511
|
+
*/
|
|
512
|
+
enabled?: boolean | null;
|
|
513
|
+
/**
|
|
514
|
+
* Permission policy for tool execution.
|
|
515
|
+
*/
|
|
516
|
+
permission_policy?: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy | null;
|
|
517
|
+
type?: 'glob';
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* Configuration for the grep tool.
|
|
521
|
+
*/
|
|
522
|
+
export interface BetaManagedAgentsGrepToolConfig {
|
|
523
|
+
enabled: boolean;
|
|
524
|
+
name: 'grep';
|
|
525
|
+
/**
|
|
526
|
+
* Permission policy for tool execution.
|
|
527
|
+
*/
|
|
528
|
+
permission_policy: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy;
|
|
529
|
+
type: 'grep';
|
|
530
|
+
}
|
|
531
|
+
/**
|
|
532
|
+
* Configuration override for the grep tool.
|
|
533
|
+
*/
|
|
534
|
+
export interface BetaManagedAgentsGrepToolConfigParams {
|
|
535
|
+
/**
|
|
536
|
+
* Must be "grep".
|
|
537
|
+
*/
|
|
538
|
+
name: 'grep';
|
|
539
|
+
/**
|
|
540
|
+
* Whether this tool is enabled and available to Puku. Overrides the
|
|
541
|
+
* default_config setting.
|
|
542
|
+
*/
|
|
543
|
+
enabled?: boolean | null;
|
|
544
|
+
/**
|
|
545
|
+
* Permission policy for tool execution.
|
|
546
|
+
*/
|
|
547
|
+
permission_policy?: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy | null;
|
|
548
|
+
type?: 'grep';
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
* URL-based MCP server connection as returned in API responses.
|
|
552
|
+
*/
|
|
553
|
+
export interface BetaManagedAgentsMCPServerURLDefinition {
|
|
554
|
+
name: string;
|
|
555
|
+
type: 'url';
|
|
556
|
+
url: string;
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* Resolved configuration for a specific MCP tool.
|
|
560
|
+
*/
|
|
561
|
+
export interface BetaManagedAgentsMCPToolConfig {
|
|
562
|
+
enabled: boolean;
|
|
563
|
+
name: string;
|
|
564
|
+
/**
|
|
565
|
+
* Permission policy for tool execution.
|
|
566
|
+
*/
|
|
567
|
+
permission_policy: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy;
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* Configuration override for a specific MCP tool.
|
|
571
|
+
*/
|
|
572
|
+
export interface BetaManagedAgentsMCPToolConfigParams {
|
|
573
|
+
/**
|
|
574
|
+
* Name of the MCP tool to configure. 1-128 characters.
|
|
575
|
+
*/
|
|
576
|
+
name: string;
|
|
577
|
+
/**
|
|
578
|
+
* Whether this tool is enabled. Overrides the `default_config` setting.
|
|
579
|
+
*/
|
|
580
|
+
enabled?: boolean | null;
|
|
581
|
+
/**
|
|
582
|
+
* Permission policy for tool execution.
|
|
583
|
+
*/
|
|
584
|
+
permission_policy?: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy | null;
|
|
585
|
+
}
|
|
586
|
+
export interface BetaManagedAgentsMCPToolset {
|
|
587
|
+
configs: Array<BetaManagedAgentsMCPToolConfig>;
|
|
588
|
+
/**
|
|
589
|
+
* Resolved default configuration for all tools from an MCP server.
|
|
590
|
+
*/
|
|
591
|
+
default_config: BetaManagedAgentsMCPToolsetDefaultConfig;
|
|
592
|
+
mcp_server_name: string;
|
|
593
|
+
type: 'mcp_toolset';
|
|
594
|
+
}
|
|
595
|
+
/**
|
|
596
|
+
* Resolved default configuration for all tools from an MCP server.
|
|
597
|
+
*/
|
|
598
|
+
export interface BetaManagedAgentsMCPToolsetDefaultConfig {
|
|
599
|
+
enabled: boolean;
|
|
600
|
+
/**
|
|
601
|
+
* Permission policy for tool execution.
|
|
602
|
+
*/
|
|
603
|
+
permission_policy: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy;
|
|
604
|
+
}
|
|
605
|
+
/**
|
|
606
|
+
* Default configuration for all tools from an MCP server.
|
|
607
|
+
*/
|
|
608
|
+
export interface BetaManagedAgentsMCPToolsetDefaultConfigParams {
|
|
609
|
+
/**
|
|
610
|
+
* Whether tools are enabled by default. Defaults to true if not specified.
|
|
611
|
+
*/
|
|
612
|
+
enabled?: boolean | null;
|
|
613
|
+
/**
|
|
614
|
+
* Permission policy for tool execution.
|
|
615
|
+
*/
|
|
616
|
+
permission_policy?: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy | null;
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
* Configuration for tools from an MCP server defined in `mcp_servers`.
|
|
620
|
+
*/
|
|
621
|
+
export interface BetaManagedAgentsMCPToolsetParams {
|
|
622
|
+
/**
|
|
623
|
+
* Name of the MCP server. Must match a server name from the mcp_servers array.
|
|
624
|
+
* 1-255 characters.
|
|
625
|
+
*/
|
|
626
|
+
mcp_server_name: string;
|
|
627
|
+
type: 'mcp_toolset';
|
|
628
|
+
/**
|
|
629
|
+
* Per-tool configuration overrides.
|
|
630
|
+
*/
|
|
631
|
+
configs?: Array<BetaManagedAgentsMCPToolConfigParams>;
|
|
632
|
+
/**
|
|
633
|
+
* Default configuration for all tools from an MCP server.
|
|
634
|
+
*/
|
|
635
|
+
default_config?: BetaManagedAgentsMCPToolsetDefaultConfigParams | null;
|
|
636
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
* The model that will power your agent.
|
|
639
|
+
*
|
|
640
|
+
* See [models](https://docs.puku.com/en/docs/models-overview) for additional
|
|
641
|
+
* details and options.
|
|
642
|
+
*/
|
|
643
|
+
export type BetaManagedAgentsModel = 'puku-ai-2.7' | 'puku-ai-2.8' | 'opus-4.8' | (string & {});
|
|
644
|
+
/**
|
|
645
|
+
* Model identifier and configuration.
|
|
646
|
+
*/
|
|
647
|
+
export interface BetaManagedAgentsModelConfig {
|
|
648
|
+
/**
|
|
649
|
+
* The model that will power your agent.
|
|
650
|
+
*
|
|
651
|
+
* See [models](https://docs.puku.com/en/docs/models-overview) for additional
|
|
652
|
+
* details and options.
|
|
653
|
+
*/
|
|
654
|
+
id: BetaManagedAgentsModel;
|
|
655
|
+
/**
|
|
656
|
+
* How hard Puku works on each turn. Sets `output_config.effort` on every
|
|
657
|
+
* Messages call the session makes.
|
|
658
|
+
*/
|
|
659
|
+
effort?: BetaManagedAgentsEffortLow | BetaManagedAgentsEffortMedium | BetaManagedAgentsEffortHigh | BetaManagedAgentsEffortXhigh | BetaManagedAgentsEffortMax;
|
|
660
|
+
/**
|
|
661
|
+
* Geographic region for model inference. When unset, requests fall through to the
|
|
662
|
+
* workspace's default_inference_geo.
|
|
663
|
+
*/
|
|
664
|
+
inference_geo?: string;
|
|
665
|
+
/**
|
|
666
|
+
* Inference speed mode. `fast` provides significantly faster output token
|
|
667
|
+
* generation at premium pricing. Not all models support `fast`; invalid
|
|
668
|
+
* combinations are rejected at create time.
|
|
669
|
+
*/
|
|
670
|
+
speed?: 'standard' | 'fast';
|
|
671
|
+
}
|
|
672
|
+
/**
|
|
673
|
+
* An object that defines additional configuration control over model use
|
|
674
|
+
*/
|
|
675
|
+
export interface BetaManagedAgentsModelConfigParams {
|
|
676
|
+
/**
|
|
677
|
+
* The model that will power your agent.
|
|
678
|
+
*
|
|
679
|
+
* See [models](https://docs.puku.com/en/docs/models-overview) for additional
|
|
680
|
+
* details and options.
|
|
681
|
+
*/
|
|
682
|
+
id: BetaManagedAgentsModel;
|
|
683
|
+
/**
|
|
684
|
+
* How hard Puku works on each inference call. Accepts a bare level string
|
|
685
|
+
* (`"high"`) or `{"type": "high"}`. On create, omitting it resolves the per-model
|
|
686
|
+
* default; on update, omitting it leaves the stored value unchanged.
|
|
687
|
+
*/
|
|
688
|
+
effort?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | BetaManagedAgentsEffortLow | BetaManagedAgentsEffortMedium | BetaManagedAgentsEffortHigh | BetaManagedAgentsEffortXhigh | BetaManagedAgentsEffortMax | null;
|
|
689
|
+
/**
|
|
690
|
+
* Geographic region for model inference. When unset, requests fall through to the
|
|
691
|
+
* workspace's default_inference_geo. On update, `model` is whole-object
|
|
692
|
+
* replacement — omitting inference_geo clears it.
|
|
693
|
+
*/
|
|
694
|
+
inference_geo?: string | null;
|
|
695
|
+
/**
|
|
696
|
+
* Inference speed mode. `fast` provides significantly faster output token
|
|
697
|
+
* generation at premium pricing. Not all models support `fast`; invalid
|
|
698
|
+
* combinations are rejected at create time.
|
|
699
|
+
*/
|
|
700
|
+
speed?: 'standard' | 'fast' | null;
|
|
701
|
+
}
|
|
702
|
+
/**
|
|
703
|
+
* Resolved coordinator topology with a concrete agent roster.
|
|
704
|
+
*/
|
|
705
|
+
export interface BetaManagedAgentsMultiagentCoordinator {
|
|
706
|
+
/**
|
|
707
|
+
* Agents the coordinator may spawn as session threads, each resolved to a specific
|
|
708
|
+
* version.
|
|
709
|
+
*/
|
|
710
|
+
agents: Array<BetaManagedAgentsAgentReference | BetaManagedAgentsAdvisor>;
|
|
711
|
+
type: 'coordinator';
|
|
712
|
+
}
|
|
713
|
+
/**
|
|
714
|
+
* A coordinator topology: the session's primary thread orchestrates work by
|
|
715
|
+
* spawning session threads, each running an agent drawn from the `agents` roster.
|
|
716
|
+
*/
|
|
717
|
+
export interface BetaManagedAgentsMultiagentCoordinatorParams {
|
|
718
|
+
/**
|
|
719
|
+
* Agents the coordinator may spawn as session threads. 1–20 entries. Each entry is
|
|
720
|
+
* an agent ID string, a versioned `{"type":"agent","id","version"}` reference, or
|
|
721
|
+
* `{"type":"self"}` to allow recursive self-invocation. Entries must reference
|
|
722
|
+
* distinct agents (after resolving `self` and string forms); at most one `self`.
|
|
723
|
+
* Referenced agents must exist, must not be archived, and must not themselves have
|
|
724
|
+
* `multiagent` set (depth limit 1).
|
|
725
|
+
*/
|
|
726
|
+
agents: Array<SessionsAPI.BetaManagedAgentsMultiagentRosterEntryParams>;
|
|
727
|
+
type: 'coordinator';
|
|
728
|
+
}
|
|
729
|
+
/**
|
|
730
|
+
* Sentinel roster entry meaning "the agent that owns this configuration". Resolved
|
|
731
|
+
* server-side to a concrete agent reference.
|
|
732
|
+
*/
|
|
733
|
+
export interface BetaManagedAgentsMultiagentSelfParams {
|
|
734
|
+
type: 'self';
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
* Configuration for the read tool.
|
|
738
|
+
*/
|
|
739
|
+
export interface BetaManagedAgentsReadToolConfig {
|
|
740
|
+
enabled: boolean;
|
|
741
|
+
name: 'read';
|
|
742
|
+
/**
|
|
743
|
+
* Permission policy for tool execution.
|
|
744
|
+
*/
|
|
745
|
+
permission_policy: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy;
|
|
746
|
+
type: 'read';
|
|
747
|
+
}
|
|
748
|
+
/**
|
|
749
|
+
* Configuration override for the read tool.
|
|
750
|
+
*/
|
|
751
|
+
export interface BetaManagedAgentsReadToolConfigParams {
|
|
752
|
+
/**
|
|
753
|
+
* Must be "read".
|
|
754
|
+
*/
|
|
755
|
+
name: 'read';
|
|
756
|
+
/**
|
|
757
|
+
* Whether this tool is enabled and available to Puku. Overrides the
|
|
758
|
+
* default_config setting.
|
|
759
|
+
*/
|
|
760
|
+
enabled?: boolean | null;
|
|
761
|
+
/**
|
|
762
|
+
* Permission policy for tool execution.
|
|
763
|
+
*/
|
|
764
|
+
permission_policy?: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy | null;
|
|
765
|
+
type?: 'read';
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* Resolved `agent` definition for a single `session_thread`. Snapshot of the agent
|
|
769
|
+
* at thread creation time. The multiagent roster is not repeated here; read it
|
|
770
|
+
* from `Session.agent`.
|
|
771
|
+
*/
|
|
772
|
+
export interface BetaManagedAgentsSessionThreadAgent {
|
|
773
|
+
id: string;
|
|
774
|
+
description: string | null;
|
|
775
|
+
mcp_servers: Array<BetaManagedAgentsMCPServerURLDefinition>;
|
|
776
|
+
/**
|
|
777
|
+
* Model identifier and configuration.
|
|
778
|
+
*/
|
|
779
|
+
model: BetaManagedAgentsModelConfig;
|
|
780
|
+
name: string;
|
|
781
|
+
skills: Array<BetaManagedAgentsPukuSkill | BetaManagedAgentsCustomSkill>;
|
|
782
|
+
system: string | null;
|
|
783
|
+
tools: Array<BetaManagedAgentsAgentToolset20260401 | BetaManagedAgentsMCPToolset | BetaManagedAgentsCustomTool>;
|
|
784
|
+
type: 'agent';
|
|
785
|
+
version: number;
|
|
786
|
+
}
|
|
787
|
+
/**
|
|
788
|
+
* Skill to load in the session container.
|
|
789
|
+
*/
|
|
790
|
+
export type BetaManagedAgentsSkillParams = BetaManagedAgentsPukuSkillParams | BetaManagedAgentsCustomSkillParams;
|
|
791
|
+
/**
|
|
792
|
+
* URL-based MCP server connection.
|
|
793
|
+
*/
|
|
794
|
+
export interface BetaManagedAgentsURLMCPServerParams {
|
|
795
|
+
/**
|
|
796
|
+
* Unique name for this server, referenced by mcp_toolset configurations. 1-255
|
|
797
|
+
* characters.
|
|
798
|
+
*/
|
|
799
|
+
name: string;
|
|
800
|
+
type: 'url';
|
|
801
|
+
/**
|
|
802
|
+
* Endpoint URL for the MCP server.
|
|
803
|
+
*/
|
|
804
|
+
url: string;
|
|
805
|
+
}
|
|
806
|
+
/**
|
|
807
|
+
* Approximate user location for search result localization.
|
|
808
|
+
*/
|
|
809
|
+
export interface BetaManagedAgentsUserLocation {
|
|
810
|
+
/**
|
|
811
|
+
* Location precision. Only "approximate" is supported.
|
|
812
|
+
*/
|
|
813
|
+
type: 'approximate';
|
|
814
|
+
/**
|
|
815
|
+
* City name.
|
|
816
|
+
*/
|
|
817
|
+
city?: string | null;
|
|
818
|
+
/**
|
|
819
|
+
* Two-letter ISO 3166-1 country code, uppercase.
|
|
820
|
+
*/
|
|
821
|
+
country?: string | null;
|
|
822
|
+
/**
|
|
823
|
+
* Region or state name.
|
|
824
|
+
*/
|
|
825
|
+
region?: string | null;
|
|
826
|
+
/**
|
|
827
|
+
* IANA timezone identifier, e.g. "America/Los_Angeles".
|
|
828
|
+
*/
|
|
829
|
+
timezone?: string | null;
|
|
830
|
+
}
|
|
831
|
+
/**
|
|
832
|
+
* Configuration for the web_fetch tool.
|
|
833
|
+
*/
|
|
834
|
+
export interface BetaManagedAgentsWebFetchToolConfig {
|
|
835
|
+
enabled: boolean;
|
|
836
|
+
name: 'web_fetch';
|
|
837
|
+
/**
|
|
838
|
+
* Permission policy for tool execution.
|
|
839
|
+
*/
|
|
840
|
+
permission_policy: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy;
|
|
841
|
+
type: 'web_fetch';
|
|
842
|
+
allowed_domains?: Array<string>;
|
|
843
|
+
blocked_domains?: Array<string>;
|
|
844
|
+
max_content_tokens?: number | null;
|
|
845
|
+
}
|
|
846
|
+
/**
|
|
847
|
+
* Configuration override for the web_fetch tool.
|
|
848
|
+
*/
|
|
849
|
+
export interface BetaManagedAgentsWebFetchToolConfigParams {
|
|
850
|
+
/**
|
|
851
|
+
* Must be "web_fetch".
|
|
852
|
+
*/
|
|
853
|
+
name: 'web_fetch';
|
|
854
|
+
/**
|
|
855
|
+
* Only fetch URLs whose host is one of these domains or a subdomain of one. Each
|
|
856
|
+
* entry is a plain hostname like "docs.example.com" (no scheme, port, or path). At
|
|
857
|
+
* most 64 entries; an empty list is rejected (omit the field instead). Cannot be
|
|
858
|
+
* combined with blocked_domains.
|
|
859
|
+
*/
|
|
860
|
+
allowed_domains?: Array<string>;
|
|
861
|
+
/**
|
|
862
|
+
* Never fetch URLs whose host is one of these domains or a subdomain of one. Each
|
|
863
|
+
* entry is a plain hostname like "ads.example.com" (no scheme, port, or path). At
|
|
864
|
+
* most 64 entries; an empty list is rejected (omit the field instead). Cannot be
|
|
865
|
+
* combined with allowed_domains.
|
|
866
|
+
*/
|
|
867
|
+
blocked_domains?: Array<string>;
|
|
868
|
+
/**
|
|
869
|
+
* Whether this tool is enabled and available to Puku. Overrides the
|
|
870
|
+
* default_config setting.
|
|
871
|
+
*/
|
|
872
|
+
enabled?: boolean | null;
|
|
873
|
+
/**
|
|
874
|
+
* Maximum number of tokens of fetched text content to include in context per call.
|
|
875
|
+
* Does not apply to binary content such as PDFs.
|
|
876
|
+
*/
|
|
877
|
+
max_content_tokens?: number | null;
|
|
878
|
+
/**
|
|
879
|
+
* Permission policy for tool execution.
|
|
880
|
+
*/
|
|
881
|
+
permission_policy?: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy | null;
|
|
882
|
+
type?: 'web_fetch';
|
|
883
|
+
}
|
|
884
|
+
/**
|
|
885
|
+
* Configuration for the web_search tool.
|
|
886
|
+
*/
|
|
887
|
+
export interface BetaManagedAgentsWebSearchToolConfig {
|
|
888
|
+
enabled: boolean;
|
|
889
|
+
name: 'web_search';
|
|
890
|
+
/**
|
|
891
|
+
* Permission policy for tool execution.
|
|
892
|
+
*/
|
|
893
|
+
permission_policy: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy;
|
|
894
|
+
type: 'web_search';
|
|
895
|
+
allowed_domains?: Array<string>;
|
|
896
|
+
blocked_domains?: Array<string>;
|
|
897
|
+
/**
|
|
898
|
+
* Approximate user location for search result localization.
|
|
899
|
+
*/
|
|
900
|
+
user_location?: BetaManagedAgentsUserLocation | null;
|
|
901
|
+
}
|
|
902
|
+
/**
|
|
903
|
+
* Configuration override for the web_search tool.
|
|
904
|
+
*/
|
|
905
|
+
export interface BetaManagedAgentsWebSearchToolConfigParams {
|
|
906
|
+
/**
|
|
907
|
+
* Must be "web_search".
|
|
908
|
+
*/
|
|
909
|
+
name: 'web_search';
|
|
910
|
+
/**
|
|
911
|
+
* Only return search results whose host is one of these domains or a subdomain of
|
|
912
|
+
* one. Each entry is a plain hostname like "docs.example.com" (no scheme or port;
|
|
913
|
+
* an optional path suffix is accepted). At most 64 entries; an empty list is
|
|
914
|
+
* rejected (omit the field instead). Cannot be combined with blocked_domains.
|
|
915
|
+
*/
|
|
916
|
+
allowed_domains?: Array<string>;
|
|
917
|
+
/**
|
|
918
|
+
* Never return search results whose host is one of these domains or a subdomain of
|
|
919
|
+
* one. Each entry is a plain hostname like "ads.example.com" (no scheme or port;
|
|
920
|
+
* an optional path suffix is accepted). At most 64 entries; an empty list is
|
|
921
|
+
* rejected (omit the field instead). Cannot be combined with allowed_domains.
|
|
922
|
+
*/
|
|
923
|
+
blocked_domains?: Array<string>;
|
|
924
|
+
/**
|
|
925
|
+
* Whether this tool is enabled and available to Puku. Overrides the
|
|
926
|
+
* default_config setting.
|
|
927
|
+
*/
|
|
928
|
+
enabled?: boolean | null;
|
|
929
|
+
/**
|
|
930
|
+
* Permission policy for tool execution.
|
|
931
|
+
*/
|
|
932
|
+
permission_policy?: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy | null;
|
|
933
|
+
type?: 'web_search';
|
|
934
|
+
/**
|
|
935
|
+
* Approximate user location for search result localization.
|
|
936
|
+
*/
|
|
937
|
+
user_location?: BetaManagedAgentsUserLocation | null;
|
|
938
|
+
}
|
|
939
|
+
/**
|
|
940
|
+
* Configuration for the write tool.
|
|
941
|
+
*/
|
|
942
|
+
export interface BetaManagedAgentsWriteToolConfig {
|
|
943
|
+
enabled: boolean;
|
|
944
|
+
name: 'write';
|
|
945
|
+
/**
|
|
946
|
+
* Permission policy for tool execution.
|
|
947
|
+
*/
|
|
948
|
+
permission_policy: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy;
|
|
949
|
+
type: 'write';
|
|
950
|
+
}
|
|
951
|
+
/**
|
|
952
|
+
* Configuration override for the write tool.
|
|
953
|
+
*/
|
|
954
|
+
export interface BetaManagedAgentsWriteToolConfigParams {
|
|
955
|
+
/**
|
|
956
|
+
* Must be "write".
|
|
957
|
+
*/
|
|
958
|
+
name: 'write';
|
|
959
|
+
/**
|
|
960
|
+
* Whether this tool is enabled and available to Puku. Overrides the
|
|
961
|
+
* default_config setting.
|
|
962
|
+
*/
|
|
963
|
+
enabled?: boolean | null;
|
|
964
|
+
/**
|
|
965
|
+
* Permission policy for tool execution.
|
|
966
|
+
*/
|
|
967
|
+
permission_policy?: BetaManagedAgentsAlwaysAllowPolicy | BetaManagedAgentsAlwaysAskPolicy | null;
|
|
968
|
+
type?: 'write';
|
|
969
|
+
}
|
|
970
|
+
export interface AgentCreateParams {
|
|
971
|
+
/**
|
|
972
|
+
* Body param: Model identifier. Accepts the
|
|
973
|
+
* [model string](https://platform.puku.com/docs/en/about-puku/models/overview#latest-models-comparison),
|
|
974
|
+
* e.g. `puku-opus-5`, or a `model_config` object for additional configuration
|
|
975
|
+
* control
|
|
976
|
+
*/
|
|
977
|
+
model: BetaManagedAgentsModel | BetaManagedAgentsModelConfigParams;
|
|
978
|
+
/**
|
|
979
|
+
* Body param: Human-readable name for the agent.
|
|
980
|
+
*/
|
|
981
|
+
name: string;
|
|
982
|
+
/**
|
|
983
|
+
* Body param: Description of what the agent does.
|
|
984
|
+
*/
|
|
985
|
+
description?: string | null;
|
|
986
|
+
/**
|
|
987
|
+
* Body param: MCP servers this agent connects to. Maximum 20. Names must be unique
|
|
988
|
+
* within the array. Every server must be referenced by an `mcp_toolset` in
|
|
989
|
+
* `tools`; unreferenced servers are rejected. See the
|
|
990
|
+
* [MCP connector guide](https://platform.puku.com/docs/en/managed-agents/mcp-connector).
|
|
991
|
+
*/
|
|
992
|
+
mcp_servers?: Array<BetaManagedAgentsURLMCPServerParams>;
|
|
993
|
+
/**
|
|
994
|
+
* Body param: Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 chars,
|
|
995
|
+
* values up to 512 chars.
|
|
996
|
+
*/
|
|
997
|
+
metadata?: {
|
|
998
|
+
[key: string]: string;
|
|
999
|
+
};
|
|
1000
|
+
/**
|
|
1001
|
+
* Body param: A coordinator topology: the session's primary thread orchestrates
|
|
1002
|
+
* work by spawning session threads, each running an agent drawn from the `agents`
|
|
1003
|
+
* roster.
|
|
1004
|
+
*/
|
|
1005
|
+
multiagent?: SessionsAPI.BetaManagedAgentsMultiagentParams | null;
|
|
1006
|
+
/**
|
|
1007
|
+
* Body param: Skills available to the agent.
|
|
1008
|
+
*/
|
|
1009
|
+
skills?: Array<BetaManagedAgentsSkillParams>;
|
|
1010
|
+
/**
|
|
1011
|
+
* Body param: System prompt for the agent.
|
|
1012
|
+
*/
|
|
1013
|
+
system?: string | null;
|
|
1014
|
+
/**
|
|
1015
|
+
* Body param: Tool configurations available to the agent. Maximum of 128 tools
|
|
1016
|
+
* across all toolsets allowed.
|
|
1017
|
+
*/
|
|
1018
|
+
tools?: Array<BetaManagedAgentsAgentToolset20260401Params | BetaManagedAgentsMCPToolsetParams | BetaManagedAgentsCustomToolParams>;
|
|
1019
|
+
/**
|
|
1020
|
+
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
1021
|
+
*/
|
|
1022
|
+
betas?: Array<BetaAPI.PukuBeta>;
|
|
1023
|
+
}
|
|
1024
|
+
export interface AgentRetrieveParams {
|
|
1025
|
+
/**
|
|
1026
|
+
* Query param: Agent version. Omit for the most recent version. Must be at least 1
|
|
1027
|
+
* if specified.
|
|
1028
|
+
*/
|
|
1029
|
+
version?: number;
|
|
1030
|
+
/**
|
|
1031
|
+
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
1032
|
+
*/
|
|
1033
|
+
betas?: Array<BetaAPI.PukuBeta>;
|
|
1034
|
+
}
|
|
1035
|
+
export interface AgentUpdateParams {
|
|
1036
|
+
/**
|
|
1037
|
+
* Body param: Description. Omit to preserve; send empty string or null to clear.
|
|
1038
|
+
*/
|
|
1039
|
+
description?: string | null;
|
|
1040
|
+
/**
|
|
1041
|
+
* Body param: MCP servers. Full replacement. Omit to preserve; send empty array or
|
|
1042
|
+
* `null` to clear. Names must be unique. Maximum 20. Every server must be
|
|
1043
|
+
* referenced by an `mcp_toolset` in the agent's resulting `tools`; unreferenced
|
|
1044
|
+
* servers are rejected. See the
|
|
1045
|
+
* [MCP connector guide](https://platform.puku.com/docs/en/managed-agents/mcp-connector).
|
|
1046
|
+
*/
|
|
1047
|
+
mcp_servers?: Array<BetaManagedAgentsURLMCPServerParams> | null;
|
|
1048
|
+
/**
|
|
1049
|
+
* Body param: Metadata patch. Set a key to a string to upsert it, or to null to
|
|
1050
|
+
* delete it. Omit the field to preserve. The stored bag is limited to 16 keys (up
|
|
1051
|
+
* to 64 chars each) with values up to 512 chars.
|
|
1052
|
+
*/
|
|
1053
|
+
metadata?: {
|
|
1054
|
+
[key: string]: string | null;
|
|
1055
|
+
} | null;
|
|
1056
|
+
/**
|
|
1057
|
+
* Body param: Model identifier. Accepts the
|
|
1058
|
+
* [model string](https://platform.puku.com/docs/en/about-puku/models/overview#latest-models-comparison),
|
|
1059
|
+
* e.g. `puku-opus-5`, or a `model_config` object for additional configuration
|
|
1060
|
+
* control. Omit to preserve. Cannot be cleared.
|
|
1061
|
+
*/
|
|
1062
|
+
model?: BetaManagedAgentsModel | BetaManagedAgentsModelConfigParams;
|
|
1063
|
+
/**
|
|
1064
|
+
* Body param: A coordinator topology: the session's primary thread orchestrates
|
|
1065
|
+
* work by spawning session threads, each running an agent drawn from the `agents`
|
|
1066
|
+
* roster.
|
|
1067
|
+
*/
|
|
1068
|
+
multiagent?: SessionsAPI.BetaManagedAgentsMultiagentParams | null;
|
|
1069
|
+
/**
|
|
1070
|
+
* Body param: Human-readable name. Must be non-empty. Omit to preserve. Cannot be
|
|
1071
|
+
* cleared.
|
|
1072
|
+
*/
|
|
1073
|
+
name?: string;
|
|
1074
|
+
/**
|
|
1075
|
+
* Body param: Skills. Full replacement. Omit to preserve; send empty array or null
|
|
1076
|
+
* to clear.
|
|
1077
|
+
*/
|
|
1078
|
+
skills?: Array<BetaManagedAgentsSkillParams> | null;
|
|
1079
|
+
/**
|
|
1080
|
+
* Body param: System prompt. Omit to preserve; send empty string or null to clear.
|
|
1081
|
+
*/
|
|
1082
|
+
system?: string | null;
|
|
1083
|
+
/**
|
|
1084
|
+
* Body param: Tool configurations available to the agent. Full replacement. Omit
|
|
1085
|
+
* to preserve; send empty array or null to clear. Maximum of 128 tools across all
|
|
1086
|
+
* toolsets allowed.
|
|
1087
|
+
*/
|
|
1088
|
+
tools?: Array<BetaManagedAgentsAgentToolset20260401Params | BetaManagedAgentsMCPToolsetParams | BetaManagedAgentsCustomToolParams> | null;
|
|
1089
|
+
/**
|
|
1090
|
+
* Body param: The agent's current version, used to prevent concurrent overwrites.
|
|
1091
|
+
* Obtain this value from a create or retrieve response. Must be at least 1 if
|
|
1092
|
+
* specified. When supplied, the request fails if it does not match the server's
|
|
1093
|
+
* current version; omit to apply the update unconditionally.
|
|
1094
|
+
*/
|
|
1095
|
+
version?: number;
|
|
1096
|
+
/**
|
|
1097
|
+
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
1098
|
+
*/
|
|
1099
|
+
betas?: Array<BetaAPI.PukuBeta>;
|
|
1100
|
+
}
|
|
1101
|
+
export interface AgentListParams extends PageCursorParams {
|
|
1102
|
+
/**
|
|
1103
|
+
* Query param: Return agents created at or after this time (inclusive).
|
|
1104
|
+
*/
|
|
1105
|
+
'created_at[gte]'?: string;
|
|
1106
|
+
/**
|
|
1107
|
+
* Query param: Return agents created at or before this time (inclusive).
|
|
1108
|
+
*/
|
|
1109
|
+
'created_at[lte]'?: string;
|
|
1110
|
+
/**
|
|
1111
|
+
* Query param: Include archived agents in results. Defaults to false.
|
|
1112
|
+
*/
|
|
1113
|
+
include_archived?: boolean;
|
|
1114
|
+
/**
|
|
1115
|
+
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
1116
|
+
*/
|
|
1117
|
+
betas?: Array<BetaAPI.PukuBeta>;
|
|
1118
|
+
}
|
|
1119
|
+
export interface AgentArchiveParams {
|
|
1120
|
+
/**
|
|
1121
|
+
* Optional header to specify the beta version(s) you want to use.
|
|
1122
|
+
*/
|
|
1123
|
+
betas?: Array<BetaAPI.PukuBeta>;
|
|
1124
|
+
}
|
|
1125
|
+
export declare namespace Agents {
|
|
1126
|
+
export { type BetaManagedAgentsAdvisor as BetaManagedAgentsAdvisor, type BetaManagedAgentsAgent as BetaManagedAgentsAgent, type BetaManagedAgentsAgentReference as BetaManagedAgentsAgentReference, type BetaManagedAgentsAgentToolConfig as BetaManagedAgentsAgentToolConfig, type BetaManagedAgentsAgentToolConfigParams as BetaManagedAgentsAgentToolConfigParams, type BetaManagedAgentsAgentToolsetDefaultConfig as BetaManagedAgentsAgentToolsetDefaultConfig, type BetaManagedAgentsAgentToolsetDefaultConfigParams as BetaManagedAgentsAgentToolsetDefaultConfigParams, type BetaManagedAgentsAgentToolset20260401 as BetaManagedAgentsAgentToolset20260401, type BetaManagedAgentsAgentToolset20260401BashInput as BetaManagedAgentsAgentToolset20260401BashInput, type BetaManagedAgentsAgentToolset20260401EditInput as BetaManagedAgentsAgentToolset20260401EditInput, type BetaManagedAgentsAgentToolset20260401GlobInput as BetaManagedAgentsAgentToolset20260401GlobInput, type BetaManagedAgentsAgentToolset20260401GrepInput as BetaManagedAgentsAgentToolset20260401GrepInput, type BetaManagedAgentsAgentToolset20260401Params as BetaManagedAgentsAgentToolset20260401Params, type BetaManagedAgentsAgentToolset20260401ReadInput as BetaManagedAgentsAgentToolset20260401ReadInput, type BetaManagedAgentsAgentToolset20260401WriteInput as BetaManagedAgentsAgentToolset20260401WriteInput, type BetaManagedAgentsAlwaysAllowPolicy as BetaManagedAgentsAlwaysAllowPolicy, type BetaManagedAgentsAlwaysAskPolicy as BetaManagedAgentsAlwaysAskPolicy, type BetaManagedAgentsPukuSkill as BetaManagedAgentsPukuSkill, type BetaManagedAgentsPukuSkillParams as BetaManagedAgentsPukuSkillParams, type BetaManagedAgentsBashToolConfig as BetaManagedAgentsBashToolConfig, type BetaManagedAgentsBashToolConfigParams as BetaManagedAgentsBashToolConfigParams, type BetaManagedAgentsCustomSkill as BetaManagedAgentsCustomSkill, type BetaManagedAgentsCustomSkillParams as BetaManagedAgentsCustomSkillParams, type BetaManagedAgentsCustomTool as BetaManagedAgentsCustomTool, type BetaManagedAgentsCustomToolInputSchema as BetaManagedAgentsCustomToolInputSchema, type BetaManagedAgentsCustomToolParams as BetaManagedAgentsCustomToolParams, type BetaManagedAgentsEditToolConfig as BetaManagedAgentsEditToolConfig, type BetaManagedAgentsEditToolConfigParams as BetaManagedAgentsEditToolConfigParams, type BetaManagedAgentsEffortHigh as BetaManagedAgentsEffortHigh, type BetaManagedAgentsEffortLow as BetaManagedAgentsEffortLow, type BetaManagedAgentsEffortMax as BetaManagedAgentsEffortMax, type BetaManagedAgentsEffortMedium as BetaManagedAgentsEffortMedium, type BetaManagedAgentsEffortXhigh as BetaManagedAgentsEffortXhigh, type BetaManagedAgentsGlobToolConfig as BetaManagedAgentsGlobToolConfig, type BetaManagedAgentsGlobToolConfigParams as BetaManagedAgentsGlobToolConfigParams, type BetaManagedAgentsGrepToolConfig as BetaManagedAgentsGrepToolConfig, type BetaManagedAgentsGrepToolConfigParams as BetaManagedAgentsGrepToolConfigParams, type BetaManagedAgentsMCPServerURLDefinition as BetaManagedAgentsMCPServerURLDefinition, type BetaManagedAgentsMCPToolConfig as BetaManagedAgentsMCPToolConfig, type BetaManagedAgentsMCPToolConfigParams as BetaManagedAgentsMCPToolConfigParams, type BetaManagedAgentsMCPToolset as BetaManagedAgentsMCPToolset, type BetaManagedAgentsMCPToolsetDefaultConfig as BetaManagedAgentsMCPToolsetDefaultConfig, type BetaManagedAgentsMCPToolsetDefaultConfigParams as BetaManagedAgentsMCPToolsetDefaultConfigParams, type BetaManagedAgentsMCPToolsetParams as BetaManagedAgentsMCPToolsetParams, type BetaManagedAgentsModel as BetaManagedAgentsModel, type BetaManagedAgentsModelConfig as BetaManagedAgentsModelConfig, type BetaManagedAgentsModelConfigParams as BetaManagedAgentsModelConfigParams, type BetaManagedAgentsMultiagentCoordinator as BetaManagedAgentsMultiagentCoordinator, type BetaManagedAgentsMultiagentCoordinatorParams as BetaManagedAgentsMultiagentCoordinatorParams, type BetaManagedAgentsMultiagentSelfParams as BetaManagedAgentsMultiagentSelfParams, type BetaManagedAgentsReadToolConfig as BetaManagedAgentsReadToolConfig, type BetaManagedAgentsReadToolConfigParams as BetaManagedAgentsReadToolConfigParams, type BetaManagedAgentsSessionThreadAgent as BetaManagedAgentsSessionThreadAgent, type BetaManagedAgentsSkillParams as BetaManagedAgentsSkillParams, type BetaManagedAgentsURLMCPServerParams as BetaManagedAgentsURLMCPServerParams, type BetaManagedAgentsUserLocation as BetaManagedAgentsUserLocation, type BetaManagedAgentsWebFetchToolConfig as BetaManagedAgentsWebFetchToolConfig, type BetaManagedAgentsWebFetchToolConfigParams as BetaManagedAgentsWebFetchToolConfigParams, type BetaManagedAgentsWebSearchToolConfig as BetaManagedAgentsWebSearchToolConfig, type BetaManagedAgentsWebSearchToolConfigParams as BetaManagedAgentsWebSearchToolConfigParams, type BetaManagedAgentsWriteToolConfig as BetaManagedAgentsWriteToolConfig, type BetaManagedAgentsWriteToolConfigParams as BetaManagedAgentsWriteToolConfigParams, type BetaManagedAgentsAgentsPageCursor as BetaManagedAgentsAgentsPageCursor, type AgentCreateParams as AgentCreateParams, type AgentRetrieveParams as AgentRetrieveParams, type AgentUpdateParams as AgentUpdateParams, type AgentListParams as AgentListParams, type AgentArchiveParams as AgentArchiveParams, };
|
|
1127
|
+
export { Versions as Versions, type VersionListParams as VersionListParams };
|
|
1128
|
+
}
|