You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition to the data sources that Glean has built-in support for, Glean also provides a REST API that enables customers to put arbitrary content in the search index. This is useful, for example, for doing permissions-aware search over content in internal tools that reside on-prem as well as for searching over applications that Glean does not currently support first class. In addition these APIs allow the customer to push organization data (people info, organization structure etc) into Glean.
description: Constrains the assistant response to a caller-supplied JSON Schema.
7463
+
required:
7464
+
- type
7465
+
- name
7466
+
- schema
7467
+
properties:
7468
+
type:
7469
+
type: string
7470
+
description: Discriminator. Must be JSON_SCHEMA.
7471
+
enum:
7472
+
- JSON_SCHEMA
7473
+
name:
7474
+
type: string
7475
+
minLength: 1
7476
+
maxLength: 64
7477
+
description: A stable identifier for the schema.
7478
+
description:
7479
+
type: string
7480
+
maxLength: 1024
7481
+
description: An optional human-readable description of the schema.
7482
+
schema:
7483
+
type: object
7484
+
additionalProperties: true
7485
+
description: A JSON Schema object describing the desired output shape.
7486
+
strict:
7487
+
type: boolean
7488
+
default: true
7489
+
description: |
7490
+
When true, the provider validates the response against the schema. Unsupported by some providers; defaults to true.
7447
7491
PlatformChatCreateRequest:
7448
7492
type: object
7449
7493
additionalProperties: false
7450
7494
required:
7451
7495
- input
7452
7496
example:
7453
-
input: What is our parental leave policy?
7497
+
input: Summarize our parental leave policy as JSON.
7498
+
text:
7499
+
format:
7500
+
type: JSON_SCHEMA
7501
+
name: policy_summary
7502
+
schema:
7503
+
type: object
7504
+
properties:
7505
+
eligible_employees:
7506
+
type: string
7507
+
duration_weeks:
7508
+
type: integer
7509
+
required:
7510
+
- eligible_employees
7511
+
- duration_weeks
7512
+
strict: true
7454
7513
properties:
7455
7514
input:
7456
7515
description: |
@@ -7477,6 +7536,18 @@ components:
7477
7536
minLength: 1
7478
7537
description: |
7479
7538
Continue an existing stored conversation. Incompatible with message-array `input` and with `store: false`.
7539
+
text:
7540
+
type: object
7541
+
additionalProperties: false
7542
+
description: |
7543
+
Optional configuration for the assistant's text response. When `format.type` is `JSON_SCHEMA`, the response is constrained to the supplied JSON schema and returned in `output[*].content[*].structured_output`. Structured output is not supported when `stream` is true.
7544
+
properties:
7545
+
format:
7546
+
description: |
7547
+
Output format for the assistant text. TEXT is unconstrained. JSON_SCHEMA constrains the response to the supplied schema.
0 commit comments