@takeshape/schema 12.1.1 → 12.1.5
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/dist/agents.d.ts +62 -0
- package/dist/agents.js +346 -0
- package/dist/api-version.d.ts +5 -0
- package/dist/api-version.js +17 -0
- package/dist/auth-schemas.d.ts +144 -0
- package/dist/auth-schemas.js +7 -0
- package/dist/auth-utils.d.ts +19 -0
- package/dist/auth-utils.js +26 -0
- package/dist/builtin-schema.d.ts +18 -0
- package/dist/builtin-schema.js +710 -0
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +1 -0
- package/dist/content-schema-transform.d.ts +35 -0
- package/dist/content-schema-transform.js +162 -0
- package/dist/create-input-schema.d.ts +9 -0
- package/dist/create-input-schema.js +68 -0
- package/dist/enum.d.ts +2 -0
- package/dist/enum.js +9 -0
- package/dist/flatten-templates.d.ts +2 -0
- package/dist/flatten-templates.js +20 -0
- package/dist/get-is-leaf.d.ts +3 -0
- package/dist/get-is-leaf.js +56 -0
- package/dist/index.d.ts +64 -0
- package/dist/index.js +61 -0
- package/dist/interfaces.d.ts +14 -0
- package/dist/interfaces.js +86 -0
- package/dist/layers/layers.d.ts +26 -0
- package/dist/layers/layers.js +301 -0
- package/dist/layers/refs.d.ts +102 -0
- package/dist/layers/refs.js +220 -0
- package/dist/layers/type-utils.d.ts +59 -0
- package/dist/layers/type-utils.js +118 -0
- package/dist/layers/visitor.d.ts +5 -0
- package/dist/layers/visitor.js +38 -0
- package/dist/migration/index.d.ts +79 -0
- package/dist/migration/index.js +110 -0
- package/dist/migration/to/v3.0.0.d.ts +4 -0
- package/dist/migration/to/v3.0.0.js +212 -0
- package/dist/migration/to/v3.1.0.d.ts +4 -0
- package/dist/migration/to/v3.1.0.js +194 -0
- package/dist/migration/to/v3.10.0.d.ts +4 -0
- package/dist/migration/to/v3.10.0.js +67 -0
- package/dist/migration/to/v3.11.0.d.ts +4 -0
- package/dist/migration/to/v3.11.0.js +85 -0
- package/dist/migration/to/v3.12.3.d.ts +4 -0
- package/dist/migration/to/v3.12.3.js +87 -0
- package/dist/migration/to/v3.13.0.d.ts +4 -0
- package/dist/migration/to/v3.13.0.js +17 -0
- package/dist/migration/to/v3.17.0.d.ts +4 -0
- package/dist/migration/to/v3.17.0.js +22 -0
- package/dist/migration/to/v3.18.0.d.ts +4 -0
- package/dist/migration/to/v3.18.0.js +64 -0
- package/dist/migration/to/v3.18.1.d.ts +4 -0
- package/dist/migration/to/v3.18.1.js +12 -0
- package/dist/migration/to/v3.18.2.d.ts +4 -0
- package/dist/migration/to/v3.18.2.js +19 -0
- package/dist/migration/to/v3.20.0.d.ts +4 -0
- package/dist/migration/to/v3.20.0.js +24 -0
- package/dist/migration/to/v3.22.0.d.ts +4 -0
- package/dist/migration/to/v3.22.0.js +25 -0
- package/dist/migration/to/v3.24.0.d.ts +4 -0
- package/dist/migration/to/v3.24.0.js +11 -0
- package/dist/migration/to/v3.25.0.d.ts +4 -0
- package/dist/migration/to/v3.25.0.js +11 -0
- package/dist/migration/to/v3.3.0.d.ts +4 -0
- package/dist/migration/to/v3.3.0.js +13 -0
- package/dist/migration/to/v3.31.0.d.ts +4 -0
- package/dist/migration/to/v3.31.0.js +38 -0
- package/dist/migration/to/v3.32.0.d.ts +4 -0
- package/dist/migration/to/v3.32.0.js +59 -0
- package/dist/migration/to/v3.34.0.d.ts +6 -0
- package/dist/migration/to/v3.34.0.js +111 -0
- package/dist/migration/to/v3.36.0.d.ts +4 -0
- package/dist/migration/to/v3.36.0.js +22 -0
- package/dist/migration/to/v3.39.0.d.ts +4 -0
- package/dist/migration/to/v3.39.0.js +45 -0
- package/dist/migration/to/v3.40.0.d.ts +4 -0
- package/dist/migration/to/v3.40.0.js +26 -0
- package/dist/migration/to/v3.46.0.d.ts +4 -0
- package/dist/migration/to/v3.46.0.js +35 -0
- package/dist/migration/to/v3.57.0.d.ts +4 -0
- package/dist/migration/to/v3.57.0.js +18 -0
- package/dist/migration/to/v3.60.0.d.ts +4 -0
- package/dist/migration/to/v3.60.0.js +129 -0
- package/dist/migration/to/v3.9.0.d.ts +4 -0
- package/dist/migration/to/v3.9.0.js +79 -0
- package/dist/migration/types.d.ts +26 -0
- package/dist/migration/types.js +3 -0
- package/dist/migration/utils.d.ts +2 -0
- package/dist/migration/utils.js +6 -0
- package/dist/mocks.d.ts +14 -0
- package/dist/mocks.js +58 -0
- package/dist/models/agent.d.ts +3 -0
- package/dist/models/agent.js +73 -0
- package/dist/models/project-schema.d.ts +28 -0
- package/dist/models/project-schema.js +186 -0
- package/dist/models/query.d.ts +3 -0
- package/dist/models/query.js +46 -0
- package/dist/models/runtime-schema.d.ts +9 -0
- package/dist/models/runtime-schema.js +20 -0
- package/dist/models/shape.d.ts +4 -0
- package/dist/models/shape.js +36 -0
- package/dist/models/tool.d.ts +4 -0
- package/dist/models/tool.js +147 -0
- package/dist/models/types.d.ts +97 -0
- package/dist/models/types.js +1 -0
- package/dist/models/user-schema.d.ts +7 -0
- package/dist/models/user-schema.js +9 -0
- package/dist/patterns.d.ts +12 -0
- package/dist/patterns.js +1 -0
- package/dist/project-schema/index.d.ts +229 -0
- package/dist/project-schema/index.js +89 -0
- package/dist/project-schema/latest.d.ts +2762 -0
- package/dist/project-schema/latest.js +7 -0
- package/dist/project-schema/migrate.d.ts +4 -0
- package/dist/project-schema/migrate.js +236 -0
- package/dist/project-schema/v1.0.0.d.ts +299 -0
- package/dist/project-schema/v1.0.0.js +7 -0
- package/dist/project-schema/v3.0.0.d.ts +478 -0
- package/dist/project-schema/v3.0.0.js +7 -0
- package/dist/project-schema/v3.1.0.d.ts +621 -0
- package/dist/project-schema/v3.1.0.js +7 -0
- package/dist/project-schema/v3.10.0.d.ts +1201 -0
- package/dist/project-schema/v3.10.0.js +7 -0
- package/dist/project-schema/v3.11.0.d.ts +1210 -0
- package/dist/project-schema/v3.11.0.js +7 -0
- package/dist/project-schema/v3.12.0.d.ts +1214 -0
- package/dist/project-schema/v3.12.0.js +7 -0
- package/dist/project-schema/v3.12.1.d.ts +1273 -0
- package/dist/project-schema/v3.12.1.js +7 -0
- package/dist/project-schema/v3.12.2.d.ts +1283 -0
- package/dist/project-schema/v3.12.2.js +7 -0
- package/dist/project-schema/v3.12.3.d.ts +1306 -0
- package/dist/project-schema/v3.12.3.js +7 -0
- package/dist/project-schema/v3.13.0.d.ts +1317 -0
- package/dist/project-schema/v3.13.0.js +7 -0
- package/dist/project-schema/v3.13.1.d.ts +1412 -0
- package/dist/project-schema/v3.13.1.js +7 -0
- package/dist/project-schema/v3.14.0.d.ts +1436 -0
- package/dist/project-schema/v3.14.0.js +7 -0
- package/dist/project-schema/v3.15.0.d.ts +1458 -0
- package/dist/project-schema/v3.15.0.js +7 -0
- package/dist/project-schema/v3.16.0.d.ts +1470 -0
- package/dist/project-schema/v3.16.0.js +7 -0
- package/dist/project-schema/v3.17.0.d.ts +1467 -0
- package/dist/project-schema/v3.17.0.js +7 -0
- package/dist/project-schema/v3.17.1.d.ts +1468 -0
- package/dist/project-schema/v3.17.1.js +7 -0
- package/dist/project-schema/v3.18.0.d.ts +1333 -0
- package/dist/project-schema/v3.18.0.js +7 -0
- package/dist/project-schema/v3.18.1.d.ts +1332 -0
- package/dist/project-schema/v3.18.1.js +7 -0
- package/dist/project-schema/v3.18.2.d.ts +1332 -0
- package/dist/project-schema/v3.18.2.js +7 -0
- package/dist/project-schema/v3.19.0.d.ts +1336 -0
- package/dist/project-schema/v3.19.0.js +7 -0
- package/dist/project-schema/v3.2.0.d.ts +632 -0
- package/dist/project-schema/v3.2.0.js +7 -0
- package/dist/project-schema/v3.20.0.d.ts +1336 -0
- package/dist/project-schema/v3.20.0.js +7 -0
- package/dist/project-schema/v3.21.0.d.ts +1338 -0
- package/dist/project-schema/v3.21.0.js +7 -0
- package/dist/project-schema/v3.22.0.d.ts +1344 -0
- package/dist/project-schema/v3.22.0.js +7 -0
- package/dist/project-schema/v3.23.0.d.ts +1376 -0
- package/dist/project-schema/v3.23.0.js +7 -0
- package/dist/project-schema/v3.24.0.d.ts +1364 -0
- package/dist/project-schema/v3.24.0.js +7 -0
- package/dist/project-schema/v3.25.0.d.ts +1363 -0
- package/dist/project-schema/v3.25.0.js +7 -0
- package/dist/project-schema/v3.26.0.d.ts +1388 -0
- package/dist/project-schema/v3.26.0.js +7 -0
- package/dist/project-schema/v3.27.0.d.ts +1397 -0
- package/dist/project-schema/v3.27.0.js +7 -0
- package/dist/project-schema/v3.28.0.d.ts +1416 -0
- package/dist/project-schema/v3.28.0.js +7 -0
- package/dist/project-schema/v3.29.0.d.ts +1423 -0
- package/dist/project-schema/v3.29.0.js +7 -0
- package/dist/project-schema/v3.3.0.d.ts +632 -0
- package/dist/project-schema/v3.3.0.js +7 -0
- package/dist/project-schema/v3.30.0.d.ts +1416 -0
- package/dist/project-schema/v3.30.0.js +7 -0
- package/dist/project-schema/v3.31.0.d.ts +1448 -0
- package/dist/project-schema/v3.31.0.js +7 -0
- package/dist/project-schema/v3.32.0.d.ts +1439 -0
- package/dist/project-schema/v3.32.0.js +7 -0
- package/dist/project-schema/v3.33.0.d.ts +1445 -0
- package/dist/project-schema/v3.33.0.js +7 -0
- package/dist/project-schema/v3.34.0.d.ts +1445 -0
- package/dist/project-schema/v3.34.0.js +7 -0
- package/dist/project-schema/v3.35.0.d.ts +1464 -0
- package/dist/project-schema/v3.35.0.js +7 -0
- package/dist/project-schema/v3.36.0.d.ts +1470 -0
- package/dist/project-schema/v3.36.0.js +7 -0
- package/dist/project-schema/v3.37.0.d.ts +1522 -0
- package/dist/project-schema/v3.37.0.js +7 -0
- package/dist/project-schema/v3.38.0.d.ts +1522 -0
- package/dist/project-schema/v3.38.0.js +7 -0
- package/dist/project-schema/v3.39.0.d.ts +1529 -0
- package/dist/project-schema/v3.39.0.js +7 -0
- package/dist/project-schema/v3.4.0.d.ts +624 -0
- package/dist/project-schema/v3.4.0.js +7 -0
- package/dist/project-schema/v3.40.0.d.ts +1530 -0
- package/dist/project-schema/v3.40.0.js +7 -0
- package/dist/project-schema/v3.41.0.d.ts +1530 -0
- package/dist/project-schema/v3.41.0.js +7 -0
- package/dist/project-schema/v3.42.0.d.ts +1534 -0
- package/dist/project-schema/v3.42.0.js +7 -0
- package/dist/project-schema/v3.43.0.d.ts +1536 -0
- package/dist/project-schema/v3.43.0.js +7 -0
- package/dist/project-schema/v3.44.0.d.ts +1621 -0
- package/dist/project-schema/v3.44.0.js +7 -0
- package/dist/project-schema/v3.45.0.d.ts +1650 -0
- package/dist/project-schema/v3.45.0.js +7 -0
- package/dist/project-schema/v3.46.0.d.ts +1703 -0
- package/dist/project-schema/v3.46.0.js +7 -0
- package/dist/project-schema/v3.47.0.d.ts +1736 -0
- package/dist/project-schema/v3.47.0.js +7 -0
- package/dist/project-schema/v3.48.0.d.ts +2208 -0
- package/dist/project-schema/v3.48.0.js +7 -0
- package/dist/project-schema/v3.49.0.d.ts +2217 -0
- package/dist/project-schema/v3.49.0.js +7 -0
- package/dist/project-schema/v3.5.0.d.ts +649 -0
- package/dist/project-schema/v3.5.0.js +7 -0
- package/dist/project-schema/v3.5.1.d.ts +649 -0
- package/dist/project-schema/v3.5.1.js +7 -0
- package/dist/project-schema/v3.50.0.d.ts +2269 -0
- package/dist/project-schema/v3.50.0.js +7 -0
- package/dist/project-schema/v3.51.0.d.ts +2269 -0
- package/dist/project-schema/v3.51.0.js +7 -0
- package/dist/project-schema/v3.52.0.d.ts +2269 -0
- package/dist/project-schema/v3.52.0.js +7 -0
- package/dist/project-schema/v3.53.0.d.ts +2350 -0
- package/dist/project-schema/v3.53.0.js +7 -0
- package/dist/project-schema/v3.54.0.d.ts +2369 -0
- package/dist/project-schema/v3.54.0.js +7 -0
- package/dist/project-schema/v3.55.0.d.ts +2369 -0
- package/dist/project-schema/v3.55.0.js +7 -0
- package/dist/project-schema/v3.56.0.d.ts +2405 -0
- package/dist/project-schema/v3.56.0.js +7 -0
- package/dist/project-schema/v3.57.0.d.ts +2601 -0
- package/dist/project-schema/v3.57.0.js +7 -0
- package/dist/project-schema/v3.58.0.d.ts +2601 -0
- package/dist/project-schema/v3.58.0.js +7 -0
- package/dist/project-schema/v3.59.0.d.ts +2650 -0
- package/dist/project-schema/v3.59.0.js +7 -0
- package/dist/project-schema/v3.6.0.d.ts +658 -0
- package/dist/project-schema/v3.6.0.js +7 -0
- package/dist/project-schema/v3.60.0.d.ts +2678 -0
- package/dist/project-schema/v3.60.0.js +7 -0
- package/dist/project-schema/v3.61.0.d.ts +2678 -0
- package/dist/project-schema/v3.61.0.js +7 -0
- package/dist/project-schema/v3.62.0.d.ts +2693 -0
- package/dist/project-schema/v3.62.0.js +7 -0
- package/dist/project-schema/v3.63.0.d.ts +2701 -0
- package/dist/project-schema/v3.63.0.js +7 -0
- package/dist/project-schema/v3.64.0.d.ts +2710 -0
- package/dist/project-schema/v3.64.0.js +7 -0
- package/dist/project-schema/v3.65.0.d.ts +2762 -0
- package/dist/project-schema/v3.65.0.js +7 -0
- package/dist/project-schema/v3.7.0.d.ts +961 -0
- package/dist/project-schema/v3.7.0.js +7 -0
- package/dist/project-schema/v3.8.0.d.ts +979 -0
- package/dist/project-schema/v3.8.0.js +7 -0
- package/dist/project-schema/v3.9.0.d.ts +1178 -0
- package/dist/project-schema/v3.9.0.js +7 -0
- package/dist/project-schema/v4.0.0.d.ts +1328 -0
- package/dist/project-schema/v4.0.0.js +7 -0
- package/dist/refs.d.ts +220 -0
- package/dist/refs.js +648 -0
- package/dist/relationships.d.ts +40 -0
- package/dist/relationships.js +302 -0
- package/dist/resolvers/ai/abort-agent-message-args.d.ts +16 -0
- package/dist/resolvers/ai/abort-agent-message-args.js +13 -0
- package/dist/resolvers/ai/abort-agent-message-response.d.ts +39 -0
- package/dist/resolvers/ai/abort-agent-message-response.js +19 -0
- package/dist/resolvers/ai/agent-attachment.d.ts +27 -0
- package/dist/resolvers/ai/agent-attachment.js +22 -0
- package/dist/resolvers/ai/agent-chat-args.d.ts +62 -0
- package/dist/resolvers/ai/agent-chat-args.js +30 -0
- package/dist/resolvers/ai/agent-chat-payload.d.ts +35 -0
- package/dist/resolvers/ai/agent-chat-payload.js +26 -0
- package/dist/resolvers/ai/agent-chat-response.d.ts +366 -0
- package/dist/resolvers/ai/agent-chat-response.js +21 -0
- package/dist/resolvers/ai/agent-generate-args.d.ts +62 -0
- package/dist/resolvers/ai/agent-generate-args.js +30 -0
- package/dist/resolvers/ai/agent-message-input.d.ts +73 -0
- package/dist/resolvers/ai/agent-message-input.js +39 -0
- package/dist/resolvers/ai/agent-message-output.d.ts +169 -0
- package/dist/resolvers/ai/agent-message-output.js +77 -0
- package/dist/resolvers/ai/agent-message-payload.d.ts +849 -0
- package/dist/resolvers/ai/agent-message-payload.js +167 -0
- package/dist/resolvers/ai/agent-run-mode.d.ts +8 -0
- package/dist/resolvers/ai/agent-run-mode.js +9 -0
- package/dist/resolvers/ai/agent-session-payload.d.ts +840 -0
- package/dist/resolvers/ai/agent-session-payload.js +218 -0
- package/dist/resolvers/ai/ai-usage-item.d.ts +70 -0
- package/dist/resolvers/ai/ai-usage-item.js +70 -0
- package/dist/resolvers/ai/create-agent-session-response.d.ts +276 -0
- package/dist/resolvers/ai/create-agent-session-response.js +9 -0
- package/dist/resolvers/ai/embedding-search.d.ts +54 -0
- package/dist/resolvers/ai/embedding-search.js +46 -0
- package/dist/resolvers/ai/get-agent-message-args.d.ts +16 -0
- package/dist/resolvers/ai/get-agent-message-args.js +13 -0
- package/dist/resolvers/ai/get-agent-message-response.d.ts +1253 -0
- package/dist/resolvers/ai/get-agent-message-response.js +79 -0
- package/dist/resolvers/ai/inspect-agent-args.d.ts +16 -0
- package/dist/resolvers/ai/inspect-agent-args.js +13 -0
- package/dist/resolvers/ai/inspect-agent-response.d.ts +631 -0
- package/dist/resolvers/ai/inspect-agent-response.js +48 -0
- package/dist/resolvers/ai/send-agent-feedback-args.d.ts +52 -0
- package/dist/resolvers/ai/send-agent-feedback-args.js +16 -0
- package/dist/resolvers/ai/send-agent-message-args.d.ts +48 -0
- package/dist/resolvers/ai/send-agent-message-args.js +36 -0
- package/dist/resolvers/ai/send-agent-message-response.d.ts +432 -0
- package/dist/resolvers/ai/send-agent-message-response.js +51 -0
- package/dist/resolvers/ai/types.d.ts +8 -0
- package/dist/resolvers/ai/types.js +1 -0
- package/dist/resolvers/takeshape/assets/asset-image-meta.d.ts +79 -0
- package/dist/resolvers/takeshape/assets/asset-image-meta.js +98 -0
- package/dist/resolvers/takeshape/assets/asset-image-params.d.ts +901 -0
- package/dist/resolvers/takeshape/assets/asset-image-params.js +726 -0
- package/dist/resolvers/takeshape/assets/asset-image.d.ts +17 -0
- package/dist/resolvers/takeshape/assets/asset-image.js +15 -0
- package/dist/resolvers/takeshape/assets/asset.d.ts +125 -0
- package/dist/resolvers/takeshape/assets/asset.js +107 -0
- package/dist/resolvers/takeshape/assets/constants.d.ts +11 -0
- package/dist/resolvers/takeshape/assets/constants.js +11 -0
- package/dist/resolvers/takeshape/builtins/constants.d.ts +1 -0
- package/dist/resolvers/takeshape/builtins/constants.js +1 -0
- package/dist/runtime-schema.d.ts +6 -0
- package/dist/runtime-schema.js +85 -0
- package/dist/scalars.d.ts +2 -0
- package/dist/scalars.js +4 -0
- package/dist/schema-transform.d.ts +19 -0
- package/dist/schema-transform.js +74 -0
- package/dist/schema-util.d.ts +266 -0
- package/dist/schema-util.js +1127 -0
- package/dist/schemas/auth-schemas.json +400 -0
- package/dist/schemas/index.d.ts +4 -0
- package/dist/schemas/index.js +182 -0
- package/dist/schemas/project-schema/experimental-2025-07.json +1297 -0
- package/dist/schemas/project-schema/latest.d.ts +245 -0
- package/dist/schemas/project-schema/latest.js +25 -0
- package/dist/schemas/project-schema/latest.json +5109 -0
- package/dist/schemas/project-schema/meta-schema-v1.0.0.json +193 -0
- package/dist/schemas/project-schema/meta-schema-v3.0.0.json +608 -0
- package/dist/schemas/project-schema/meta-schema-v3.1.0.json +608 -0
- package/dist/schemas/project-schema/meta-schema-v3.2.0.json +612 -0
- package/dist/schemas/project-schema/meta-schema-v3.3.0.json +612 -0
- package/dist/schemas/project-schema/meta-schema-v3.4.0.json +637 -0
- package/dist/schemas/project-schema/meta-schema-v3.5.0.json +626 -0
- package/dist/schemas/project-schema/meta-schema-v3.5.1.json +626 -0
- package/dist/schemas/project-schema/meta-schema-v3.6.0.json +629 -0
- package/dist/schemas/project-schema/meta-schema-v3.7.0.json +1137 -0
- package/dist/schemas/project-schema/meta-schema-v3.8.0.json +1137 -0
- package/dist/schemas/project-schema/meta-schema-v3.9.0.json +1477 -0
- package/dist/schemas/project-schema/v1.0.0.json +321 -0
- package/dist/schemas/project-schema/v3.0.0.json +414 -0
- package/dist/schemas/project-schema/v3.1.0.json +572 -0
- package/dist/schemas/project-schema/v3.10.0.json +2097 -0
- package/dist/schemas/project-schema/v3.11.0.json +2141 -0
- package/dist/schemas/project-schema/v3.12.0.json +2144 -0
- package/dist/schemas/project-schema/v3.12.1.json +2282 -0
- package/dist/schemas/project-schema/v3.12.2.json +2304 -0
- package/dist/schemas/project-schema/v3.12.3.json +2357 -0
- package/dist/schemas/project-schema/v3.13.0.json +2377 -0
- package/dist/schemas/project-schema/v3.14.0.json +2385 -0
- package/dist/schemas/project-schema/v3.15.0.json +2365 -0
- package/dist/schemas/project-schema/v3.16.0.json +2373 -0
- package/dist/schemas/project-schema/v3.17.0.json +2378 -0
- package/dist/schemas/project-schema/v3.17.1.json +2380 -0
- package/dist/schemas/project-schema/v3.18.0.json +2356 -0
- package/dist/schemas/project-schema/v3.18.1.json +2357 -0
- package/dist/schemas/project-schema/v3.18.2.json +2357 -0
- package/dist/schemas/project-schema/v3.19.0.json +2369 -0
- package/dist/schemas/project-schema/v3.2.0.json +580 -0
- package/dist/schemas/project-schema/v3.20.0.json +2369 -0
- package/dist/schemas/project-schema/v3.21.0.json +2376 -0
- package/dist/schemas/project-schema/v3.22.0.json +2381 -0
- package/dist/schemas/project-schema/v3.23.0.json +2456 -0
- package/dist/schemas/project-schema/v3.24.0.json +2556 -0
- package/dist/schemas/project-schema/v3.25.0.json +2552 -0
- package/dist/schemas/project-schema/v3.26.0.json +2599 -0
- package/dist/schemas/project-schema/v3.27.0.json +2611 -0
- package/dist/schemas/project-schema/v3.28.0.json +2656 -0
- package/dist/schemas/project-schema/v3.29.0.json +2670 -0
- package/dist/schemas/project-schema/v3.3.0.json +581 -0
- package/dist/schemas/project-schema/v3.30.0.json +2656 -0
- package/dist/schemas/project-schema/v3.31.0.json +2714 -0
- package/dist/schemas/project-schema/v3.32.0.json +2708 -0
- package/dist/schemas/project-schema/v3.33.0.json +2715 -0
- package/dist/schemas/project-schema/v3.34.0.json +2715 -0
- package/dist/schemas/project-schema/v3.35.0.json +2748 -0
- package/dist/schemas/project-schema/v3.36.0.json +2756 -0
- package/dist/schemas/project-schema/v3.37.0.json +2821 -0
- package/dist/schemas/project-schema/v3.38.0.json +2819 -0
- package/dist/schemas/project-schema/v3.39.0.json +2827 -0
- package/dist/schemas/project-schema/v3.4.0.json +571 -0
- package/dist/schemas/project-schema/v3.40.0.json +2830 -0
- package/dist/schemas/project-schema/v3.41.0.json +2830 -0
- package/dist/schemas/project-schema/v3.42.0.json +2835 -0
- package/dist/schemas/project-schema/v3.43.0.json +2841 -0
- package/dist/schemas/project-schema/v3.44.0.json +3013 -0
- package/dist/schemas/project-schema/v3.45.0.json +3064 -0
- package/dist/schemas/project-schema/v3.46.0.json +3136 -0
- package/dist/schemas/project-schema/v3.47.0.json +3189 -0
- package/dist/schemas/project-schema/v3.48.0.json +3196 -0
- package/dist/schemas/project-schema/v3.49.0.json +3239 -0
- package/dist/schemas/project-schema/v3.5.0.json +571 -0
- package/dist/schemas/project-schema/v3.5.1.json +571 -0
- package/dist/schemas/project-schema/v3.50.0.json +3320 -0
- package/dist/schemas/project-schema/v3.51.0.json +3326 -0
- package/dist/schemas/project-schema/v3.52.0.json +3326 -0
- package/dist/schemas/project-schema/v3.53.0.json +3476 -0
- package/dist/schemas/project-schema/v3.54.0.json +3512 -0
- package/dist/schemas/project-schema/v3.55.0.json +3515 -0
- package/dist/schemas/project-schema/v3.56.0.json +3530 -0
- package/dist/schemas/project-schema/v3.57.0.json +4815 -0
- package/dist/schemas/project-schema/v3.58.0.json +4815 -0
- package/dist/schemas/project-schema/v3.59.0.json +4912 -0
- package/dist/schemas/project-schema/v3.6.0.json +587 -0
- package/dist/schemas/project-schema/v3.60.0.json +4974 -0
- package/dist/schemas/project-schema/v3.61.0.json +4974 -0
- package/dist/schemas/project-schema/v3.62.0.json +5007 -0
- package/dist/schemas/project-schema/v3.63.0.json +5020 -0
- package/dist/schemas/project-schema/v3.64.0.json +5032 -0
- package/dist/schemas/project-schema/v3.65.0.json +5109 -0
- package/dist/schemas/project-schema/v3.7.0.json +587 -0
- package/dist/schemas/project-schema/v3.8.0.json +604 -0
- package/dist/schemas/project-schema/v3.9.0.json +604 -0
- package/dist/schemas/project-schema/v4.0.0.json +2316 -0
- package/dist/schemas/project-schema.json +232 -0
- package/dist/service-dependencies.d.ts +13 -0
- package/dist/service-dependencies.js +165 -0
- package/dist/services/services.d.ts +31 -0
- package/dist/services/services.js +145 -0
- package/dist/services/types.d.ts +11 -0
- package/dist/services/types.js +1 -0
- package/dist/services/util.d.ts +16 -0
- package/dist/services/util.js +36 -0
- package/dist/shape-paths.d.ts +7 -0
- package/dist/shape-paths.js +40 -0
- package/dist/taxonomies.d.ts +15 -0
- package/dist/taxonomies.js +24 -0
- package/dist/template-shapes/index.d.ts +7 -0
- package/dist/template-shapes/index.js +33 -0
- package/dist/template-shapes/names.d.ts +10 -0
- package/dist/template-shapes/names.js +21 -0
- package/dist/template-shapes/templates.d.ts +32 -0
- package/dist/template-shapes/templates.js +316 -0
- package/dist/template-shapes/types.d.ts +15 -0
- package/dist/template-shapes/types.js +7 -0
- package/dist/template-shapes/where.d.ts +37 -0
- package/dist/template-shapes/where.js +415 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.js +2 -0
- package/dist/types/transforms.d.ts +15 -0
- package/dist/types/transforms.js +1 -0
- package/dist/types/types.d.ts +206 -0
- package/dist/types/types.js +10 -0
- package/dist/types/utils.d.ts +112 -0
- package/dist/types/utils.js +269 -0
- package/dist/unions.d.ts +14 -0
- package/dist/unions.js +77 -0
- package/dist/util/agent-utils.d.ts +2 -0
- package/dist/util/agent-utils.js +7 -0
- package/dist/util/api-indexing.d.ts +9 -0
- package/dist/util/api-indexing.js +57 -0
- package/dist/util/coerce-value.d.ts +9 -0
- package/dist/util/coerce-value.js +32 -0
- package/dist/util/detect-cycles.d.ts +7 -0
- package/dist/util/detect-cycles.js +45 -0
- package/dist/util/expressions.d.ts +34 -0
- package/dist/util/expressions.js +350 -0
- package/dist/util/find-shape-at-path.d.ts +21 -0
- package/dist/util/find-shape-at-path.js +53 -0
- package/dist/util/form-config.d.ts +11 -0
- package/dist/util/form-config.js +62 -0
- package/dist/util/get-conflicting-properties.d.ts +6 -0
- package/dist/util/get-conflicting-properties.js +55 -0
- package/dist/util/get-return-shape.d.ts +4 -0
- package/dist/util/get-return-shape.js +30 -0
- package/dist/util/graphql-string.d.ts +6 -0
- package/dist/util/graphql-string.js +75 -0
- package/dist/util/has-arg.d.ts +6 -0
- package/dist/util/has-arg.js +25 -0
- package/dist/util/is-asset-property.d.ts +3 -0
- package/dist/util/is-asset-property.js +11 -0
- package/dist/util/merge.d.ts +17 -0
- package/dist/util/merge.js +278 -0
- package/dist/util/patch-schema.d.ts +13 -0
- package/dist/util/patch-schema.js +89 -0
- package/dist/util/query-field-path.d.ts +9 -0
- package/dist/util/query-field-path.js +23 -0
- package/dist/util/shapes.d.ts +5 -0
- package/dist/util/shapes.js +22 -0
- package/dist/util/tools.d.ts +10 -0
- package/dist/util/tools.js +39 -0
- package/dist/validate/ai.d.ts +6 -0
- package/dist/validate/ai.js +221 -0
- package/dist/validate/errors.d.ts +3 -0
- package/dist/validate/errors.js +20 -0
- package/dist/validate/types.d.ts +43 -0
- package/dist/validate/types.js +1 -0
- package/dist/validate/util.d.ts +9 -0
- package/dist/validate/util.js +62 -0
- package/dist/validate/validate.d.ts +41 -0
- package/dist/validate/validate.js +1042 -0
- package/dist/versions.d.ts +4 -0
- package/dist/versions.js +4 -0
- package/dist/workflows.d.ts +14 -0
- package/dist/workflows.js +66 -0
- package/package.json +6 -6
|
@@ -0,0 +1,1297 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://schema.takeshape.io/project-schema/experimental-2025-07#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"agent": {
|
|
6
|
+
"title": "Agent JSON",
|
|
7
|
+
"description": "An Agent is a configuration for an AI service such as a chat bot or a search engine.",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"description": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"systemPrompt": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"api": {
|
|
17
|
+
"$ref": "#/definitions/agentApi"
|
|
18
|
+
},
|
|
19
|
+
"memory": {
|
|
20
|
+
"$ref": "#/definitions/agentMemory"
|
|
21
|
+
},
|
|
22
|
+
"start": {
|
|
23
|
+
"$ref": "#/definitions/agentStart"
|
|
24
|
+
},
|
|
25
|
+
"states": {
|
|
26
|
+
"$ref": "#/definitions/agentStateMap"
|
|
27
|
+
},
|
|
28
|
+
"guards": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"items": {
|
|
31
|
+
"$ref": "#/definitions/agentGuard"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"historyStrategies": {
|
|
35
|
+
"$ref": "#/definitions/historyStrategyMap"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"required": ["start", "states", "api"],
|
|
39
|
+
"additionalProperties": false
|
|
40
|
+
},
|
|
41
|
+
"historyStrategyMap": {
|
|
42
|
+
"title": "History Strategy Map",
|
|
43
|
+
"type": "object",
|
|
44
|
+
"patternProperties": {
|
|
45
|
+
"^[0-9A-Za-z_]+$": {
|
|
46
|
+
"$ref": "#/definitions/historyStrategy"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"additionalProperties": false
|
|
50
|
+
},
|
|
51
|
+
"historyStrategy": {
|
|
52
|
+
"title": "History Strategy",
|
|
53
|
+
"type": "object",
|
|
54
|
+
"properties": {
|
|
55
|
+
"name": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
"variables": {
|
|
59
|
+
"title": "Variables",
|
|
60
|
+
"type": "array",
|
|
61
|
+
"items": {
|
|
62
|
+
"$ref": "#/definitions/agentVariable"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"filter": {
|
|
66
|
+
"$ref": "#/definitions/historyStrategyFilter"
|
|
67
|
+
},
|
|
68
|
+
"transform": {
|
|
69
|
+
"$ref": "#/definitions/historyStrategyTransform"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"required": ["name", "transform"],
|
|
73
|
+
"additionalProperties": false
|
|
74
|
+
},
|
|
75
|
+
"historyStrategyFilter": {
|
|
76
|
+
"title": "History Strategy Filter",
|
|
77
|
+
"type": "object",
|
|
78
|
+
"properties": {
|
|
79
|
+
"toolCalls": {
|
|
80
|
+
"enum": ["retain", "clear"]
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"additionalProperties": false
|
|
84
|
+
},
|
|
85
|
+
"historyStrategyTransform": {
|
|
86
|
+
"title": "History Strategy Transform",
|
|
87
|
+
"discriminator": {
|
|
88
|
+
"propertyName": "type"
|
|
89
|
+
},
|
|
90
|
+
"oneOf": [
|
|
91
|
+
{
|
|
92
|
+
"$ref": "#/definitions/historyStrategyTransformNone"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"$ref": "#/definitions/historyStrategyTransformReplace"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"$ref": "#/definitions/historyStrategyTransformSummarize"
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"historyStrategyTransformNone": {
|
|
103
|
+
"title": "History Strategy Transform None",
|
|
104
|
+
"type": "object",
|
|
105
|
+
"properties": {
|
|
106
|
+
"type": {
|
|
107
|
+
"enum": ["none"]
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"required": ["type"],
|
|
111
|
+
"additionalProperties": false
|
|
112
|
+
},
|
|
113
|
+
"historyStrategyTransformReplace": {
|
|
114
|
+
"title": "History Strategy Transform Replace",
|
|
115
|
+
"type": "object",
|
|
116
|
+
"properties": {
|
|
117
|
+
"type": {
|
|
118
|
+
"enum": ["replace"]
|
|
119
|
+
},
|
|
120
|
+
"template": {
|
|
121
|
+
"type": "string"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"required": ["type", "template"],
|
|
125
|
+
"additionalProperties": false
|
|
126
|
+
},
|
|
127
|
+
"historyStrategyTransformSummarize": {
|
|
128
|
+
"title": "History Strategy Transform Summarize",
|
|
129
|
+
"type": "object",
|
|
130
|
+
"properties": {
|
|
131
|
+
"type": {
|
|
132
|
+
"enum": ["generate"]
|
|
133
|
+
},
|
|
134
|
+
"service": {
|
|
135
|
+
"type": "string"
|
|
136
|
+
},
|
|
137
|
+
"model": {
|
|
138
|
+
"type": "string"
|
|
139
|
+
},
|
|
140
|
+
"systemPrompt": {
|
|
141
|
+
"type": "string"
|
|
142
|
+
},
|
|
143
|
+
"tools": {
|
|
144
|
+
"type": "array",
|
|
145
|
+
"items": {
|
|
146
|
+
"$ref": "#/definitions/agentToolConfig"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"options": {
|
|
150
|
+
"$ref": "#/definitions/agentGenerateOptions"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"required": ["type", "service", "model", "systemPrompt"],
|
|
154
|
+
"additionalProperties": false
|
|
155
|
+
},
|
|
156
|
+
"tool": {
|
|
157
|
+
"title": "Tool JSON",
|
|
158
|
+
"type": "object",
|
|
159
|
+
"properties": {
|
|
160
|
+
"name": {
|
|
161
|
+
"type": "string"
|
|
162
|
+
},
|
|
163
|
+
"ref": {
|
|
164
|
+
"type": "string"
|
|
165
|
+
},
|
|
166
|
+
"description": {
|
|
167
|
+
"type": "string"
|
|
168
|
+
},
|
|
169
|
+
"args": {
|
|
170
|
+
"type": "array",
|
|
171
|
+
"items": {
|
|
172
|
+
"$ref": "#/definitions/toolArg"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"selectionSet": {
|
|
176
|
+
"type": "string"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"required": ["name", "ref"],
|
|
180
|
+
"additionalProperties": false
|
|
181
|
+
},
|
|
182
|
+
"toolArg": {
|
|
183
|
+
"title": "Tool Arg",
|
|
184
|
+
"type": "object",
|
|
185
|
+
"discriminator": {
|
|
186
|
+
"propertyName": "type"
|
|
187
|
+
},
|
|
188
|
+
"oneOf": [
|
|
189
|
+
{
|
|
190
|
+
"$ref": "#/definitions/agentToolConfigArgAgent"
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
"agentApi": {
|
|
195
|
+
"title": "Agent API",
|
|
196
|
+
"type": "object",
|
|
197
|
+
"properties": {
|
|
198
|
+
"inputs": {
|
|
199
|
+
"type": "array",
|
|
200
|
+
"items": {
|
|
201
|
+
"$ref": "#/definitions/agentApiInput"
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"required": ["inputs"],
|
|
206
|
+
"additionalProperties": false
|
|
207
|
+
},
|
|
208
|
+
"agentMemory": {
|
|
209
|
+
"title": "Agent Memory",
|
|
210
|
+
"type": "object",
|
|
211
|
+
"properties": {
|
|
212
|
+
"sessionMemory": {
|
|
213
|
+
"$ref": "#/definitions/agentSessionMemory"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"required": ["sessionMemory"],
|
|
217
|
+
"additionalProperties": false
|
|
218
|
+
},
|
|
219
|
+
"agentSessionMemory": {
|
|
220
|
+
"title": "Agent Session Memory",
|
|
221
|
+
"type": "object",
|
|
222
|
+
"properties": {
|
|
223
|
+
"shape": {
|
|
224
|
+
"type": "string"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"required": [],
|
|
228
|
+
"additionalProperties": false
|
|
229
|
+
},
|
|
230
|
+
"agentVariable": {
|
|
231
|
+
"title": "Agent Variable",
|
|
232
|
+
"type": "object",
|
|
233
|
+
"properties": {
|
|
234
|
+
"name": {
|
|
235
|
+
"type": "string"
|
|
236
|
+
},
|
|
237
|
+
"steps": {
|
|
238
|
+
"description": "These are evaluated in order until a value is found.",
|
|
239
|
+
"type": "array",
|
|
240
|
+
"items": {
|
|
241
|
+
"$ref": "#/definitions/agentVariableStep"
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"required": ["name", "steps"],
|
|
246
|
+
"additionalProperties": false
|
|
247
|
+
},
|
|
248
|
+
"agentVariableStep": {
|
|
249
|
+
"title": "Agent Variable Step",
|
|
250
|
+
"type": "object",
|
|
251
|
+
"properties": {
|
|
252
|
+
"condition": {
|
|
253
|
+
"type": "string"
|
|
254
|
+
},
|
|
255
|
+
"expression": {
|
|
256
|
+
"type": "string"
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
"required": ["expression"],
|
|
260
|
+
"additionalProperties": false
|
|
261
|
+
},
|
|
262
|
+
"agentStart": {
|
|
263
|
+
"title": "Agent Start",
|
|
264
|
+
"description": "Configuration for the start of an agent's execution",
|
|
265
|
+
"type": "object",
|
|
266
|
+
"properties": {
|
|
267
|
+
"transitions": {
|
|
268
|
+
"type": "array",
|
|
269
|
+
"items": {
|
|
270
|
+
"$ref": "#/definitions/agentTransitionSuspend"
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"required": ["transitions"],
|
|
275
|
+
"additionalProperties": false
|
|
276
|
+
},
|
|
277
|
+
"agentStateMap": {
|
|
278
|
+
"title": "Agent States",
|
|
279
|
+
"description": "States that are traversed during the execution of an agent.",
|
|
280
|
+
"type": "object",
|
|
281
|
+
"patternProperties": {
|
|
282
|
+
"^[0-9A-Za-z_]+$": {
|
|
283
|
+
"$ref": "#/definitions/agentState"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"additionalProperties": false
|
|
287
|
+
},
|
|
288
|
+
"agentState": {
|
|
289
|
+
"title": "Agent State",
|
|
290
|
+
"description": "One step of an agent's execution.",
|
|
291
|
+
"type": "object",
|
|
292
|
+
"properties": {
|
|
293
|
+
"name": {
|
|
294
|
+
"type": "string",
|
|
295
|
+
"pattern": "^[a-zA-Z][0-9A-Za-z_]*$"
|
|
296
|
+
},
|
|
297
|
+
"variables": {
|
|
298
|
+
"title": "Variables",
|
|
299
|
+
"type": "array",
|
|
300
|
+
"items": {
|
|
301
|
+
"$ref": "#/definitions/agentVariable"
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
"execution": {
|
|
305
|
+
"$ref": "#/definitions/agentExecution"
|
|
306
|
+
},
|
|
307
|
+
"transitions": {
|
|
308
|
+
"type": "array",
|
|
309
|
+
"items": {
|
|
310
|
+
"$ref": "#/definitions/agentTransition"
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
"required": ["name", "execution"],
|
|
315
|
+
"additionalProperties": false
|
|
316
|
+
},
|
|
317
|
+
"agentExecution": {
|
|
318
|
+
"title": "Agent Execution",
|
|
319
|
+
"discriminator": {
|
|
320
|
+
"propertyName": "type"
|
|
321
|
+
},
|
|
322
|
+
"oneOf": [
|
|
323
|
+
{
|
|
324
|
+
"$ref": "#/definitions/agentExecutionGraphql"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"$ref": "#/definitions/agentExecutionGenerate"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"$ref": "#/definitions/agentExecutionChat"
|
|
331
|
+
}
|
|
332
|
+
]
|
|
333
|
+
},
|
|
334
|
+
"agentApiInput": {
|
|
335
|
+
"title": "Agent API Input",
|
|
336
|
+
"discriminator": {
|
|
337
|
+
"propertyName": "type"
|
|
338
|
+
},
|
|
339
|
+
"oneOf": [
|
|
340
|
+
{
|
|
341
|
+
"$ref": "#/definitions/agentApiMutationInput"
|
|
342
|
+
}
|
|
343
|
+
]
|
|
344
|
+
},
|
|
345
|
+
"agentApiMutationInput": {
|
|
346
|
+
"title": "Agent API Mutation Input",
|
|
347
|
+
"type": "object",
|
|
348
|
+
"properties": {
|
|
349
|
+
"type": {
|
|
350
|
+
"enum": ["mutation"]
|
|
351
|
+
},
|
|
352
|
+
"name": {
|
|
353
|
+
"type": "string",
|
|
354
|
+
"pattern": "^[0-9A-Za-z_]+$"
|
|
355
|
+
},
|
|
356
|
+
"args": {
|
|
357
|
+
"type": "string"
|
|
358
|
+
},
|
|
359
|
+
"interactionTimeout": {
|
|
360
|
+
"title": "Interaction Timeout (milliseconds)",
|
|
361
|
+
"type": "integer"
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
"required": ["type", "name", "args"],
|
|
365
|
+
"additionalProperties": false
|
|
366
|
+
},
|
|
367
|
+
"agentExecutionGraphql": {
|
|
368
|
+
"title": "Agent Execution GraphQL",
|
|
369
|
+
"type": "object",
|
|
370
|
+
"properties": {
|
|
371
|
+
"type": {
|
|
372
|
+
"enum": ["graphql"]
|
|
373
|
+
},
|
|
374
|
+
"query": {
|
|
375
|
+
"type": "string"
|
|
376
|
+
},
|
|
377
|
+
"path": {
|
|
378
|
+
"type": "string"
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
"required": ["type", "query"],
|
|
382
|
+
"additionalProperties": false
|
|
383
|
+
},
|
|
384
|
+
"agentStateSessionMemoryAssignment": {
|
|
385
|
+
"title": "Agent State Session Memory Assignment",
|
|
386
|
+
"type": "object",
|
|
387
|
+
"properties": {
|
|
388
|
+
"memoryPath": {
|
|
389
|
+
"type": "string"
|
|
390
|
+
},
|
|
391
|
+
"expression": {
|
|
392
|
+
"type": "string"
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
"required": ["expression"],
|
|
396
|
+
"additionalProperties": false
|
|
397
|
+
},
|
|
398
|
+
"agentAiStateInputArg": {
|
|
399
|
+
"title": "Agent AI State Input Argument",
|
|
400
|
+
"type": "object",
|
|
401
|
+
"properties": {
|
|
402
|
+
"type": {
|
|
403
|
+
"enum": ["arg"]
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
"required": ["type"],
|
|
407
|
+
"additionalProperties": false
|
|
408
|
+
},
|
|
409
|
+
"agentAiStateInputTemplate": {
|
|
410
|
+
"title": "Agent AI State Input Template",
|
|
411
|
+
"type": "object",
|
|
412
|
+
"properties": {
|
|
413
|
+
"type": {
|
|
414
|
+
"enum": ["template"]
|
|
415
|
+
},
|
|
416
|
+
"inputTemplate": {
|
|
417
|
+
"type": "string"
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
"required": ["type", "inputTemplate"],
|
|
421
|
+
"additionalProperties": false
|
|
422
|
+
},
|
|
423
|
+
"agentAiStateInput": {
|
|
424
|
+
"title": "Agent AI State Input",
|
|
425
|
+
"type": "object",
|
|
426
|
+
"discriminator": {
|
|
427
|
+
"propertyName": "type"
|
|
428
|
+
},
|
|
429
|
+
"oneOf": [
|
|
430
|
+
{
|
|
431
|
+
"$ref": "#/definitions/agentAiStateInputArg"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"$ref": "#/definitions/agentAiStateInputTemplate"
|
|
435
|
+
}
|
|
436
|
+
]
|
|
437
|
+
},
|
|
438
|
+
"agentGenerateOptions": {
|
|
439
|
+
"title": "AgentGenerateOptions",
|
|
440
|
+
"type": "object",
|
|
441
|
+
"properties": {
|
|
442
|
+
"history": {
|
|
443
|
+
"title": "history",
|
|
444
|
+
"type": "boolean"
|
|
445
|
+
},
|
|
446
|
+
"maxTokens": {
|
|
447
|
+
"type": "integer",
|
|
448
|
+
"title": "Maximum Tokens",
|
|
449
|
+
"description": "Maximum number of tokens to generate. Defaults to 1024"
|
|
450
|
+
},
|
|
451
|
+
"temperature": {
|
|
452
|
+
"type": "number",
|
|
453
|
+
"title": "Temperature",
|
|
454
|
+
"description": "This is a number between 0 (almost no randomness) and 1 (very random). It is recommended to set either `temperature` or `topP`, but not both. Defaults to 0",
|
|
455
|
+
"minimum": 0,
|
|
456
|
+
"maximum": 1
|
|
457
|
+
},
|
|
458
|
+
"topP": {
|
|
459
|
+
"type": "number",
|
|
460
|
+
"title": "Top P",
|
|
461
|
+
"description": "Nucleus sampling. This is a number between 0 and 1. E.g. 0.1 would mean that only tokens with the top 10% probability mass are considered. It is recommended to set either `temperature` or `topP`, but not both.",
|
|
462
|
+
"minimum": 0,
|
|
463
|
+
"maximum": 1
|
|
464
|
+
},
|
|
465
|
+
"topK": {
|
|
466
|
+
"type": "number",
|
|
467
|
+
"title": "Top K",
|
|
468
|
+
"description": "Only sample from the top K options for each subsequent token. Used to remove \"long tail\" low probability responses. Recommended for advanced use cases only. You usually only need to use temperature."
|
|
469
|
+
},
|
|
470
|
+
"presencePenalty": {
|
|
471
|
+
"type": "number",
|
|
472
|
+
"title": "Presence penalty setting",
|
|
473
|
+
"description": "It affects the likelihood of the model to repeat information that is already in the prompt. The presence penalty is a number between -1 (increase repetition) and 1 (maximum penalty, decrease repetition). 0 means no penalty.",
|
|
474
|
+
"minimum": -1,
|
|
475
|
+
"maximum": 1
|
|
476
|
+
},
|
|
477
|
+
"frequencyPenalty": {
|
|
478
|
+
"type": "number",
|
|
479
|
+
"title": "Frequency penalty setting",
|
|
480
|
+
"description": "It affects the likelihood of the model to repeatedly use the same words or phrases. The frequency penalty is a number between -1 (increase repetition) and 1 (maximum penalty, decrease repetition). 0 means no penalty.",
|
|
481
|
+
"minimum": -1,
|
|
482
|
+
"maximum": 1
|
|
483
|
+
},
|
|
484
|
+
"stopSequences": {
|
|
485
|
+
"title": "Stop sequences",
|
|
486
|
+
"description": "If set, the model will stop generating text when one of the stop sequences is generated.",
|
|
487
|
+
"type": "array",
|
|
488
|
+
"items": {
|
|
489
|
+
"type": "string"
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
"seed": {
|
|
493
|
+
"type": "integer",
|
|
494
|
+
"title": "Seed",
|
|
495
|
+
"description": " The seed (integer) to use for random sampling. If set and supported by the model, calls will generate deterministic results."
|
|
496
|
+
},
|
|
497
|
+
"maxRetries": {
|
|
498
|
+
"type": "integer",
|
|
499
|
+
"description": "Maximum number of retries. Set to 0 to disable retries. Defaults to 2"
|
|
500
|
+
},
|
|
501
|
+
"toolChoice": {
|
|
502
|
+
"type": "string",
|
|
503
|
+
"description": "The tool choice strategy. Default: 'auto'",
|
|
504
|
+
"anyOf": [
|
|
505
|
+
{
|
|
506
|
+
"enum": ["auto", "none", "required"]
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"type": "string"
|
|
510
|
+
}
|
|
511
|
+
]
|
|
512
|
+
},
|
|
513
|
+
"maxToolRoundtrips": {
|
|
514
|
+
"type": "integer",
|
|
515
|
+
"title": "Max Tool Roundtrips",
|
|
516
|
+
"description": "Maximal number of automatic roundtrips for tool calls."
|
|
517
|
+
},
|
|
518
|
+
"structuredOutputs": {
|
|
519
|
+
"type": "boolean",
|
|
520
|
+
"title": "Structured Outputs",
|
|
521
|
+
"description": "If true, structured outputs will be enabled on the model for non-text requests."
|
|
522
|
+
},
|
|
523
|
+
"enableOpenAIFormat": {
|
|
524
|
+
"type": "boolean",
|
|
525
|
+
"title": "Enable OpenAI Schema Format",
|
|
526
|
+
"description": "Enable OpenAI schema format. Must be enabled if `structuredOutputs` is enabled."
|
|
527
|
+
},
|
|
528
|
+
"removePropertyKeyPatterns": {
|
|
529
|
+
"$ref": "#/definitions/removePropertyKeyPatterns"
|
|
530
|
+
},
|
|
531
|
+
"stripMarkdown": {
|
|
532
|
+
"type": "boolean",
|
|
533
|
+
"title": "Strip Markdown",
|
|
534
|
+
"description": "Remove Markdown formatting from the LLM response"
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
"additionalProperties": false
|
|
538
|
+
},
|
|
539
|
+
"agentGuard": {
|
|
540
|
+
"title": "Agent Guard",
|
|
541
|
+
"type": "object",
|
|
542
|
+
"properties": {
|
|
543
|
+
"guardId": {
|
|
544
|
+
"title": "Guard ID",
|
|
545
|
+
"type": "string"
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
"required": ["guardId"],
|
|
549
|
+
"additionalProperties": false
|
|
550
|
+
},
|
|
551
|
+
"agentToolConfig": {
|
|
552
|
+
"title": "AgentToolConfig",
|
|
553
|
+
"type": "object",
|
|
554
|
+
"properties": {
|
|
555
|
+
"name": {
|
|
556
|
+
"type": "string"
|
|
557
|
+
},
|
|
558
|
+
"ref": {
|
|
559
|
+
"type": "string"
|
|
560
|
+
},
|
|
561
|
+
"description": {
|
|
562
|
+
"type": "string"
|
|
563
|
+
},
|
|
564
|
+
"args": {
|
|
565
|
+
"type": "array",
|
|
566
|
+
"items": {
|
|
567
|
+
"$ref": "#/definitions/agentToolConfigArg"
|
|
568
|
+
}
|
|
569
|
+
},
|
|
570
|
+
"selectionSet": {
|
|
571
|
+
"type": "string"
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
"required": ["name", "ref"],
|
|
575
|
+
"additionalProperties": false
|
|
576
|
+
},
|
|
577
|
+
"agentToolConfigArg": {
|
|
578
|
+
"title": "Agent Tool Config Arg",
|
|
579
|
+
"type": "object",
|
|
580
|
+
"discriminator": {
|
|
581
|
+
"propertyName": "type"
|
|
582
|
+
},
|
|
583
|
+
"oneOf": [
|
|
584
|
+
{
|
|
585
|
+
"$ref": "#/definitions/agentToolConfigArgAgent"
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"$ref": "#/definitions/agentToolConfigArgVariable"
|
|
589
|
+
}
|
|
590
|
+
]
|
|
591
|
+
},
|
|
592
|
+
"agentToolConfigArgAgent": {
|
|
593
|
+
"title": "Agent-Controlled",
|
|
594
|
+
"type": "object",
|
|
595
|
+
"properties": {
|
|
596
|
+
"type": {
|
|
597
|
+
"enum": ["agent"]
|
|
598
|
+
},
|
|
599
|
+
"argName": {
|
|
600
|
+
"title": "Tool Argument Name",
|
|
601
|
+
"type": "string",
|
|
602
|
+
"description": "The argument name that will be exposed by the tool for the LLM to use."
|
|
603
|
+
}
|
|
604
|
+
},
|
|
605
|
+
"required": ["type", "argName"],
|
|
606
|
+
"additionalProperties": false
|
|
607
|
+
},
|
|
608
|
+
"agentToolConfigArgVariable": {
|
|
609
|
+
"title": "Variable Value",
|
|
610
|
+
"type": "object",
|
|
611
|
+
"properties": {
|
|
612
|
+
"type": {
|
|
613
|
+
"enum": ["variable"]
|
|
614
|
+
},
|
|
615
|
+
"argName": {
|
|
616
|
+
"title": "Tool Argument Name",
|
|
617
|
+
"type": "string",
|
|
618
|
+
"description": "Name of argument to pass value to. This prevents the LLM from setting the argument."
|
|
619
|
+
},
|
|
620
|
+
"variableName": {
|
|
621
|
+
"title": "State Variable Name",
|
|
622
|
+
"type": "string",
|
|
623
|
+
"description": "Name of variable to pull value from."
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
"required": ["type", "argName", "variableName"],
|
|
627
|
+
"additionalProperties": false
|
|
628
|
+
},
|
|
629
|
+
"agentExecutionGenerate": {
|
|
630
|
+
"title": "Agent Execution Generate",
|
|
631
|
+
"type": "object",
|
|
632
|
+
"properties": {
|
|
633
|
+
"type": {
|
|
634
|
+
"enum": ["generate"]
|
|
635
|
+
},
|
|
636
|
+
"service": {
|
|
637
|
+
"type": "string"
|
|
638
|
+
},
|
|
639
|
+
"model": {
|
|
640
|
+
"type": "string"
|
|
641
|
+
},
|
|
642
|
+
"systemPrompt": {
|
|
643
|
+
"type": "string"
|
|
644
|
+
},
|
|
645
|
+
"input": {
|
|
646
|
+
"$ref": "#/definitions/agentAiStateInput"
|
|
647
|
+
},
|
|
648
|
+
"outputShape": {
|
|
649
|
+
"type": "string"
|
|
650
|
+
},
|
|
651
|
+
"tools": {
|
|
652
|
+
"type": "array",
|
|
653
|
+
"items": {
|
|
654
|
+
"$ref": "#/definitions/agentToolConfig"
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
"options": {
|
|
658
|
+
"$ref": "#/definitions/agentGenerateOptions"
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
"required": ["type", "service", "model", "input"],
|
|
662
|
+
"additionalProperties": false
|
|
663
|
+
},
|
|
664
|
+
"agentExecutionChat": {
|
|
665
|
+
"title": "Agent Execution Chat",
|
|
666
|
+
"type": "object",
|
|
667
|
+
"properties": {
|
|
668
|
+
"type": {
|
|
669
|
+
"enum": ["chat"]
|
|
670
|
+
},
|
|
671
|
+
"service": {
|
|
672
|
+
"type": "string"
|
|
673
|
+
},
|
|
674
|
+
"model": {
|
|
675
|
+
"type": "string"
|
|
676
|
+
},
|
|
677
|
+
"systemPrompt": {
|
|
678
|
+
"type": "string"
|
|
679
|
+
},
|
|
680
|
+
"input": {
|
|
681
|
+
"$ref": "#/definitions/agentAiStateInput"
|
|
682
|
+
},
|
|
683
|
+
"artifact": {
|
|
684
|
+
"type": "string"
|
|
685
|
+
},
|
|
686
|
+
"tools": {
|
|
687
|
+
"type": "array",
|
|
688
|
+
"items": {
|
|
689
|
+
"$ref": "#/definitions/agentToolConfig"
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
"options": {
|
|
693
|
+
"$ref": "#/definitions/agentGenerateOptions"
|
|
694
|
+
}
|
|
695
|
+
},
|
|
696
|
+
"required": ["type", "service", "model", "input"],
|
|
697
|
+
"additionalProperties": false
|
|
698
|
+
},
|
|
699
|
+
"agentTransition": {
|
|
700
|
+
"title": "Agent Transition",
|
|
701
|
+
"description": "These steps are evaluated in order until a destination is found.",
|
|
702
|
+
"discriminator": {
|
|
703
|
+
"propertyName": "type"
|
|
704
|
+
},
|
|
705
|
+
"oneOf": [
|
|
706
|
+
{
|
|
707
|
+
"$ref": "#/definitions/agentTransitionImmediate"
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"$ref": "#/definitions/agentTransitionSuspend"
|
|
711
|
+
}
|
|
712
|
+
]
|
|
713
|
+
},
|
|
714
|
+
"agentTransitionSuspend": {
|
|
715
|
+
"title": "Agent Transition Suspend",
|
|
716
|
+
"type": "object",
|
|
717
|
+
"properties": {
|
|
718
|
+
"type": {
|
|
719
|
+
"enum": ["suspend"]
|
|
720
|
+
},
|
|
721
|
+
"destination": {
|
|
722
|
+
"type": "string",
|
|
723
|
+
"pattern": "^[0-9A-Za-z_]+$"
|
|
724
|
+
},
|
|
725
|
+
"input": {
|
|
726
|
+
"type": "string"
|
|
727
|
+
},
|
|
728
|
+
"condition": {
|
|
729
|
+
"type": "string"
|
|
730
|
+
},
|
|
731
|
+
"limit": {
|
|
732
|
+
"type": "integer"
|
|
733
|
+
},
|
|
734
|
+
"sessionMemory": {
|
|
735
|
+
"title": "Agent State Session Memory",
|
|
736
|
+
"type": "array",
|
|
737
|
+
"items": {
|
|
738
|
+
"$ref": "#/definitions/agentStateSessionMemoryAssignment"
|
|
739
|
+
}
|
|
740
|
+
},
|
|
741
|
+
"historyStrategy": {
|
|
742
|
+
"type": "string"
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
"additionalProperties": false,
|
|
746
|
+
"required": ["type", "destination", "input"]
|
|
747
|
+
},
|
|
748
|
+
"agentTransitionImmediate": {
|
|
749
|
+
"title": "Agent Transition Immediate",
|
|
750
|
+
"type": "object",
|
|
751
|
+
"properties": {
|
|
752
|
+
"type": {
|
|
753
|
+
"enum": ["immediate"]
|
|
754
|
+
},
|
|
755
|
+
"destination": {
|
|
756
|
+
"type": "string",
|
|
757
|
+
"pattern": "^[0-9A-Za-z_]+$"
|
|
758
|
+
},
|
|
759
|
+
"condition": {
|
|
760
|
+
"type": "string"
|
|
761
|
+
},
|
|
762
|
+
"limit": {
|
|
763
|
+
"type": "integer"
|
|
764
|
+
},
|
|
765
|
+
"sessionMemory": {
|
|
766
|
+
"title": "Agent State Session Memory",
|
|
767
|
+
"type": "array",
|
|
768
|
+
"items": {
|
|
769
|
+
"$ref": "#/definitions/agentStateSessionMemoryAssignment"
|
|
770
|
+
}
|
|
771
|
+
},
|
|
772
|
+
"historyStrategy": {
|
|
773
|
+
"type": "string"
|
|
774
|
+
}
|
|
775
|
+
},
|
|
776
|
+
"additionalProperties": false,
|
|
777
|
+
"required": ["type", "destination"]
|
|
778
|
+
},
|
|
779
|
+
"agentMap": {
|
|
780
|
+
"title": "Agent Map",
|
|
781
|
+
"type": "object",
|
|
782
|
+
"patternProperties": {
|
|
783
|
+
"^[0-9A-Za-z_]+$": {
|
|
784
|
+
"$ref": "#/definitions/agent"
|
|
785
|
+
}
|
|
786
|
+
},
|
|
787
|
+
"additionalProperties": false
|
|
788
|
+
},
|
|
789
|
+
"toolMap": {
|
|
790
|
+
"title": "Tool Map",
|
|
791
|
+
"type": "object",
|
|
792
|
+
"patternProperties": {
|
|
793
|
+
"^[0-9A-Za-z_]+$": {
|
|
794
|
+
"$ref": "#/definitions/tool"
|
|
795
|
+
}
|
|
796
|
+
},
|
|
797
|
+
"additionalProperties": false
|
|
798
|
+
},
|
|
799
|
+
"mcpConfig": {
|
|
800
|
+
"title": "MCP Server Configuration",
|
|
801
|
+
"type": "object",
|
|
802
|
+
"properties": {
|
|
803
|
+
"tools": {
|
|
804
|
+
"$ref": "#/definitions/toolMap",
|
|
805
|
+
"description": "A Tool is a configuration for an AI tool which can query or mutate data."
|
|
806
|
+
}
|
|
807
|
+
},
|
|
808
|
+
"additionalProperties": false
|
|
809
|
+
},
|
|
810
|
+
"aiExperimental": {
|
|
811
|
+
"title": "AI Experimental",
|
|
812
|
+
"type": "object",
|
|
813
|
+
"properties": {
|
|
814
|
+
"agents": {
|
|
815
|
+
"$ref": "#/definitions/agentMap",
|
|
816
|
+
"description": "An Agent is a configuration for an AI service such as a chat bot or a search engine."
|
|
817
|
+
},
|
|
818
|
+
"guards": {
|
|
819
|
+
"$ref": "#/definitions/guardMap",
|
|
820
|
+
"description": "A Guard is a configuration for an AI guardrail that can check inputs and outputs and provide safety and compliance."
|
|
821
|
+
},
|
|
822
|
+
"mcp": {
|
|
823
|
+
"$ref": "#/definitions/mcpConfig",
|
|
824
|
+
"description": "MCP server configuration"
|
|
825
|
+
}
|
|
826
|
+
},
|
|
827
|
+
"additionalProperties": false
|
|
828
|
+
},
|
|
829
|
+
"aiRunAgentResolver": {
|
|
830
|
+
"title": "AISendAgentMessageResolver",
|
|
831
|
+
"type": "object",
|
|
832
|
+
"properties": {
|
|
833
|
+
"id": {
|
|
834
|
+
"type": "string",
|
|
835
|
+
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
836
|
+
},
|
|
837
|
+
"name": {
|
|
838
|
+
"title": "AI Resolver Name",
|
|
839
|
+
"type": "string",
|
|
840
|
+
"description": "Name of the resolver function.",
|
|
841
|
+
"enum": ["ai:sendAgentMessage"]
|
|
842
|
+
},
|
|
843
|
+
"agentName": {
|
|
844
|
+
"type": "string",
|
|
845
|
+
"pattern": "^[0-9A-Za-z_]+$"
|
|
846
|
+
},
|
|
847
|
+
"inputName": {
|
|
848
|
+
"type": "string",
|
|
849
|
+
"pattern": "^[0-9A-Za-z_]+$"
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
"required": ["name", "agentName", "inputName"],
|
|
853
|
+
"additionalProperties": false
|
|
854
|
+
},
|
|
855
|
+
"aiGetAgentMessageResolver": {
|
|
856
|
+
"title": "AIGetAgentMessageResolver",
|
|
857
|
+
"type": "object",
|
|
858
|
+
"properties": {
|
|
859
|
+
"id": {
|
|
860
|
+
"type": "string",
|
|
861
|
+
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
862
|
+
},
|
|
863
|
+
"name": {
|
|
864
|
+
"title": "AI Resolver Name",
|
|
865
|
+
"type": "string",
|
|
866
|
+
"description": "Name of the resolver function.",
|
|
867
|
+
"enum": ["ai:getAgentMessage"]
|
|
868
|
+
},
|
|
869
|
+
"agentName": {
|
|
870
|
+
"type": "string",
|
|
871
|
+
"pattern": "^[0-9A-Za-z_]+$"
|
|
872
|
+
}
|
|
873
|
+
},
|
|
874
|
+
"required": ["name", "agentName"],
|
|
875
|
+
"additionalProperties": false
|
|
876
|
+
},
|
|
877
|
+
"aiAbortAgentMessageResolver": {
|
|
878
|
+
"title": "AIAbortAgentMessageResolver",
|
|
879
|
+
"type": "object",
|
|
880
|
+
"properties": {
|
|
881
|
+
"id": {
|
|
882
|
+
"type": "string",
|
|
883
|
+
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
884
|
+
},
|
|
885
|
+
"name": {
|
|
886
|
+
"title": "AI Resolver Name",
|
|
887
|
+
"type": "string",
|
|
888
|
+
"description": "Name of the resolver function.",
|
|
889
|
+
"enum": ["ai:abortAgentMessage"]
|
|
890
|
+
},
|
|
891
|
+
"agentName": {
|
|
892
|
+
"type": "string",
|
|
893
|
+
"pattern": "^[0-9A-Za-z_]+$"
|
|
894
|
+
}
|
|
895
|
+
},
|
|
896
|
+
"required": ["name", "agentName"],
|
|
897
|
+
"additionalProperties": false
|
|
898
|
+
},
|
|
899
|
+
"aiSendAgentFeedbackResolver": {
|
|
900
|
+
"title": "AISendAgentFeedbackResolver",
|
|
901
|
+
"type": "object",
|
|
902
|
+
"properties": {
|
|
903
|
+
"id": {
|
|
904
|
+
"type": "string",
|
|
905
|
+
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
906
|
+
},
|
|
907
|
+
"name": {
|
|
908
|
+
"title": "AI Resolver Name",
|
|
909
|
+
"type": "string",
|
|
910
|
+
"description": "Name of the resolver function.",
|
|
911
|
+
"enum": ["ai:sendAgentFeedback"]
|
|
912
|
+
},
|
|
913
|
+
"agentName": {
|
|
914
|
+
"type": "string",
|
|
915
|
+
"pattern": "^[0-9A-Za-z_]+$"
|
|
916
|
+
}
|
|
917
|
+
},
|
|
918
|
+
"required": ["name", "agentName"],
|
|
919
|
+
"additionalProperties": false
|
|
920
|
+
},
|
|
921
|
+
"guard": {
|
|
922
|
+
"title": "GuardJSON",
|
|
923
|
+
"description": "A Guard is a configuration for an AI guardrail that can check inputs and outputs and provide safety and compliance.",
|
|
924
|
+
"type": "object",
|
|
925
|
+
"properties": {
|
|
926
|
+
"name": {
|
|
927
|
+
"type": "string",
|
|
928
|
+
"title": "Name",
|
|
929
|
+
"description": "The human-readable name of the Guard."
|
|
930
|
+
},
|
|
931
|
+
"description": {
|
|
932
|
+
"type": "string",
|
|
933
|
+
"title": "Description",
|
|
934
|
+
"description": "A description of the Guard."
|
|
935
|
+
},
|
|
936
|
+
"enabled": {
|
|
937
|
+
"type": "boolean",
|
|
938
|
+
"title": "Enabled",
|
|
939
|
+
"description": "Guards will not run unless enabled.",
|
|
940
|
+
"default": true
|
|
941
|
+
},
|
|
942
|
+
"guardrailIdentifier": {
|
|
943
|
+
"type": "string",
|
|
944
|
+
"title": "Guardrail Identifier",
|
|
945
|
+
"description": "The remote id of the Guardrail."
|
|
946
|
+
},
|
|
947
|
+
"guardrailVersion": {
|
|
948
|
+
"type": "string",
|
|
949
|
+
"title": "Guardrail Version",
|
|
950
|
+
"description": "The remote version of the Guardrail."
|
|
951
|
+
},
|
|
952
|
+
"blockedInputMessaging": {
|
|
953
|
+
"type": "string",
|
|
954
|
+
"title": "Blocked Input Messaging",
|
|
955
|
+
"description": "A message to return when the input message is blocked by the Guard."
|
|
956
|
+
},
|
|
957
|
+
"blockedOutputsMessaging": {
|
|
958
|
+
"type": "string",
|
|
959
|
+
"title": "Blocked Outputs Messaging",
|
|
960
|
+
"description": "A message to return when the output message is blocked by the Guard."
|
|
961
|
+
},
|
|
962
|
+
"topicPolicyConfig": {
|
|
963
|
+
"type": "object",
|
|
964
|
+
"title": "Topic Policy",
|
|
965
|
+
"description": "Topics to identify and block.",
|
|
966
|
+
"properties": {
|
|
967
|
+
"topicsConfig": {
|
|
968
|
+
"title": "Topic",
|
|
969
|
+
"description": "A topic to block.",
|
|
970
|
+
"type": "array",
|
|
971
|
+
"items": {
|
|
972
|
+
"type": "object",
|
|
973
|
+
"properties": {
|
|
974
|
+
"name": {
|
|
975
|
+
"type": "string"
|
|
976
|
+
},
|
|
977
|
+
"definition": {
|
|
978
|
+
"type": "string"
|
|
979
|
+
},
|
|
980
|
+
"examples": {
|
|
981
|
+
"description": "Examples of the topic that can hint the LLM.",
|
|
982
|
+
"type": "array",
|
|
983
|
+
"items": {
|
|
984
|
+
"title": "Example",
|
|
985
|
+
"type": "string"
|
|
986
|
+
},
|
|
987
|
+
"minItems": 1
|
|
988
|
+
},
|
|
989
|
+
"type": {
|
|
990
|
+
"type": "string",
|
|
991
|
+
"enum": ["DENY"]
|
|
992
|
+
}
|
|
993
|
+
},
|
|
994
|
+
"required": ["name", "definition", "type"],
|
|
995
|
+
"additionalProperties": false
|
|
996
|
+
},
|
|
997
|
+
"minItems": 1
|
|
998
|
+
}
|
|
999
|
+
},
|
|
1000
|
+
"required": ["topicsConfig"],
|
|
1001
|
+
"additionalProperties": false
|
|
1002
|
+
},
|
|
1003
|
+
"contentPolicyConfig": {
|
|
1004
|
+
"type": "object",
|
|
1005
|
+
"title": "Content Policy",
|
|
1006
|
+
"description": "Types of content to filter and strength configuration.",
|
|
1007
|
+
"properties": {
|
|
1008
|
+
"filtersConfig": {
|
|
1009
|
+
"title": "Filter",
|
|
1010
|
+
"description": "Types of content to filter.",
|
|
1011
|
+
"type": "array",
|
|
1012
|
+
"items": {
|
|
1013
|
+
"type": "object",
|
|
1014
|
+
"properties": {
|
|
1015
|
+
"type": {
|
|
1016
|
+
"type": "string",
|
|
1017
|
+
"enum": ["HATE", "INSULTS", "MICONDUCT", "PROMPT_ATTACK", "SEXUAL", "VIOLENCE"]
|
|
1018
|
+
},
|
|
1019
|
+
"inputStrength": {
|
|
1020
|
+
"title": "Input Strength",
|
|
1021
|
+
"type": "string",
|
|
1022
|
+
"enum": ["NONE", "LOW", "MEDIUM", "HIGH"]
|
|
1023
|
+
},
|
|
1024
|
+
"outputStrength": {
|
|
1025
|
+
"title": "Output Strength",
|
|
1026
|
+
"type": "string",
|
|
1027
|
+
"enum": ["NONE", "LOW", "MEDIUM", "HIGH"]
|
|
1028
|
+
},
|
|
1029
|
+
"inputModalities": {
|
|
1030
|
+
"title": "Input Modalities",
|
|
1031
|
+
"description": "Whether to filter images or text",
|
|
1032
|
+
"type": "array",
|
|
1033
|
+
"items": {
|
|
1034
|
+
"$ref": "#/definitions/guardrailModality"
|
|
1035
|
+
},
|
|
1036
|
+
"minItems": 1
|
|
1037
|
+
},
|
|
1038
|
+
"outputModalities": {
|
|
1039
|
+
"title": "Output Modalities",
|
|
1040
|
+
"description": "Whether to filter images or text",
|
|
1041
|
+
"type": "array",
|
|
1042
|
+
"items": {
|
|
1043
|
+
"$ref": "#/definitions/guardrailModality"
|
|
1044
|
+
},
|
|
1045
|
+
"minItems": 1
|
|
1046
|
+
}
|
|
1047
|
+
},
|
|
1048
|
+
"required": ["type", "inputStrength", "outputStrength"],
|
|
1049
|
+
"additionalProperties": false
|
|
1050
|
+
},
|
|
1051
|
+
"minItems": 1
|
|
1052
|
+
}
|
|
1053
|
+
},
|
|
1054
|
+
"required": ["filtersConfig"],
|
|
1055
|
+
"additionalProperties": false
|
|
1056
|
+
},
|
|
1057
|
+
"wordPolicyConfig": {
|
|
1058
|
+
"type": "object",
|
|
1059
|
+
"title": "Word Policy",
|
|
1060
|
+
"description": "Specific words to identify and block.",
|
|
1061
|
+
"properties": {
|
|
1062
|
+
"wordsConfig": {
|
|
1063
|
+
"title": "Word List",
|
|
1064
|
+
"description": "Specific words to block.",
|
|
1065
|
+
"type": "array",
|
|
1066
|
+
"items": {
|
|
1067
|
+
"type": "object",
|
|
1068
|
+
"properties": {
|
|
1069
|
+
"text": {
|
|
1070
|
+
"type": "string"
|
|
1071
|
+
}
|
|
1072
|
+
},
|
|
1073
|
+
"required": ["text"],
|
|
1074
|
+
"additionalProperties": false
|
|
1075
|
+
},
|
|
1076
|
+
"minItems": 1
|
|
1077
|
+
},
|
|
1078
|
+
"managedWordListsConfig": {
|
|
1079
|
+
"title": "Managed Word List",
|
|
1080
|
+
"description": "This is solely used for blocking profanity.",
|
|
1081
|
+
"type": "array",
|
|
1082
|
+
"items": {
|
|
1083
|
+
"type": "object",
|
|
1084
|
+
"properties": {
|
|
1085
|
+
"type": {
|
|
1086
|
+
"type": "string",
|
|
1087
|
+
"enum": ["PROFANITY"]
|
|
1088
|
+
}
|
|
1089
|
+
},
|
|
1090
|
+
"required": ["type"],
|
|
1091
|
+
"additionalProperties": false
|
|
1092
|
+
},
|
|
1093
|
+
"minItems": 1
|
|
1094
|
+
}
|
|
1095
|
+
},
|
|
1096
|
+
"additionalProperties": false
|
|
1097
|
+
},
|
|
1098
|
+
"sensitiveInformationPolicyConfig": {
|
|
1099
|
+
"title": "Sensitive Information Policy",
|
|
1100
|
+
"description": "Filter out and block or obscure sensitive information. Matching text will be handled per the policy.",
|
|
1101
|
+
"type": "object",
|
|
1102
|
+
"properties": {
|
|
1103
|
+
"piiEntitiesConfig": {
|
|
1104
|
+
"title": "PII Entity",
|
|
1105
|
+
"description": "PII entity to infer from the text.",
|
|
1106
|
+
"type": "array",
|
|
1107
|
+
"items": {
|
|
1108
|
+
"type": "object",
|
|
1109
|
+
"properties": {
|
|
1110
|
+
"type": {
|
|
1111
|
+
"type": "string",
|
|
1112
|
+
"enum": [
|
|
1113
|
+
"ADDRESS",
|
|
1114
|
+
"AGE",
|
|
1115
|
+
"AWS_ACCESS_KEY",
|
|
1116
|
+
"AWS_SECRET_KEY",
|
|
1117
|
+
"CA_HEALTH_NUMBER",
|
|
1118
|
+
"CA_SOCIAL_INSURANCE_NUMBER",
|
|
1119
|
+
"CREDIT_DEBIT_CARD_CVV",
|
|
1120
|
+
"CREDIT_DEBIT_CARD_EXPIRY",
|
|
1121
|
+
"CREDIT_DEBIT_CARD_NUMBER",
|
|
1122
|
+
"DRIVER_ID",
|
|
1123
|
+
"EMAIL",
|
|
1124
|
+
"INTERNATIONAL_BANK_ACCOUNT_NUMBER",
|
|
1125
|
+
"IP_ADDRESS",
|
|
1126
|
+
"LICENSE_PLATE",
|
|
1127
|
+
"MAC_ADDRESS",
|
|
1128
|
+
"NAME",
|
|
1129
|
+
"PASSWORD",
|
|
1130
|
+
"PHONE",
|
|
1131
|
+
"PIN",
|
|
1132
|
+
"SWIFT_CODE",
|
|
1133
|
+
"UK_NATIONAL_HEALTH_SERVICE_NUMBER",
|
|
1134
|
+
"UK_NATIONAL_INSURANCE_NUMBER",
|
|
1135
|
+
"UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER",
|
|
1136
|
+
"URL",
|
|
1137
|
+
"USERNAME",
|
|
1138
|
+
"US_BANK_ACCOUNT_NUMBER",
|
|
1139
|
+
"US_BANK_ROUTING_NUMBER",
|
|
1140
|
+
"US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER",
|
|
1141
|
+
"US_PASSPORT_NUMBER",
|
|
1142
|
+
"US_SOCIAL_SECURITY_NUMBER",
|
|
1143
|
+
"VEHICLE_IDENTIFICATION_NUMBER"
|
|
1144
|
+
]
|
|
1145
|
+
},
|
|
1146
|
+
"action": {
|
|
1147
|
+
"$ref": "#/definitions/guardrailSensitiveInformationAction"
|
|
1148
|
+
}
|
|
1149
|
+
},
|
|
1150
|
+
"required": ["type", "action"],
|
|
1151
|
+
"additionalProperties": false
|
|
1152
|
+
},
|
|
1153
|
+
"minItems": 1
|
|
1154
|
+
},
|
|
1155
|
+
"regexesConfig": {
|
|
1156
|
+
"title": "Regular Expression",
|
|
1157
|
+
"description": "A regular expression to match sensitive information.",
|
|
1158
|
+
"type": "array",
|
|
1159
|
+
"items": {
|
|
1160
|
+
"type": "object",
|
|
1161
|
+
"properties": {
|
|
1162
|
+
"name": {
|
|
1163
|
+
"type": "string"
|
|
1164
|
+
},
|
|
1165
|
+
"description": {
|
|
1166
|
+
"type": "string"
|
|
1167
|
+
},
|
|
1168
|
+
"pattern": {
|
|
1169
|
+
"type": "string"
|
|
1170
|
+
},
|
|
1171
|
+
"action": {
|
|
1172
|
+
"$ref": "#/definitions/guardrailSensitiveInformationAction"
|
|
1173
|
+
}
|
|
1174
|
+
},
|
|
1175
|
+
"required": ["name", "pattern", "action"],
|
|
1176
|
+
"additionalProperties": false
|
|
1177
|
+
},
|
|
1178
|
+
"minItems": 1
|
|
1179
|
+
}
|
|
1180
|
+
},
|
|
1181
|
+
"additionalProperties": false
|
|
1182
|
+
},
|
|
1183
|
+
"contextualGroundingPolicyConfig": {
|
|
1184
|
+
"title": "Contextual Grounding Policy",
|
|
1185
|
+
"description": "Provides evaluations based on grounding text supplied by your in-context agent variables. Off-topic conversations can then be blocked.",
|
|
1186
|
+
"type": "object",
|
|
1187
|
+
"properties": {
|
|
1188
|
+
"filtersConfig": {
|
|
1189
|
+
"title": "Filter",
|
|
1190
|
+
"description": "Filter to evaluate grounding text.",
|
|
1191
|
+
"type": "array",
|
|
1192
|
+
"items": {
|
|
1193
|
+
"type": "object",
|
|
1194
|
+
"properties": {
|
|
1195
|
+
"type": {
|
|
1196
|
+
"title": "Type",
|
|
1197
|
+
"description": "The type of filter.",
|
|
1198
|
+
"type": "string",
|
|
1199
|
+
"enum": ["GROUNDING", "RELEVANCE"]
|
|
1200
|
+
},
|
|
1201
|
+
"threshold": {
|
|
1202
|
+
"title": "Threshold",
|
|
1203
|
+
"description": "The threshold for the filter as a floating point value greater than 0.0 and less than 1.0.",
|
|
1204
|
+
"type": "number",
|
|
1205
|
+
"multipleOf": 0.01,
|
|
1206
|
+
"exclusiveMinimum": 0,
|
|
1207
|
+
"exclusiveMaximum": 1
|
|
1208
|
+
}
|
|
1209
|
+
},
|
|
1210
|
+
"required": ["type", "threshold"],
|
|
1211
|
+
"additionalProperties": false
|
|
1212
|
+
},
|
|
1213
|
+
"minItems": 1
|
|
1214
|
+
}
|
|
1215
|
+
},
|
|
1216
|
+
"required": ["filtersConfig"],
|
|
1217
|
+
"additionalProperties": false
|
|
1218
|
+
}
|
|
1219
|
+
},
|
|
1220
|
+
"required": ["name"],
|
|
1221
|
+
"additionalProperties": false
|
|
1222
|
+
},
|
|
1223
|
+
"guardMap": {
|
|
1224
|
+
"title": "GuardMap",
|
|
1225
|
+
"type": "object",
|
|
1226
|
+
"patternProperties": {
|
|
1227
|
+
"^[0-9A-Za-z_]+$": {
|
|
1228
|
+
"$ref": "#/definitions/guard"
|
|
1229
|
+
}
|
|
1230
|
+
},
|
|
1231
|
+
"additionalProperties": false
|
|
1232
|
+
},
|
|
1233
|
+
"guardrailModality": {
|
|
1234
|
+
"title": "Guardrail Modality",
|
|
1235
|
+
"type": "string",
|
|
1236
|
+
"enum": ["TEXT", "IMAGE"]
|
|
1237
|
+
},
|
|
1238
|
+
"guardrailSensitiveInformationAction": {
|
|
1239
|
+
"title": "Guardrail Sensitive Information Action",
|
|
1240
|
+
"type": "string",
|
|
1241
|
+
"enum": ["ANONYMIZE", "BLOCK"]
|
|
1242
|
+
},
|
|
1243
|
+
"aiInspectAgentResolver": {
|
|
1244
|
+
"title": "AIInspectAgentResolver",
|
|
1245
|
+
"type": "object",
|
|
1246
|
+
"properties": {
|
|
1247
|
+
"id": {
|
|
1248
|
+
"type": "string",
|
|
1249
|
+
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1250
|
+
},
|
|
1251
|
+
"name": {
|
|
1252
|
+
"title": "AI Resolver Name",
|
|
1253
|
+
"type": "string",
|
|
1254
|
+
"description": "Name of the resolver function.",
|
|
1255
|
+
"enum": ["ai:inspectAgent"]
|
|
1256
|
+
},
|
|
1257
|
+
"agentName": {
|
|
1258
|
+
"type": "string",
|
|
1259
|
+
"pattern": "^[0-9A-Za-z_]+$"
|
|
1260
|
+
}
|
|
1261
|
+
},
|
|
1262
|
+
"required": ["name", "agentName"],
|
|
1263
|
+
"additionalProperties": false
|
|
1264
|
+
},
|
|
1265
|
+
"aiCreateAgentSessionResolver": {
|
|
1266
|
+
"title": "AICreateAgentSessionResolver",
|
|
1267
|
+
"type": "object",
|
|
1268
|
+
"properties": {
|
|
1269
|
+
"id": {
|
|
1270
|
+
"type": "string",
|
|
1271
|
+
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1272
|
+
},
|
|
1273
|
+
"name": {
|
|
1274
|
+
"title": "AI Resolver Name",
|
|
1275
|
+
"type": "string",
|
|
1276
|
+
"description": "Name of the resolver function.",
|
|
1277
|
+
"enum": ["ai:createAgentSession"]
|
|
1278
|
+
},
|
|
1279
|
+
"agentName": {
|
|
1280
|
+
"type": "string",
|
|
1281
|
+
"pattern": "^[0-9A-Za-z_]+$"
|
|
1282
|
+
}
|
|
1283
|
+
},
|
|
1284
|
+
"required": ["name", "agentName"],
|
|
1285
|
+
"additionalProperties": false
|
|
1286
|
+
},
|
|
1287
|
+
"removePropertyKeyPatterns": {
|
|
1288
|
+
"type": "array",
|
|
1289
|
+
"items": {
|
|
1290
|
+
"title": "Minimatch Pattern",
|
|
1291
|
+
"type": "string"
|
|
1292
|
+
},
|
|
1293
|
+
"title": "Remove Property Key Patterns",
|
|
1294
|
+
"description": "Remove properties from the schema sent to the model with keys matching these minimatch glob patterns."
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
}
|