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.
@@ -205,7 +205,8 @@ paths:
205
205
text/event-stream:
206
206
schema:
207
207
type: string
208
-
description: Server-sent events emitted by the running agent.
208
+
description: |
209
+
Server-sent events emitted by the running agent. Successful runs emit `message` events. A terminal failure after the stream has started emits exactly one `run.failed` event whose `data` is an `AgentRunFailedEventData` payload, then closes.
209
210
example: |
210
211
id: 1
211
212
event: message
@@ -214,6 +215,10 @@ paths:
214
215
id: 2
215
216
event: message
216
217
data: {"messages":[{"role":"GLEAN_AI","content":[{"text":", I can help with HR policy questions.","type":"text"}]}]}
218
+
219
+
id: 3
220
+
event: run.failed
221
+
data: {"error":{"type":"https://developers.glean.com/errors/spend-limit-exceeded","title":"Spend Limit Exceeded","status":403,"detail":"You've reached the monthly limit set by your admin.","code":"spend_limit_exceeded","request_id":"req_123","documentation_url":"https://developers.glean.com/errors/spend-limit-exceeded"}}
description: Categories of content requested. An allowlist gives flexibility to request content separately or together.
14348
14358
requestOptions:
14349
14359
$ref: '#/components/schemas/FeedRequestOptions'
@@ -14789,6 +14799,7 @@ components:
14789
14799
- OOO_PLANNER
14790
14800
- OOO_CATCH_UP
14791
14801
- ADMIN_HEALTH_CENTER
14802
+
- KNOWLEDGE_GAP
14792
14803
description: Type of the justification.
14793
14804
justification:
14794
14805
type: string
@@ -14880,6 +14891,7 @@ components:
14880
14891
- OOO_PLANNER
14881
14892
- OOO_CATCH_UP
14882
14893
- ADMIN_HEALTH_CENTER
14894
+
- KNOWLEDGE_GAP
14883
14895
description: Category of the result, one of the requested categories in incoming request.
14884
14896
primaryEntry:
14885
14897
$ref: '#/components/schemas/FeedEntry'
@@ -14896,7 +14908,8 @@ components:
14896
14908
enum:
14897
14909
- ORGANIC
14898
14910
- PROMO
14899
-
description: Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework.
14911
+
- PINNED
14912
+
description: Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. PINNED means the card was moved to the head of the ranked stack (e.g. knowledge-gap pilot cards).
0 commit comments