Skip to content

Commit 5363009

Browse files
Merge pull request #180 from gleanwork/speakeasy-sdk-regen-1789751376
chore: 🐝 Update SDK - Generate 0.17.15
2 parents 5bf88df + b674e38 commit 5363009

105 files changed

Lines changed: 4633 additions & 301 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.speakeasy/gen.lock‎

Lines changed: 358 additions & 104 deletions
Large diffs are not rendered by default.

‎.speakeasy/gen.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ generation:
3434
generateNewTests: true
3535
skipResponseBodyAssertions: true
3636
python:
37-
version: 0.17.14
37+
version: 0.17.15
3838
additionalDependencies:
3939
dev: {}
4040
main: {}

‎.speakeasy/glean-merged-spec.yaml‎

Lines changed: 478 additions & 36 deletions
Large diffs are not rendered by default.

‎.speakeasy/tests.arazzo.yaml‎

Lines changed: 82 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158786,6 +158786,7 @@ workflows:
158786158786
requestBody:
158787158787
contentType: application/json
158788158788
payload:
158789+
execution_mode: REQUEST_BOUND
158789158790
messages:
158790158791
- content:
158791158792
- text: What is our parental leave policy?
@@ -159049,9 +159050,24 @@ workflows:
159049159050
requestBody:
159050159051
contentType: application/json
159051159052
payload:
159052-
input: What is our parental leave policy?
159053+
input: Summarize our parental leave policy as JSON.
159053159054
store: true
159054159055
stream: false
159056+
text:
159057+
format:
159058+
name: policy_summary
159059+
schema:
159060+
properties:
159061+
duration_weeks:
159062+
type: integer
159063+
eligible_employees:
159064+
type: string
159065+
required:
159066+
- eligible_employees
159067+
- duration_weeks
159068+
type: object
159069+
strict: true
159070+
type: JSON_SCHEMA
159055159071
successCriteria:
159056159072
- condition: $statusCode == 200
159057159073
- condition: $response.header.Content-Type == application/json
@@ -159458,3 +159474,68 @@ workflows:
159458159474
type: simple
159459159475
x-speakeasy-test-group: triggers
159460159476
x-speakeasy-test-rebuild: true
159477+
- workflowId: platform-agents-get-run
159478+
steps:
159479+
- stepId: test
159480+
operationId: platform-agents-get-run
159481+
parameters:
159482+
- name: agent_id
159483+
in: path
159484+
value: '{agent_id}'
159485+
- name: run_id
159486+
in: path
159487+
value: '{run_id}'
159488+
successCriteria:
159489+
- condition: $statusCode == 200
159490+
- condition: $response.header.Content-Type == application/json
159491+
- context: $response.body
159492+
condition: |
159493+
{"run":{"run_id":"<id>","agent_id":"<id>","state":"CANCELLING","created_at":"2025-02-20T06:37:06.101Z","updated_at":"2025-06-13T07:24:18.599Z","pending_interactions":[]},"request_id":"<id>"}
159494+
type: simple
159495+
x-speakeasy-test-group: agents
159496+
x-speakeasy-test-rebuild: true
159497+
- workflowId: platform-agents-cancel-run
159498+
steps:
159499+
- stepId: test
159500+
operationId: platform-agents-cancel-run
159501+
parameters:
159502+
- name: agent_id
159503+
in: path
159504+
value: '{agent_id}'
159505+
requestBody:
159506+
contentType: application/json
159507+
payload:
159508+
run_id: '{run_id}'
159509+
successCriteria:
159510+
- condition: $statusCode == 200
159511+
- condition: $response.header.Content-Type == application/json
159512+
- context: $response.body
159513+
condition: |
159514+
{"run":{"run_id":"<id>","agent_id":"<id>","state":"REQUIRES_INPUT","created_at":"2026-04-14T14:14:08.916Z","updated_at":"2025-07-26T12:32:21.659Z","pending_interactions":[]},"request_id":"<id>"}
159515+
type: simple
159516+
x-speakeasy-test-group: agents
159517+
x-speakeasy-test-rebuild: true
159518+
- workflowId: platform-agents-create-run-responses
159519+
steps:
159520+
- stepId: test
159521+
operationId: platform-agents-create-run-responses
159522+
parameters:
159523+
- name: agent_id
159524+
in: path
159525+
value: '{agent_id}'
159526+
requestBody:
159527+
contentType: application/json
159528+
payload:
159529+
responses:
159530+
- decision: APPROVE
159531+
interaction_id: '{interaction_id}'
159532+
run_id: '{run_id}'
159533+
successCriteria:
159534+
- condition: $statusCode == 200
159535+
- condition: $response.header.Content-Type == application/json
159536+
- context: $response.body
159537+
condition: |
159538+
{"run":{"run_id":"<id>","agent_id":"<id>","state":"QUEUED","created_at":"2024-08-26T19:05:47.442Z","updated_at":"2026-08-22T09:50:35.176Z","pending_interactions":[{"interaction_id":"<id>","type":"TOOL_APPROVAL","display_name":"King.Trantow44","description":"provided collectivization whereas disapprove gah astride under stoop louse","arguments":{"key":"<value>","key1":"<value>"}}]},"request_id":"<id>"}
159539+
type: simple
159540+
x-speakeasy-test-group: agents
159541+
x-speakeasy-test-rebuild: true

