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.
data: {"messages":[{"role":"GLEAN_AI","content":[{"text":", I can help with HR policy questions.","type":"text"}]}]}
@@ -252,6 +251,61 @@ paths:
252
251
x-speakeasy-name-override: createRun
253
252
security:
254
253
- APIToken: []
254
+
/api/agents/{agent_id}/runs/{run_id}:
255
+
get:
256
+
tags:
257
+
- Agents
258
+
summary: Get agent run
259
+
description: |
260
+
Retrieve a persisted workflow execution owned by the authenticated user. The run must belong to the specified agent, and the user must still have access to that agent. Unknown runs, runs owned by another user, and mismatched agent/run identifiers return 404. Requires the agents.run scope. Executions without a persisted workflow record are not available through this endpoint.
261
+
operationId: platform-agents-get-run
262
+
x-visibility: Public
263
+
parameters:
264
+
- in: path
265
+
name: agent_id
266
+
description: ID of the agent that owns the run.
267
+
required: true
268
+
example: "{agent_id}"
269
+
schema:
270
+
type: string
271
+
minLength: 1
272
+
maxLength: 256
273
+
- in: path
274
+
name: run_id
275
+
description: ID of the durable run to retrieve.
276
+
required: true
277
+
example: "{run_id}"
278
+
schema:
279
+
type: string
280
+
minLength: 1
281
+
maxLength: 256
282
+
responses:
283
+
"200":
284
+
description: Current persisted run snapshot. A failed execution is still a successful retrieval.
description: Timestamp when the run was first persisted.
7570
+
updated_at:
7571
+
type: string
7572
+
format: date-time
7573
+
description: |
7574
+
Latest persisted activity timestamp across the execution and its messages, including checkpoint messages. This is not a worker heartbeat or an exact state-transition timestamp.
7575
+
expires_at:
7576
+
type: string
7577
+
format: date-time
7578
+
description: Execution deadline, when one is set. Not the run history retention deadline.
7579
+
pending_interactions:
7580
+
type: array
7581
+
description: Unanswered tool approvals when the run is in REQUIRES_INPUT. Empty in other states.
description: Constrains the assistant response to a caller-supplied JSON Schema.
7635
+
required:
7636
+
- type
7637
+
- name
7638
+
- schema
7639
+
properties:
7640
+
type:
7641
+
type: string
7642
+
description: Discriminator. Must be JSON_SCHEMA.
7643
+
enum:
7644
+
- JSON_SCHEMA
7645
+
name:
7646
+
type: string
7647
+
minLength: 1
7648
+
maxLength: 64
7649
+
description: A stable identifier for the schema.
7650
+
description:
7651
+
type: string
7652
+
maxLength: 1024
7653
+
description: An optional human-readable description of the schema.
7654
+
schema:
7655
+
type: object
7656
+
additionalProperties: true
7657
+
description: A JSON Schema object describing the desired output shape.
7658
+
strict:
7659
+
type: boolean
7660
+
default: true
7661
+
description: |
7662
+
When true, the provider validates the response against the schema. Unsupported by some providers; defaults to true.
7447
7663
PlatformChatCreateRequest:
7448
7664
type: object
7449
7665
additionalProperties: false
7450
7666
required:
7451
7667
- input
7452
7668
example:
7453
-
input: What is our parental leave policy?
7669
+
input: Summarize our parental leave policy as JSON.
7670
+
text:
7671
+
format:
7672
+
type: JSON_SCHEMA
7673
+
name: policy_summary
7674
+
schema:
7675
+
type: object
7676
+
properties:
7677
+
eligible_employees:
7678
+
type: string
7679
+
duration_weeks:
7680
+
type: integer
7681
+
required:
7682
+
- eligible_employees
7683
+
- duration_weeks
7684
+
strict: true
7454
7685
properties:
7455
7686
input:
7456
7687
description: |
@@ -7477,6 +7708,18 @@ components:
7477
7708
minLength: 1
7478
7709
description: |
7479
7710
Continue an existing stored conversation. Incompatible with message-array `input` and with `store: false`.
7711
+
text:
7712
+
type: object
7713
+
additionalProperties: false
7714
+
description: |
7715
+
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.
7716
+
properties:
7717
+
format:
7718
+
description: |
7719
+
Output format for the assistant text. TEXT is unconstrained. JSON_SCHEMA constrains the response to the supplied schema.
0 commit comments