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
+48-39Lines changed: 48 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -7047,6 +7047,9 @@ components:
7047
7047
enum:
7048
7048
- DEFAULT
7049
7049
- QUICK
7050
+
useImageGeneration:
7051
+
type: boolean
7052
+
description: Whether the agent should create an image.
7050
7053
ChatFileStatus:
7051
7054
type: string
7052
7055
description: Current status of the file.
@@ -7427,6 +7430,19 @@ components:
7427
7430
deprecated: true
7428
7431
type: boolean
7429
7432
description: Signals there are additional response fragments incoming.
7433
+
ChatRequestBase:
7434
+
required:
7435
+
- messages
7436
+
description: The minimal set of fields that form a chat request.
7437
+
properties:
7438
+
messages:
7439
+
type: array
7440
+
description: A list of chat messages, from most recent to least recent. At least one message must specify a USER author.
7441
+
items:
7442
+
$ref: "#/components/schemas/ChatMessage"
7443
+
sessionInfo:
7444
+
description: Optional object for tracking the session used by the client and for debugging purposes.
7445
+
$ref: "#/components/schemas/SessionInfo"
7430
7446
ChatRestrictionFilters:
7431
7447
allOf:
7432
7448
- $ref: "#/components/schemas/RestrictionFilters"
@@ -7441,45 +7457,38 @@ components:
7441
7457
items:
7442
7458
type: string
7443
7459
ChatRequest:
7444
-
required:
7445
-
- messages
7446
-
properties:
7447
-
saveChat:
7448
-
type: boolean
7449
-
description: Save the current interaction as a Chat for the user to access and potentially continue later.
7450
-
chatId:
7451
-
type: string
7452
-
description: The id of the Chat that context should be retrieved from and messages added to. An empty id starts a new Chat, and the Chat is saved if saveChat is true.
7453
-
messages:
7454
-
type: array
7455
-
description: A list of chat messages, from most recent to least recent. At least one message must specify a USER author.
7456
-
items:
7457
-
$ref: "#/components/schemas/ChatMessage"
7458
-
agentConfig:
7459
-
$ref: "#/components/schemas/AgentConfig"
7460
-
description: Describes the agent that will execute the request.
description: A list of filters which disallows chat from accessing certain content. If content is in both inclusions and exclusions, it'll be excluded.
7467
-
timeoutMillis:
7468
-
type: integer
7469
-
description: Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer.
7470
-
example: 30000
7471
-
sessionInfo:
7472
-
description: Optional object for tracking the session used by the client and for debugging purposes.
7473
-
$ref: "#/components/schemas/SessionInfo"
7474
-
applicationId:
7475
-
type: string
7476
-
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.
7477
-
agentId:
7478
-
type: string
7479
-
description: The ID of the Agent that should process this chat request. Only Agents with trigger set to 'User chat message' are invokable through this API. If not specified, the default chat experience will be used.
7480
-
stream:
7481
-
type: boolean
7482
-
description: 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.
7460
+
allOf:
7461
+
- $ref: "#/components/schemas/ChatRequestBase"
7462
+
- type: object
7463
+
properties:
7464
+
saveChat:
7465
+
type: boolean
7466
+
description: Save the current interaction as a Chat for the user to access and potentially continue later.
7467
+
chatId:
7468
+
type: string
7469
+
description: The id of the Chat that context should be retrieved from and messages added to. An empty id starts a new Chat, and the Chat is saved if saveChat is true.
7470
+
agentConfig:
7471
+
$ref: "#/components/schemas/AgentConfig"
7472
+
description: Describes the agent that will execute the request.
description: A list of filters which disallows chat from accessing certain content. If content is in both inclusions and exclusions, it'll be excluded.
7479
+
timeoutMillis:
7480
+
type: integer
7481
+
description: Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer.
7482
+
example: 30000
7483
+
applicationId:
7484
+
type: string
7485
+
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.
7486
+
agentId:
7487
+
type: string
7488
+
description: The ID of the Agent that should process this chat request. Only Agents with trigger set to 'User chat message' are invokable through this API. If not specified, the default chat experience will be used.
7489
+
stream:
7490
+
type: boolean
7491
+
description: 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.
7483
7492
ChatResponse:
7484
7493
description: A single response from the /chat backend.
|`agent`|[components.AgentEnum](../../models/components/agentenum.md)|:heavy_minus_sign:| Name of the agent. |
18
18
|`toolSets`|[components.ToolSets](../../models/components/toolsets.md)|:heavy_minus_sign:| The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` values |
19
-
|`mode`|[components.Mode](../../models/components/mode.md)|:heavy_minus_sign:| Top level modes to run GleanChat in. |
19
+
|`mode`|[components.Mode](../../models/components/mode.md)|:heavy_minus_sign:| Top level modes to run GleanChat in. |
20
+
|`useImageGeneration`|*boolean*|:heavy_minus_sign:| Whether the agent should create an image. |
0 commit comments