‎.speakeasy/workflow.lock‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
speakeasyVersion: 1.797.0
1+
speakeasyVersion: 1.798.0
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:1f470e422d6b202bf6bb80cc2e4b73077b7dab6d476cda804245fc0402ea42f1
6-
sourceBlobDigest: sha256:8919e7ffe50c1ca78844cd89c216e8ab3c54a8e0003bd5072e7fe3cd35fb192c
5+
sourceRevisionDigest: sha256:09823f8003cfb3ebf08b6adfa434cefda4c97f7ee64ae18dc0066fe392647c97
6+
sourceBlobDigest: sha256:fc4fcf9c37dfd0e8387153211f760a21a602ede64951d4e4c824e8e1b168b7b8
77
tags:
88
- latest
99
Glean Client API:
@@ -16,10 +16,10 @@ targets:
1616
glean:
1717
source: Glean API
1818
sourceNamespace: glean-api-specs
19-
sourceRevisionDigest: sha256:1f470e422d6b202bf6bb80cc2e4b73077b7dab6d476cda804245fc0402ea42f1
20-
sourceBlobDigest: sha256:8919e7ffe50c1ca78844cd89c216e8ab3c54a8e0003bd5072e7fe3cd35fb192c
19+
sourceRevisionDigest: sha256:09823f8003cfb3ebf08b6adfa434cefda4c97f7ee64ae18dc0066fe392647c97
20+
sourceBlobDigest: sha256:fc4fcf9c37dfd0e8387153211f760a21a602ede64951d4e4c824e8e1b168b7b8
2121
codeSamplesNamespace: glean-api-specs-python-code-samples
22-
codeSamplesRevisionDigest: sha256:07e63ad12522c0ccf6dc9dab0943696972a489679ebc077bb6bfd23d25a123b8
22+
codeSamplesRevisionDigest: sha256:5da391e8e0a7821657f62afcee0636ca4423213b036163bea43637e45c1f3c7c
2323
workflow:
2424
workflowVersion: 1.0.0
2525
speakeasyVersion: latest

