@takeshape/schema 11.144.1 → 11.154.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/examples/latest/all-fields-shapes-inline.json +1 -1
- package/examples/latest/all-fields-shapes.json +1 -1
- package/examples/latest/betzino.json +1 -1
- package/examples/latest/blog-schema.json +1 -1
- package/examples/latest/brewery-schema.json +1 -1
- package/examples/latest/chat-agent-schema.json +1 -1
- package/examples/latest/clear-cache-schema.json +1 -1
- package/examples/latest/complex-project-schema.json +1 -1
- package/examples/latest/complex-schema.json +1 -1
- package/examples/latest/edit-schema.json +1 -1
- package/examples/latest/frank-and-fred-schema.json +1 -1
- package/examples/latest/generate-agent-schema.json +1 -1
- package/examples/latest/klirr-schema.json +1 -1
- package/examples/latest/layers/rick-and-morty-layer.json +1 -1
- package/examples/latest/layers/shopify-layer-2023-01.json +1 -1
- package/examples/latest/layers/shopify-storefront-2023-04.json +1 -1
- package/examples/latest/layers/wordpress-2024-01.json +1 -1
- package/examples/latest/massive-schema.json +1 -1
- package/examples/latest/mill-components-schema.json +1 -1
- package/examples/latest/nested-shape-arrays.json +1 -1
- package/examples/latest/one-earth.json +1 -1
- package/examples/latest/pet-oneof-array.json +1 -1
- package/examples/latest/post-schema.json +1 -1
- package/examples/latest/pruned-shopify-product-schema.json +1 -1
- package/examples/latest/rag-example.json +1 -1
- package/examples/latest/real-world-schema.json +1 -1
- package/examples/latest/recursive-repeater-schema.json +1 -1
- package/examples/latest/recursive-schema.json +1 -1
- package/examples/latest/rick-and-morty-ast.json +1 -1
- package/examples/latest/rick-and-morty-graphql.json +1 -1
- package/examples/latest/rick-and-morty-rest.json +1 -1
- package/examples/latest/rick-and-morty-user-schema.json +1 -1
- package/examples/latest/rick-and-morty-with-indexing.json +1 -1
- package/examples/latest/schema-where-filter.json +1 -1
- package/examples/latest/schema-with-repeater-draftjs.json +1 -1
- package/examples/latest/schema-with-rick-and-morty.json +1 -1
- package/examples/latest/shape-books-v3_2_0.json +1 -1
- package/examples/latest/shape-books.json +1 -1
- package/examples/latest/shape-editor-schema-edited.json +1 -1
- package/examples/latest/shape-editor-schema-initial.json +1 -1
- package/examples/latest/shapedb-crud-every-prop-type.json +1 -1
- package/examples/latest/shopify-lookbook.json +1 -1
- package/examples/latest/shopify-product-2022-07.json +1 -1
- package/examples/latest/shopify-product-2023-04.json +1 -1
- package/examples/latest/shopify-store-with-widget.json +1 -1
- package/examples/latest/stripe-product-runtime-schema.json +1 -1
- package/examples/latest/stripe-starter-resolved.json +1 -1
- package/examples/latest/user-schema-no-required.json +1 -1
- package/examples/latest/user-schema-with-defaults.json +1 -1
- package/examples/latest/valvoline-ai-demo.json +1461 -1421
- package/examples/latest/vector-search-schema.json +1 -1
- package/package.json +10 -9
- package/dist/agents.d.ts +0 -62
- package/dist/agents.js +0 -338
- package/dist/api-version.d.ts +0 -5
- package/dist/api-version.js +0 -17
- package/dist/auth-schemas.d.ts +0 -128
- package/dist/auth-schemas.js +0 -7
- package/dist/auth-utils.d.ts +0 -5
- package/dist/auth-utils.js +0 -6
- package/dist/builtin-schema.d.ts +0 -18
- package/dist/builtin-schema.js +0 -683
- package/dist/constants.d.ts +0 -1
- package/dist/constants.js +0 -1
- package/dist/content-schema-transform.d.ts +0 -35
- package/dist/content-schema-transform.js +0 -162
- package/dist/create-input-schema.d.ts +0 -9
- package/dist/create-input-schema.js +0 -68
- package/dist/enum.d.ts +0 -2
- package/dist/enum.js +0 -9
- package/dist/flatten-templates.d.ts +0 -2
- package/dist/flatten-templates.js +0 -20
- package/dist/get-is-leaf.d.ts +0 -3
- package/dist/get-is-leaf.js +0 -56
- package/dist/index.d.ts +0 -62
- package/dist/index.js +0 -59
- package/dist/interfaces.d.ts +0 -14
- package/dist/interfaces.js +0 -86
- package/dist/layers/layers.d.ts +0 -26
- package/dist/layers/layers.js +0 -301
- package/dist/layers/refs.d.ts +0 -102
- package/dist/layers/refs.js +0 -220
- package/dist/layers/type-utils.d.ts +0 -59
- package/dist/layers/type-utils.js +0 -118
- package/dist/layers/visitor.d.ts +0 -5
- package/dist/layers/visitor.js +0 -38
- package/dist/migration/index.d.ts +0 -73
- package/dist/migration/index.js +0 -103
- package/dist/migration/to/v3.0.0.d.ts +0 -4
- package/dist/migration/to/v3.0.0.js +0 -212
- package/dist/migration/to/v3.1.0.d.ts +0 -4
- package/dist/migration/to/v3.1.0.js +0 -194
- package/dist/migration/to/v3.10.0.d.ts +0 -4
- package/dist/migration/to/v3.10.0.js +0 -67
- package/dist/migration/to/v3.11.0.d.ts +0 -4
- package/dist/migration/to/v3.11.0.js +0 -85
- package/dist/migration/to/v3.12.3.d.ts +0 -4
- package/dist/migration/to/v3.12.3.js +0 -87
- package/dist/migration/to/v3.13.0.d.ts +0 -4
- package/dist/migration/to/v3.13.0.js +0 -17
- package/dist/migration/to/v3.17.0.d.ts +0 -4
- package/dist/migration/to/v3.17.0.js +0 -22
- package/dist/migration/to/v3.18.0.d.ts +0 -4
- package/dist/migration/to/v3.18.0.js +0 -64
- package/dist/migration/to/v3.18.1.d.ts +0 -4
- package/dist/migration/to/v3.18.1.js +0 -12
- package/dist/migration/to/v3.18.2.d.ts +0 -4
- package/dist/migration/to/v3.18.2.js +0 -19
- package/dist/migration/to/v3.20.0.d.ts +0 -4
- package/dist/migration/to/v3.20.0.js +0 -24
- package/dist/migration/to/v3.22.0.d.ts +0 -4
- package/dist/migration/to/v3.22.0.js +0 -25
- package/dist/migration/to/v3.24.0.d.ts +0 -4
- package/dist/migration/to/v3.24.0.js +0 -11
- package/dist/migration/to/v3.25.0.d.ts +0 -4
- package/dist/migration/to/v3.25.0.js +0 -11
- package/dist/migration/to/v3.3.0.d.ts +0 -4
- package/dist/migration/to/v3.3.0.js +0 -13
- package/dist/migration/to/v3.31.0.d.ts +0 -4
- package/dist/migration/to/v3.31.0.js +0 -38
- package/dist/migration/to/v3.32.0.d.ts +0 -4
- package/dist/migration/to/v3.32.0.js +0 -59
- package/dist/migration/to/v3.34.0.d.ts +0 -6
- package/dist/migration/to/v3.34.0.js +0 -111
- package/dist/migration/to/v3.36.0.d.ts +0 -4
- package/dist/migration/to/v3.36.0.js +0 -22
- package/dist/migration/to/v3.39.0.d.ts +0 -4
- package/dist/migration/to/v3.39.0.js +0 -45
- package/dist/migration/to/v3.40.0.d.ts +0 -4
- package/dist/migration/to/v3.40.0.js +0 -26
- package/dist/migration/to/v3.46.0.d.ts +0 -4
- package/dist/migration/to/v3.46.0.js +0 -35
- package/dist/migration/to/v3.57.0.d.ts +0 -4
- package/dist/migration/to/v3.57.0.js +0 -18
- package/dist/migration/to/v3.9.0.d.ts +0 -4
- package/dist/migration/to/v3.9.0.js +0 -79
- package/dist/migration/types.d.ts +0 -26
- package/dist/migration/types.js +0 -3
- package/dist/migration/utils.d.ts +0 -2
- package/dist/migration/utils.js +0 -6
- package/dist/mocks.d.ts +0 -14
- package/dist/mocks.js +0 -58
- package/dist/models/agent.d.ts +0 -3
- package/dist/models/agent.js +0 -29
- package/dist/models/project-schema.d.ts +0 -18
- package/dist/models/project-schema.js +0 -119
- package/dist/models/query.d.ts +0 -3
- package/dist/models/query.js +0 -38
- package/dist/models/runtime-schema.d.ts +0 -9
- package/dist/models/runtime-schema.js +0 -20
- package/dist/models/shape.d.ts +0 -4
- package/dist/models/shape.js +0 -36
- package/dist/models/types.d.ts +0 -36
- package/dist/models/types.js +0 -1
- package/dist/models/user-schema.d.ts +0 -7
- package/dist/models/user-schema.js +0 -9
- package/dist/patterns.d.ts +0 -12
- package/dist/patterns.js +0 -1
- package/dist/project-schema/index.d.ts +0 -211
- package/dist/project-schema/index.js +0 -83
- package/dist/project-schema/latest.d.ts +0 -2619
- package/dist/project-schema/latest.js +0 -7
- package/dist/project-schema/migrate.d.ts +0 -4
- package/dist/project-schema/migrate.js +0 -218
- package/dist/project-schema/v1.0.0.d.ts +0 -299
- package/dist/project-schema/v1.0.0.js +0 -7
- package/dist/project-schema/v3.0.0.d.ts +0 -478
- package/dist/project-schema/v3.0.0.js +0 -7
- package/dist/project-schema/v3.1.0.d.ts +0 -621
- package/dist/project-schema/v3.1.0.js +0 -7
- package/dist/project-schema/v3.10.0.d.ts +0 -1201
- package/dist/project-schema/v3.10.0.js +0 -7
- package/dist/project-schema/v3.11.0.d.ts +0 -1210
- package/dist/project-schema/v3.11.0.js +0 -7
- package/dist/project-schema/v3.12.0.d.ts +0 -1214
- package/dist/project-schema/v3.12.0.js +0 -7
- package/dist/project-schema/v3.12.1.d.ts +0 -1273
- package/dist/project-schema/v3.12.1.js +0 -7
- package/dist/project-schema/v3.12.2.d.ts +0 -1283
- package/dist/project-schema/v3.12.2.js +0 -7
- package/dist/project-schema/v3.12.3.d.ts +0 -1306
- package/dist/project-schema/v3.12.3.js +0 -7
- package/dist/project-schema/v3.13.0.d.ts +0 -1317
- package/dist/project-schema/v3.13.0.js +0 -7
- package/dist/project-schema/v3.13.1.d.ts +0 -1412
- package/dist/project-schema/v3.13.1.js +0 -7
- package/dist/project-schema/v3.14.0.d.ts +0 -1436
- package/dist/project-schema/v3.14.0.js +0 -7
- package/dist/project-schema/v3.15.0.d.ts +0 -1458
- package/dist/project-schema/v3.15.0.js +0 -7
- package/dist/project-schema/v3.16.0.d.ts +0 -1470
- package/dist/project-schema/v3.16.0.js +0 -7
- package/dist/project-schema/v3.17.0.d.ts +0 -1467
- package/dist/project-schema/v3.17.0.js +0 -7
- package/dist/project-schema/v3.17.1.d.ts +0 -1468
- package/dist/project-schema/v3.17.1.js +0 -7
- package/dist/project-schema/v3.18.0.d.ts +0 -1333
- package/dist/project-schema/v3.18.0.js +0 -7
- package/dist/project-schema/v3.18.1.d.ts +0 -1332
- package/dist/project-schema/v3.18.1.js +0 -7
- package/dist/project-schema/v3.18.2.d.ts +0 -1332
- package/dist/project-schema/v3.18.2.js +0 -7
- package/dist/project-schema/v3.19.0.d.ts +0 -1336
- package/dist/project-schema/v3.19.0.js +0 -7
- package/dist/project-schema/v3.2.0.d.ts +0 -632
- package/dist/project-schema/v3.2.0.js +0 -7
- package/dist/project-schema/v3.20.0.d.ts +0 -1336
- package/dist/project-schema/v3.20.0.js +0 -7
- package/dist/project-schema/v3.21.0.d.ts +0 -1338
- package/dist/project-schema/v3.21.0.js +0 -7
- package/dist/project-schema/v3.22.0.d.ts +0 -1344
- package/dist/project-schema/v3.22.0.js +0 -7
- package/dist/project-schema/v3.23.0.d.ts +0 -1376
- package/dist/project-schema/v3.23.0.js +0 -7
- package/dist/project-schema/v3.24.0.d.ts +0 -1364
- package/dist/project-schema/v3.24.0.js +0 -7
- package/dist/project-schema/v3.25.0.d.ts +0 -1363
- package/dist/project-schema/v3.25.0.js +0 -7
- package/dist/project-schema/v3.26.0.d.ts +0 -1388
- package/dist/project-schema/v3.26.0.js +0 -7
- package/dist/project-schema/v3.27.0.d.ts +0 -1397
- package/dist/project-schema/v3.27.0.js +0 -7
- package/dist/project-schema/v3.28.0.d.ts +0 -1416
- package/dist/project-schema/v3.28.0.js +0 -7
- package/dist/project-schema/v3.29.0.d.ts +0 -1423
- package/dist/project-schema/v3.29.0.js +0 -7
- package/dist/project-schema/v3.3.0.d.ts +0 -632
- package/dist/project-schema/v3.3.0.js +0 -7
- package/dist/project-schema/v3.30.0.d.ts +0 -1416
- package/dist/project-schema/v3.30.0.js +0 -7
- package/dist/project-schema/v3.31.0.d.ts +0 -1448
- package/dist/project-schema/v3.31.0.js +0 -7
- package/dist/project-schema/v3.32.0.d.ts +0 -1439
- package/dist/project-schema/v3.32.0.js +0 -7
- package/dist/project-schema/v3.33.0.d.ts +0 -1445
- package/dist/project-schema/v3.33.0.js +0 -7
- package/dist/project-schema/v3.34.0.d.ts +0 -1445
- package/dist/project-schema/v3.34.0.js +0 -7
- package/dist/project-schema/v3.35.0.d.ts +0 -1464
- package/dist/project-schema/v3.35.0.js +0 -7
- package/dist/project-schema/v3.36.0.d.ts +0 -1470
- package/dist/project-schema/v3.36.0.js +0 -7
- package/dist/project-schema/v3.37.0.d.ts +0 -1522
- package/dist/project-schema/v3.37.0.js +0 -7
- package/dist/project-schema/v3.38.0.d.ts +0 -1522
- package/dist/project-schema/v3.38.0.js +0 -7
- package/dist/project-schema/v3.39.0.d.ts +0 -1529
- package/dist/project-schema/v3.39.0.js +0 -7
- package/dist/project-schema/v3.4.0.d.ts +0 -624
- package/dist/project-schema/v3.4.0.js +0 -7
- package/dist/project-schema/v3.40.0.d.ts +0 -1530
- package/dist/project-schema/v3.40.0.js +0 -7
- package/dist/project-schema/v3.41.0.d.ts +0 -1530
- package/dist/project-schema/v3.41.0.js +0 -7
- package/dist/project-schema/v3.42.0.d.ts +0 -1534
- package/dist/project-schema/v3.42.0.js +0 -7
- package/dist/project-schema/v3.43.0.d.ts +0 -1536
- package/dist/project-schema/v3.43.0.js +0 -7
- package/dist/project-schema/v3.44.0.d.ts +0 -1621
- package/dist/project-schema/v3.44.0.js +0 -7
- package/dist/project-schema/v3.45.0.d.ts +0 -1650
- package/dist/project-schema/v3.45.0.js +0 -7
- package/dist/project-schema/v3.46.0.d.ts +0 -1703
- package/dist/project-schema/v3.46.0.js +0 -7
- package/dist/project-schema/v3.47.0.d.ts +0 -1736
- package/dist/project-schema/v3.47.0.js +0 -7
- package/dist/project-schema/v3.48.0.d.ts +0 -2208
- package/dist/project-schema/v3.48.0.js +0 -7
- package/dist/project-schema/v3.49.0.d.ts +0 -2217
- package/dist/project-schema/v3.49.0.js +0 -7
- package/dist/project-schema/v3.5.0.d.ts +0 -649
- package/dist/project-schema/v3.5.0.js +0 -7
- package/dist/project-schema/v3.5.1.d.ts +0 -649
- package/dist/project-schema/v3.5.1.js +0 -7
- package/dist/project-schema/v3.50.0.d.ts +0 -2269
- package/dist/project-schema/v3.50.0.js +0 -7
- package/dist/project-schema/v3.51.0.d.ts +0 -2269
- package/dist/project-schema/v3.51.0.js +0 -7
- package/dist/project-schema/v3.52.0.d.ts +0 -2269
- package/dist/project-schema/v3.52.0.js +0 -7
- package/dist/project-schema/v3.53.0.d.ts +0 -2350
- package/dist/project-schema/v3.53.0.js +0 -7
- package/dist/project-schema/v3.54.0.d.ts +0 -2369
- package/dist/project-schema/v3.54.0.js +0 -7
- package/dist/project-schema/v3.55.0.d.ts +0 -2369
- package/dist/project-schema/v3.55.0.js +0 -7
- package/dist/project-schema/v3.56.0.d.ts +0 -2405
- package/dist/project-schema/v3.56.0.js +0 -7
- package/dist/project-schema/v3.57.0.d.ts +0 -2601
- package/dist/project-schema/v3.57.0.js +0 -7
- package/dist/project-schema/v3.58.0.d.ts +0 -2601
- package/dist/project-schema/v3.58.0.js +0 -7
- package/dist/project-schema/v3.59.0.d.ts +0 -2619
- package/dist/project-schema/v3.59.0.js +0 -7
- package/dist/project-schema/v3.6.0.d.ts +0 -658
- package/dist/project-schema/v3.6.0.js +0 -7
- package/dist/project-schema/v3.7.0.d.ts +0 -961
- package/dist/project-schema/v3.7.0.js +0 -7
- package/dist/project-schema/v3.8.0.d.ts +0 -979
- package/dist/project-schema/v3.8.0.js +0 -7
- package/dist/project-schema/v3.9.0.d.ts +0 -1178
- package/dist/project-schema/v3.9.0.js +0 -7
- package/dist/project-schema/v4.0.0.d.ts +0 -1328
- package/dist/project-schema/v4.0.0.js +0 -7
- package/dist/refs.d.ts +0 -218
- package/dist/refs.js +0 -616
- package/dist/relationships.d.ts +0 -40
- package/dist/relationships.js +0 -302
- package/dist/resolvers/ai/abort-agent-message-args.d.ts +0 -16
- package/dist/resolvers/ai/abort-agent-message-args.js +0 -13
- package/dist/resolvers/ai/abort-agent-message-response.d.ts +0 -39
- package/dist/resolvers/ai/abort-agent-message-response.js +0 -19
- package/dist/resolvers/ai/agent-chat-args.d.ts +0 -17
- package/dist/resolvers/ai/agent-chat-args.js +0 -14
- package/dist/resolvers/ai/agent-chat-payload.d.ts +0 -35
- package/dist/resolvers/ai/agent-chat-payload.js +0 -26
- package/dist/resolvers/ai/agent-chat-response.d.ts +0 -289
- package/dist/resolvers/ai/agent-chat-response.js +0 -21
- package/dist/resolvers/ai/agent-generate-args.d.ts +0 -17
- package/dist/resolvers/ai/agent-generate-args.js +0 -14
- package/dist/resolvers/ai/agent-message-input.d.ts +0 -73
- package/dist/resolvers/ai/agent-message-input.js +0 -39
- package/dist/resolvers/ai/agent-message-output.d.ts +0 -169
- package/dist/resolvers/ai/agent-message-output.js +0 -77
- package/dist/resolvers/ai/agent-message-payload.d.ts +0 -507
- package/dist/resolvers/ai/agent-message-payload.js +0 -156
- package/dist/resolvers/ai/agent-run-mode.d.ts +0 -7
- package/dist/resolvers/ai/agent-run-mode.js +0 -9
- package/dist/resolvers/ai/agent-session-payload.d.ts +0 -515
- package/dist/resolvers/ai/agent-session-payload.js +0 -175
- package/dist/resolvers/ai/create-agent-session-response.d.ts +0 -199
- package/dist/resolvers/ai/create-agent-session-response.js +0 -9
- package/dist/resolvers/ai/embedding-search.d.ts +0 -54
- package/dist/resolvers/ai/embedding-search.js +0 -46
- package/dist/resolvers/ai/get-agent-message-args.d.ts +0 -16
- package/dist/resolvers/ai/get-agent-message-args.js +0 -13
- package/dist/resolvers/ai/get-agent-message-response.d.ts +0 -805
- package/dist/resolvers/ai/get-agent-message-response.js +0 -63
- package/dist/resolvers/ai/inspect-agent-args.d.ts +0 -16
- package/dist/resolvers/ai/inspect-agent-args.js +0 -13
- package/dist/resolvers/ai/inspect-agent-response.d.ts +0 -504
- package/dist/resolvers/ai/inspect-agent-response.js +0 -48
- package/dist/resolvers/ai/send-agent-feedback-args.d.ts +0 -52
- package/dist/resolvers/ai/send-agent-feedback-args.js +0 -16
- package/dist/resolvers/ai/send-agent-message-args.d.ts +0 -48
- package/dist/resolvers/ai/send-agent-message-args.js +0 -36
- package/dist/resolvers/ai/send-agent-message-response.d.ts +0 -353
- package/dist/resolvers/ai/send-agent-message-response.js +0 -51
- package/dist/resolvers/ai/types.d.ts +0 -6
- package/dist/resolvers/ai/types.js +0 -1
- package/dist/resolvers/takeshape/assets/asset-image-meta.d.ts +0 -79
- package/dist/resolvers/takeshape/assets/asset-image-meta.js +0 -98
- package/dist/resolvers/takeshape/assets/asset-image-params.d.ts +0 -901
- package/dist/resolvers/takeshape/assets/asset-image-params.js +0 -726
- package/dist/resolvers/takeshape/assets/asset-image.d.ts +0 -17
- package/dist/resolvers/takeshape/assets/asset-image.js +0 -15
- package/dist/resolvers/takeshape/assets/asset.d.ts +0 -125
- package/dist/resolvers/takeshape/assets/asset.js +0 -107
- package/dist/resolvers/takeshape/assets/constants.d.ts +0 -11
- package/dist/resolvers/takeshape/assets/constants.js +0 -11
- package/dist/resolvers/takeshape/builtins/constants.d.ts +0 -1
- package/dist/resolvers/takeshape/builtins/constants.js +0 -1
- package/dist/runtime-schema.d.ts +0 -6
- package/dist/runtime-schema.js +0 -85
- package/dist/scalars.d.ts +0 -2
- package/dist/scalars.js +0 -4
- package/dist/schema-transform.d.ts +0 -19
- package/dist/schema-transform.js +0 -74
- package/dist/schema-util.d.ts +0 -266
- package/dist/schema-util.js +0 -1127
- package/dist/schemas/auth-schemas.json +0 -374
- package/dist/schemas/index.d.ts +0 -4
- package/dist/schemas/index.js +0 -170
- package/dist/schemas/project-schema/experimental-2025-07.json +0 -1297
- package/dist/schemas/project-schema/latest.d.ts +0 -180
- package/dist/schemas/project-schema/latest.js +0 -11
- package/dist/schemas/project-schema/latest.json +0 -4846
- package/dist/schemas/project-schema/meta-schema-v1.0.0.json +0 -193
- package/dist/schemas/project-schema/meta-schema-v3.0.0.json +0 -608
- package/dist/schemas/project-schema/meta-schema-v3.1.0.json +0 -608
- package/dist/schemas/project-schema/meta-schema-v3.2.0.json +0 -612
- package/dist/schemas/project-schema/meta-schema-v3.3.0.json +0 -612
- package/dist/schemas/project-schema/meta-schema-v3.4.0.json +0 -637
- package/dist/schemas/project-schema/meta-schema-v3.5.0.json +0 -626
- package/dist/schemas/project-schema/meta-schema-v3.5.1.json +0 -626
- package/dist/schemas/project-schema/meta-schema-v3.6.0.json +0 -629
- package/dist/schemas/project-schema/meta-schema-v3.7.0.json +0 -1137
- package/dist/schemas/project-schema/meta-schema-v3.8.0.json +0 -1137
- package/dist/schemas/project-schema/meta-schema-v3.9.0.json +0 -1477
- package/dist/schemas/project-schema/v1.0.0.json +0 -321
- package/dist/schemas/project-schema/v3.0.0.json +0 -414
- package/dist/schemas/project-schema/v3.1.0.json +0 -572
- package/dist/schemas/project-schema/v3.10.0.json +0 -2097
- package/dist/schemas/project-schema/v3.11.0.json +0 -2141
- package/dist/schemas/project-schema/v3.12.0.json +0 -2144
- package/dist/schemas/project-schema/v3.12.1.json +0 -2282
- package/dist/schemas/project-schema/v3.12.2.json +0 -2304
- package/dist/schemas/project-schema/v3.12.3.json +0 -2357
- package/dist/schemas/project-schema/v3.13.0.json +0 -2377
- package/dist/schemas/project-schema/v3.14.0.json +0 -2385
- package/dist/schemas/project-schema/v3.15.0.json +0 -2365
- package/dist/schemas/project-schema/v3.16.0.json +0 -2373
- package/dist/schemas/project-schema/v3.17.0.json +0 -2378
- package/dist/schemas/project-schema/v3.17.1.json +0 -2380
- package/dist/schemas/project-schema/v3.18.0.json +0 -2356
- package/dist/schemas/project-schema/v3.18.1.json +0 -2357
- package/dist/schemas/project-schema/v3.18.2.json +0 -2357
- package/dist/schemas/project-schema/v3.19.0.json +0 -2369
- package/dist/schemas/project-schema/v3.2.0.json +0 -580
- package/dist/schemas/project-schema/v3.20.0.json +0 -2369
- package/dist/schemas/project-schema/v3.21.0.json +0 -2376
- package/dist/schemas/project-schema/v3.22.0.json +0 -2381
- package/dist/schemas/project-schema/v3.23.0.json +0 -2456
- package/dist/schemas/project-schema/v3.24.0.json +0 -2556
- package/dist/schemas/project-schema/v3.25.0.json +0 -2552
- package/dist/schemas/project-schema/v3.26.0.json +0 -2599
- package/dist/schemas/project-schema/v3.27.0.json +0 -2611
- package/dist/schemas/project-schema/v3.28.0.json +0 -2656
- package/dist/schemas/project-schema/v3.29.0.json +0 -2670
- package/dist/schemas/project-schema/v3.3.0.json +0 -581
- package/dist/schemas/project-schema/v3.30.0.json +0 -2656
- package/dist/schemas/project-schema/v3.31.0.json +0 -2714
- package/dist/schemas/project-schema/v3.32.0.json +0 -2708
- package/dist/schemas/project-schema/v3.33.0.json +0 -2715
- package/dist/schemas/project-schema/v3.34.0.json +0 -2715
- package/dist/schemas/project-schema/v3.35.0.json +0 -2748
- package/dist/schemas/project-schema/v3.36.0.json +0 -2756
- package/dist/schemas/project-schema/v3.37.0.json +0 -2821
- package/dist/schemas/project-schema/v3.38.0.json +0 -2819
- package/dist/schemas/project-schema/v3.39.0.json +0 -2827
- package/dist/schemas/project-schema/v3.4.0.json +0 -571
- package/dist/schemas/project-schema/v3.40.0.json +0 -2830
- package/dist/schemas/project-schema/v3.41.0.json +0 -2830
- package/dist/schemas/project-schema/v3.42.0.json +0 -2835
- package/dist/schemas/project-schema/v3.43.0.json +0 -2841
- package/dist/schemas/project-schema/v3.44.0.json +0 -3013
- package/dist/schemas/project-schema/v3.45.0.json +0 -3064
- package/dist/schemas/project-schema/v3.46.0.json +0 -3136
- package/dist/schemas/project-schema/v3.47.0.json +0 -3189
- package/dist/schemas/project-schema/v3.48.0.json +0 -3196
- package/dist/schemas/project-schema/v3.49.0.json +0 -3239
- package/dist/schemas/project-schema/v3.5.0.json +0 -571
- package/dist/schemas/project-schema/v3.5.1.json +0 -571
- package/dist/schemas/project-schema/v3.50.0.json +0 -3320
- package/dist/schemas/project-schema/v3.51.0.json +0 -3326
- package/dist/schemas/project-schema/v3.52.0.json +0 -3326
- package/dist/schemas/project-schema/v3.53.0.json +0 -3476
- package/dist/schemas/project-schema/v3.54.0.json +0 -3512
- package/dist/schemas/project-schema/v3.55.0.json +0 -3515
- package/dist/schemas/project-schema/v3.56.0.json +0 -3530
- package/dist/schemas/project-schema/v3.57.0.json +0 -4815
- package/dist/schemas/project-schema/v3.58.0.json +0 -4815
- package/dist/schemas/project-schema/v3.59.0.json +0 -4846
- package/dist/schemas/project-schema/v3.6.0.json +0 -587
- package/dist/schemas/project-schema/v3.7.0.json +0 -587
- package/dist/schemas/project-schema/v3.8.0.json +0 -604
- package/dist/schemas/project-schema/v3.9.0.json +0 -604
- package/dist/schemas/project-schema/v4.0.0.json +0 -2316
- package/dist/schemas/project-schema.json +0 -214
- package/dist/service-dependencies.d.ts +0 -13
- package/dist/service-dependencies.js +0 -165
- package/dist/services/services.d.ts +0 -31
- package/dist/services/services.js +0 -145
- package/dist/services/types.d.ts +0 -11
- package/dist/services/types.js +0 -1
- package/dist/services/util.d.ts +0 -16
- package/dist/services/util.js +0 -36
- package/dist/shape-paths.d.ts +0 -7
- package/dist/shape-paths.js +0 -28
- package/dist/taxonomies.d.ts +0 -15
- package/dist/taxonomies.js +0 -24
- package/dist/template-shapes/index.d.ts +0 -7
- package/dist/template-shapes/index.js +0 -33
- package/dist/template-shapes/names.d.ts +0 -10
- package/dist/template-shapes/names.js +0 -21
- package/dist/template-shapes/templates.d.ts +0 -32
- package/dist/template-shapes/templates.js +0 -316
- package/dist/template-shapes/types.d.ts +0 -15
- package/dist/template-shapes/types.js +0 -7
- package/dist/template-shapes/where.d.ts +0 -37
- package/dist/template-shapes/where.js +0 -400
- package/dist/types/index.d.ts +0 -3
- package/dist/types/index.js +0 -2
- package/dist/types/transforms.d.ts +0 -15
- package/dist/types/transforms.js +0 -1
- package/dist/types/types.d.ts +0 -200
- package/dist/types/types.js +0 -10
- package/dist/types/utils.d.ts +0 -112
- package/dist/types/utils.js +0 -269
- package/dist/unions.d.ts +0 -14
- package/dist/unions.js +0 -77
- package/dist/util/ai-tools.d.ts +0 -2
- package/dist/util/ai-tools.js +0 -14
- package/dist/util/api-indexing.d.ts +0 -9
- package/dist/util/api-indexing.js +0 -57
- package/dist/util/coerce-value.d.ts +0 -9
- package/dist/util/coerce-value.js +0 -32
- package/dist/util/detect-cycles.d.ts +0 -7
- package/dist/util/detect-cycles.js +0 -45
- package/dist/util/expressions.d.ts +0 -34
- package/dist/util/expressions.js +0 -350
- package/dist/util/find-shape-at-path.d.ts +0 -21
- package/dist/util/find-shape-at-path.js +0 -53
- package/dist/util/form-config.d.ts +0 -11
- package/dist/util/form-config.js +0 -62
- package/dist/util/get-conflicting-properties.d.ts +0 -6
- package/dist/util/get-conflicting-properties.js +0 -55
- package/dist/util/get-return-shape.d.ts +0 -4
- package/dist/util/get-return-shape.js +0 -30
- package/dist/util/has-arg.d.ts +0 -6
- package/dist/util/has-arg.js +0 -25
- package/dist/util/is-asset-property.d.ts +0 -3
- package/dist/util/is-asset-property.js +0 -11
- package/dist/util/mcp.d.ts +0 -8
- package/dist/util/mcp.js +0 -21
- package/dist/util/merge.d.ts +0 -15
- package/dist/util/merge.js +0 -254
- package/dist/util/patch-schema.d.ts +0 -8
- package/dist/util/patch-schema.js +0 -51
- package/dist/util/query-field-path.d.ts +0 -9
- package/dist/util/query-field-path.js +0 -23
- package/dist/util/shapes.d.ts +0 -5
- package/dist/util/shapes.js +0 -22
- package/dist/validate/ai.d.ts +0 -6
- package/dist/validate/ai.js +0 -183
- package/dist/validate/errors.d.ts +0 -3
- package/dist/validate/errors.js +0 -20
- package/dist/validate/types.d.ts +0 -1
- package/dist/validate/types.js +0 -1
- package/dist/validate/util.d.ts +0 -3
- package/dist/validate/util.js +0 -28
- package/dist/validate/validate.d.ts +0 -80
- package/dist/validate/validate.js +0 -1058
- package/dist/versions.d.ts +0 -4
- package/dist/versions.js +0 -4
- package/dist/workflows.d.ts +0 -14
- package/dist/workflows.js +0 -66
|
@@ -1,1297 +0,0 @@
|
|
|
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
|
-
}
|