Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 3e3290ca-0ee8-4981-b1bc-14536048fa63
management:
docChecksum: 5a4cd8de1e6ca5f701ac27e244d09799
docChecksum: 30752ad325475357749711c885ecb81f
docVersion: 0.9.0
speakeasyVersion: 1.636.3
generationVersion: 2.723.11
releaseVersion: 0.10.3
configChecksum: e07c2e6f4cf5159e031335490e5f2f34
speakeasyVersion: 1.638.0
generationVersion: 2.728.0
releaseVersion: 0.11.0
configChecksum: 07f0a9ba148add2a46e7e1b2f680ddab
repoURL: https://github.com/gleanwork/api-client-python.git
installationURL: https://github.com/gleanwork/api-client-python.git
published: true
Expand All @@ -16,7 +16,7 @@ features:
additionalProperties: 1.0.1
configurableModuleName: 0.2.0
constsAndDefaults: 1.0.5
core: 5.22.1
core: 5.23.0
defaultEnabledRetries: 0.2.0
deprecations: 3.0.2
devContainers: 3.0.0
Expand Down Expand Up @@ -2742,6 +2742,4 @@ generatedTests:
editcollection: "2025-06-12T19:13:52-04:00"
createshortcut: "2025-06-12T19:13:52-04:00"
updateshortcut: "2025-06-12T19:13:52-04:00"
releaseNotes: |
## Python SDK Changes Detected:
* `glean.client.messages.retrieve()`: `request.datasource` **Changed** **Breaking** :warning:
releaseNotes: "## Python SDK Changes Detected:\n* `glean.client.chat.create()`: \n * `request.messages.[].agent_config.use_image_generation` **Added**\n * `response.messages.[].agent_config.use_image_generation` **Added**\n* `glean.client.chat.retrieve()`: `response.chat_result.chat.messages.[].agent_config.use_image_generation` **Added**\n* `glean.client.chat.create_stream()`: \n * `request.messages.[].agent_config.use_image_generation` **Added**\n"
4 changes: 3 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
hoistGlobalSecurity: true
schemas:
allOfMergeStrategy: shallowMerge
mockServer:
disabled: false
tests:
generateTests: true
generateNewTests: true
skipResponseBodyAssertions: true
python:
version: 0.10.3
version: 0.11.0
additionalDependencies:
dev: {}
main: {}
Expand Down
87 changes: 48 additions & 39 deletions .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7047,6 +7047,9 @@ components:
enum:
- DEFAULT
- QUICK
useImageGeneration:
type: boolean
description: Whether the agent should create an image.
ChatFileStatus:
type: string
description: Current status of the file.
Expand Down Expand Up @@ -7427,6 +7430,19 @@ components:
deprecated: true
type: boolean
description: Signals there are additional response fragments incoming.
ChatRequestBase:
required:
- messages
description: The minimal set of fields that form a chat request.
properties:
messages:
type: array
description: A list of chat messages, from most recent to least recent. At least one message must specify a USER author.
items:
$ref: "#/components/schemas/ChatMessage"
sessionInfo:
description: Optional object for tracking the session used by the client and for debugging purposes.
$ref: "#/components/schemas/SessionInfo"
ChatRestrictionFilters:
allOf:
- $ref: "#/components/schemas/RestrictionFilters"
Expand All @@ -7441,45 +7457,38 @@ components:
items:
type: string
ChatRequest:
required:
- messages
properties:
saveChat:
type: boolean
description: Save the current interaction as a Chat for the user to access and potentially continue later.
chatId:
type: string
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.
messages:
type: array
description: A list of chat messages, from most recent to least recent. At least one message must specify a USER author.
items:
$ref: "#/components/schemas/ChatMessage"
agentConfig:
$ref: "#/components/schemas/AgentConfig"
description: Describes the agent that will execute the request.
inclusions:
$ref: "#/components/schemas/ChatRestrictionFilters"
description: A list of filters which only allows chat to access certain content.
exclusions:
$ref: "#/components/schemas/ChatRestrictionFilters"
description: A list of filters which disallows chat from accessing certain content. If content is in both inclusions and exclusions, it'll be excluded.
timeoutMillis:
type: integer
description: Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer.
example: 30000
sessionInfo:
description: Optional object for tracking the session used by the client and for debugging purposes.
$ref: "#/components/schemas/SessionInfo"
applicationId:
type: string
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.
agentId:
type: string
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.
stream:
type: boolean
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.
allOf:
- $ref: "#/components/schemas/ChatRequestBase"
- type: object
properties:
saveChat:
type: boolean
description: Save the current interaction as a Chat for the user to access and potentially continue later.
chatId:
type: string
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.
agentConfig:
$ref: "#/components/schemas/AgentConfig"
description: Describes the agent that will execute the request.
inclusions:
$ref: "#/components/schemas/ChatRestrictionFilters"
description: A list of filters which only allows chat to access certain content.
exclusions:
$ref: "#/components/schemas/ChatRestrictionFilters"
description: A list of filters which disallows chat from accessing certain content. If content is in both inclusions and exclusions, it'll be excluded.
timeoutMillis:
type: integer
description: Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer.
example: 30000
applicationId:
type: string
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.
agentId:
type: string
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.
stream:
type: boolean
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.
ChatResponse:
description: A single response from the /chat backend.
properties:
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
speakeasyVersion: 1.636.3
speakeasyVersion: 1.638.0
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:1dc42ac3d5012271bce5ddf879010efb2f292ded5ce08d224bb1cd28fcc4558d
sourceBlobDigest: sha256:fa9263107a00a7b99c1ea0d1c0100757e4abad76b9156a0c98186da8953f8f16
sourceRevisionDigest: sha256:d7d301aaa9efeddb264ed6ae3d4186b8472d376b021c3f22f96d0c15e79c0ee6
sourceBlobDigest: sha256:a97d8110c742a097fb206e255a509eb2407aec24dc4e9fb8dcacc9a6a52eb134
tags:
- latest
- speakeasy-sdk-regen-1760583312
- speakeasy-sdk-regen-1760999713
Glean Client API:
sourceNamespace: glean-client-api
sourceRevisionDigest: sha256:4edc63ad559e4f2c9fb9ebf5edaaaaa9269f1874d271cfd84b441d6dacac43d2
Expand All @@ -17,10 +17,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:1dc42ac3d5012271bce5ddf879010efb2f292ded5ce08d224bb1cd28fcc4558d
sourceBlobDigest: sha256:fa9263107a00a7b99c1ea0d1c0100757e4abad76b9156a0c98186da8953f8f16
sourceRevisionDigest: sha256:d7d301aaa9efeddb264ed6ae3d4186b8472d376b021c3f22f96d0c15e79c0ee6
sourceBlobDigest: sha256:a97d8110c742a097fb206e255a509eb2407aec24dc4e9fb8dcacc9a6a52eb134
codeSamplesNamespace: glean-api-specs-python-code-samples
codeSamplesRevisionDigest: sha256:c0d827ef14785e6dd39b1db016e2957246cd2c73a71693fd1ef691f7878c7917
codeSamplesRevisionDigest: sha256:abdef7ef88aa0c1f53e27fbeb7135b40310218f3614256f70532ef9d39af53e5
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,4 +308,14 @@ Based on:
### Generated
- [python v0.10.3] .
### Releases
- [PyPI v0.10.3] https://pypi.org/project/glean/0.10.3 - .
- [PyPI v0.10.3] https://pypi.org/project/glean/0.10.3 - .

## 2025-10-22 02:08:18
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.638.0 (2.728.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.11.0] .
### Releases
- [PyPI v0.11.0] https://pypi.org/project/glean/0.11.0 - .
3 changes: 2 additions & 1 deletion docs/models/agentconfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ Describes the agent that executes the request.
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| `agent` | [Optional[models.AgentEnum]](../models/agentenum.md) | :heavy_minus_sign: | Name of the agent. |
| `tool_sets` | [Optional[models.ToolSets]](../models/toolsets.md) | :heavy_minus_sign: | The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` values |
| `mode` | [Optional[models.Mode]](../models/mode.md) | :heavy_minus_sign: | Top level modes to run GleanChat in. |
| `mode` | [Optional[models.Mode]](../models/mode.md) | :heavy_minus_sign: | Top level modes to run GleanChat in. |
| `use_image_generation` | *Optional[bool]* | :heavy_minus_sign: | Whether the agent should create an image. |
Loading