‎README.md‎

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,9 @@ For more information on obtaining the appropriate token type, please contact you
321321
* [get](docs/sdks/agents/README.md#get) - Get agent
322322
* [get_schemas](docs/sdks/agents/README.md#get_schemas) - Get agent schemas
323323
* [create_run](docs/sdks/agents/README.md#create_run) - Create agent run
324+
* [get_run](docs/sdks/agents/README.md#get_run) - Get agent run
325+
* [cancel_run](docs/sdks/agents/README.md#cancel_run) - Cancel an agent run
326+
* [respond_to_run](docs/sdks/agents/README.md#respond_to_run) - Respond to agent run approvals
324327

325328
### [Chat](docs/sdks/chatsdk/README.md)
326329

@@ -605,15 +608,36 @@ The stream is also a [Context Manager][context-manager] and can be used with the
605608
underlying connection when the context is exited.
606609

607610
```python
608-
from glean.api_client import Glean
611+
from glean.api_client import Glean, models
609612
import os
610613

611614

612615
with Glean(
613616
api_token=os.getenv("GLEAN_API_TOKEN", ""),
614617
) as glean:
615618

616-
res = glean.chat.create_stream(input="What is our parental leave policy?", store=True)
619+
res = glean.chat.create_stream(input="Summarize our parental leave policy as JSON.", store=True, text={
620+
"format_": {
621+
"type": models.PlatformChatJSONSchemaFormatType.JSON_SCHEMA,
622+
"name": "policy_summary",
623+
"schema_": {
624+
"type": "object",
625+
"properties": {
626+
"eligible_employees": {
627+
"type": "string",
628+
},
629+
"duration_weeks": {
630+
"type": "integer",
631+
},
632+
},
633+
"required": [
634+
"eligible_employees",
635+
"duration_weeks",
636+
],
637+
},
638+
"strict": True,
639+
},
640+
})
617641

618642
with res as event_stream:
619643
for event in event_stream:

‎RELEASES.md‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,4 +998,14 @@ Based on:
998998
### Generated
999999
- [python v0.17.14] .
10001000
### Releases
1001-
- [PyPI v0.17.14] https://pypi.org/project/glean-api-client/0.17.14 - .
1001+
- [PyPI v0.17.14] https://pypi.org/project/glean-api-client/0.17.14 - .
1002+
1003+
## 2026-09-23 18:28:49
1004+
### Changes
1005+
Based on:
1006+
- OpenAPI Doc
1007+
- Speakeasy CLI 1.798.0 (2.938.0) https://github.com/speakeasy-api/speakeasy
1008+
### Generated
1009+
- [python v0.17.15] .
1010+
### Releases
1011+
- [PyPI v0.17.15] https://pypi.org/project/glean-api-client/0.17.15 - .

‎docs/models/decision.md‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Decision
2+
3+
The decision for this invocation only. Rejection follows normal workflow behavior.
4+
5+
## Example Usage
6+
7+
```python
8+
from glean.api_client.models import Decision
9+
10+
value = Decision.APPROVE
11+
```
12+
13+
14+
## Values
15+
16+
| Name | Value |
17+
| --------- | --------- |
18+
| `APPROVE` | APPROVE |
19+
| `REJECT` | REJECT |

‎docs/models/executionmode.md‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# ExecutionMode
2+
3+
REQUEST_BOUND preserves the existing wait/stream behavior. DURABLE starts a fresh, persisted execution with a 30-minute execution timeout and returns immediately. DURABLE requires stream to be false or omitted and does not accept metadata.chat_session_id. It does not bypass tool approval requirements or provide automatic QE-crash resumption. Expiry is read-triggered: the next GET of the run marks an active turn FAILED if more than 40 minutes have passed since the turn was accepted. There is no periodic sweep, so the stored run can remain RUNNING until it is read. Expiry never replays execution or expires approval-paused runs, and failure does not prove that external tool work has stopped.
4+
5+
6+
## Example Usage
7+
8+
```python
9+
from glean.api_client.models import ExecutionMode
10+
11+
value = ExecutionMode.REQUEST_BOUND
12+
```
13+
14+
15+
## Values
16+
17+
| Name | Value |
18+
| --------------- | --------------- |
19+
| `REQUEST_BOUND` | REQUEST_BOUND |
20+
| `DURABLE` | DURABLE |

‎docs/models/feedrequestcategory.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,6 @@ value = FeedRequestCategory.DOCUMENT_SUGGESTION
6464
| `ARTIFACT_CREATION` | ARTIFACT_CREATION |
6565
| `EDIT_DOC` | EDIT_DOC |
6666
| `CHAT_TO_ARTIFACT` | CHAT_TO_ARTIFACT |
67-
| `SHARE_ARTIFACT` | SHARE_ARTIFACT |
67+
| `SHARE_ARTIFACT` | SHARE_ARTIFACT |
68+
| `CREATE_AGENT` | CREATE_AGENT |
69+
| `MANAGER_INVITE` | MANAGER_INVITE |

0 commit comments

Comments
 (0)