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
Copy file name to clipboardExpand all lines: .speakeasy/glean-merged-spec.yaml
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,6 @@ openapi: 3.0.0
2
2
info:
3
3
version: 0.9.0
4
4
title: Glean API
5
-
contact:
6
-
email: support@glean.com
7
5
description: |
8
6
# Introduction
9
7
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.
@@ -23,7 +21,7 @@ info:
23
21
These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice.
24
22
x-logo:
25
23
url: https://app.glean.com/images/glean-text2.svg
26
-
x-speakeasy-name: "Glean API"
24
+
x-speakeasy-name: 'Glean API'
27
25
servers:
28
26
- url: https://{instance}-be.glean.com
29
27
variables:
@@ -414,7 +412,7 @@ paths:
414
412
content:
415
413
application/json:
416
414
schema:
417
-
$ref: "#/components/schemas/ChatResponse"
415
+
$ref: '#/components/schemas/ChatResponse'
418
416
examples:
419
417
defaultExample:
420
418
value:
@@ -477,10 +475,10 @@ paths:
477
475
agent: DEFAULT
478
476
mode: DEFAULT
479
477
fragments:
480
-
- text: "**Reading:**"
478
+
- text: '**Reading:**'
481
479
- structuredResults:
482
480
- document:
483
-
id: "123"
481
+
id: '123'
484
482
title: Company Handbook
485
483
citationResponse:
486
484
value:
@@ -492,7 +490,7 @@ paths:
492
490
mode: DEFAULT
493
491
citations:
494
492
- sourceDocument:
495
-
id: "123"
493
+
id: '123'
496
494
title: Company Handbook
497
495
referenceRanges:
498
496
- textRange:
@@ -7244,6 +7242,9 @@ components:
7244
7242
type: integer
7245
7243
description: Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer.
7246
7244
example: 30000
7245
+
sessionInfo:
7246
+
description: Optional object for tracking the session used by the client and for debugging purposes.
7247
+
$ref: "#/components/schemas/SessionInfo"
7247
7248
applicationId:
7248
7249
type: string
7249
7250
description: The ID of the application this request originates from, used to determine the configuration of underlying chat processes. This should correspond to the ID set during admin setup. If not specified, the default chat experience will be used.
| `timeout_millis` | *Optional[int]* | :heavy_minus_sign: | Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. | 30000 |
| `application_id` | *Optional[str]* | :heavy_minus_sign: | The ID of the application this request originates from, used to determine the configuration of underlying chat processes. This should correspond to the ID set during admin setup. If not specified, the default chat experience will be used. | |
16
17
| `stream` | *Optional[bool]* | :heavy_minus_sign: | If set, response lines will be streamed one-by-one as they become available. Each will be a ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be returned at once. Note that if this is set and the model being used does not support streaming, the model's response will not be streamed, but other messages from the endpoint still will be. | |
0 commit comments