Skip to content

Commit bbe3944

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.555.2
1 parent 547796b commit bbe3944

File tree

583 files changed

+49712
-660
lines changed

Some content is hidden

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

583 files changed

+49712
-660
lines changed

.speakeasy/gen.lock

Lines changed: 38 additions & 34 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
@@ -25,7 +25,7 @@ generation:
2525
generateNewTests: true
2626
skipResponseBodyAssertions: true
2727
python:
28-
version: 0.6.0
28+
version: 0.6.1
2929
additionalDependencies:
3030
dev: {}
3131
main: {}

.speakeasy/glean-merged-spec.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7511,6 +7511,8 @@ components:
75117511
AgentRunCreate:
75127512
description: Payload for creating a run.
75137513
type: object
7514+
required:
7515+
- agent_id
75147516
properties:
75157517
agent_id:
75167518
type: string

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.554.1
1+
speakeasyVersion: 1.555.2
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:3396ede63b0d0938d88f4b76b69092782a3d585f5c9e42bc69c607641443d427
6-
sourceBlobDigest: sha256:490084863e541d217246ad7a409dfb2b73ffd1f13bae9685c5f623c0fdc3175c
5+
sourceRevisionDigest: sha256:8fa342ea4c0f50e32d7b0930df581e4f4ec000f1f36a429c40f6ccc3f72c0b6b
6+
sourceBlobDigest: sha256:914ea4a50d56c4ac1ef7a111f11756bfd8c21bd1c652b817b729ca8706a0afc7
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1748396490
9+
- speakeasy-sdk-regen-1748993191
1010
Glean Client API:
1111
sourceNamespace: glean-client-api
1212
sourceRevisionDigest: sha256:4edc63ad559e4f2c9fb9ebf5edaaaaa9269f1874d271cfd84b441d6dacac43d2
@@ -17,10 +17,10 @@ targets:
1717
glean:
1818
source: Glean API
1919
sourceNamespace: glean-api-specs
20-
sourceRevisionDigest: sha256:3396ede63b0d0938d88f4b76b69092782a3d585f5c9e42bc69c607641443d427
21-
sourceBlobDigest: sha256:490084863e541d217246ad7a409dfb2b73ffd1f13bae9685c5f623c0fdc3175c
20+
sourceRevisionDigest: sha256:8fa342ea4c0f50e32d7b0930df581e4f4ec000f1f36a429c40f6ccc3f72c0b6b
21+
sourceBlobDigest: sha256:914ea4a50d56c4ac1ef7a111f11756bfd8c21bd1c652b817b729ca8706a0afc7
2222
codeSamplesNamespace: glean-api-specs-python-code-samples
23-
codeSamplesRevisionDigest: sha256:63af6d316a76a6ac296df7db15ec3c116ae02f65042e3ba96be403a14fb09e3f
23+
codeSamplesRevisionDigest: sha256:74861ef8ca5de61f14037c5c7aa54891c396b1d198d3e180f03ade0523a40d74
2424
workflow:
2525
workflowVersion: 1.0.0
2626
speakeasyVersion: latest

README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
135135

136136
```python
137137
# Synchronous Example
138-
from glean.api_client import Glean, models
138+
from glean import Glean, models
139139
import os
140140

141141

@@ -163,7 +163,7 @@ The same SDK client can also be used to make asychronous requests by importing a
163163
```python
164164
# Asynchronous Example
165165
import asyncio
166-
from glean.api_client import Glean, models
166+
from glean import Glean, models
167167
import os
168168

169169
async def main():
@@ -192,7 +192,7 @@ asyncio.run(main())
192192

193193
```python
194194
# Synchronous Example
195-
from glean.api_client import Glean, models
195+
from glean import Glean, models
196196
import os
197197

198198

@@ -220,7 +220,7 @@ The same SDK client can also be used to make asychronous requests by importing a
220220
```python
221221
# Asynchronous Example
222222
import asyncio
223-
from glean.api_client import Glean, models
223+
from glean import Glean, models
224224
import os
225225

226226
async def main():
@@ -259,8 +259,8 @@ This SDK supports the following security scheme globally:
259259

260260
To authenticate with the API the `api_token` parameter must be set when initializing the SDK client instance. For example:
261261
```python
262-
from glean.api_client import Glean, models
263-
from glean.api_client.utils import parse_datetime
262+
from glean import Glean, models
263+
from glean.utils import parse_datetime
264264
import os
265265

266266

@@ -541,8 +541,8 @@ Some of the endpoints in this SDK support retries. If you use the SDK without an
541541

542542
To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
543543
```python
544-
from glean.api_client import Glean, models
545-
from glean.api_client.utils import BackoffStrategy, RetryConfig, parse_datetime
544+
from glean import Glean, models
545+
from glean.utils import BackoffStrategy, RetryConfig, parse_datetime
546546
import os
547547

548548

@@ -582,8 +582,8 @@ with Glean(
582582

583583
If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK:
584584
```python
585-
from glean.api_client import Glean, models
586-
from glean.api_client.utils import BackoffStrategy, RetryConfig, parse_datetime
585+
from glean import Glean, models
586+
from glean.utils import BackoffStrategy, RetryConfig, parse_datetime
587587
import os
588588

589589

@@ -720,8 +720,8 @@ The default server `https://{instance}-be.glean.com` contains variables and is s
720720
#### Example
721721

722722
```python
723-
from glean.api_client import Glean, models
724-
from glean.api_client.utils import parse_datetime
723+
from glean import Glean, models
724+
from glean.utils import parse_datetime
725725
import os
726726

727727

@@ -763,8 +763,8 @@ with Glean(
763763

764764
The default server can be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
765765
```python
766-
from glean.api_client import Glean, models
767-
from glean.api_client.utils import parse_datetime
766+
from glean import Glean, models
767+
from glean.utils import parse_datetime
768768
import os
769769

770770

@@ -812,7 +812,7 @@ This allows you to wrap the client with your own custom logic, such as adding cu
812812

813813
For example, you could specify a header for every request that this sdk makes as follows:
814814
```python
815-
from glean.api_client import Glean
815+
from glean import Glean
816816
import httpx
817817

818818
http_client = httpx.Client(headers={"x-custom-header": "someValue"})
@@ -821,8 +821,8 @@ s = Glean(client=http_client)
821821

822822
or you could wrap the client with your own custom logic:
823823
```python
824-
from glean.api_client import Glean
825-
from glean.api_client.httpclient import AsyncHttpClient
824+
from glean import Glean
825+
from glean.httpclient import AsyncHttpClient
826826
import httpx
827827

828828
class CustomClient(AsyncHttpClient):
@@ -892,7 +892,7 @@ The `Glean` class implements the context manager protocol and registers a finali
892892
[context-manager]: https://docs.python.org/3/reference/datamodel.html#context-managers
893893

894894
```python
895-
from glean.api_client import Glean
895+
from glean import Glean
896896
import os
897897
def main():
898898

@@ -919,7 +919,7 @@ You can setup your SDK to emit debug logs for SDK requests and responses.
919919

920920
You can pass your own logger class directly into your SDK.
921921
```python
922-
from glean.api_client import Glean
922+
from glean import Glean
923923
import logging
924924

925925
logging.basicConfig(level=logging.DEBUG)

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,14 @@ Based on:
108108
### Generated
109109
- [python v0.6.0] .
110110
### Releases
111-
- [PyPI v0.6.0] https://pypi.org/project/glean/0.6.0 - .
111+
- [PyPI v0.6.0] https://pypi.org/project/glean/0.6.0 - .
112+
113+
## 2025-06-03 23:26:09
114+
### Changes
115+
Based on:
116+
- OpenAPI Doc
117+
- Speakeasy CLI 1.555.2 (2.620.2) https://github.com/speakeasy-api/speakeasy
118+
### Generated
119+
- [python v0.6.1] .
120+
### Releases
121+
- [PyPI v0.6.1] https://pypi.org/project/glean/0.6.1 - .

USAGE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- Start SDK Example Usage [usage] -->
22
```python
33
# Synchronous Example
4-
from glean.api_client import Glean, models
4+
from glean import Glean, models
55
import os
66

77

@@ -29,7 +29,7 @@ The same SDK client can also be used to make asychronous requests by importing a
2929
```python
3030
# Asynchronous Example
3131
import asyncio
32-
from glean.api_client import Glean, models
32+
from glean import Glean, models
3333
import os
3434

3535
async def main():
@@ -56,7 +56,7 @@ asyncio.run(main())
5656

5757
```python
5858
# Synchronous Example
59-
from glean.api_client import Glean, models
59+
from glean import Glean, models
6060
import os
6161

6262

@@ -84,7 +84,7 @@ The same SDK client can also be used to make asychronous requests by importing a
8484
```python
8585
# Asynchronous Example
8686
import asyncio
87-
from glean.api_client import Glean, models
87+
from glean import Glean, models
8888
import os
8989

9090
async def main():

docs/models/agentrun.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Payload for creating a run.
77

88
| Field | Type | Required | Description |
99
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
10-
| `agent_id` | *Optional[str]* | :heavy_minus_sign: | The ID of the agent to run. |
10+
| `agent_id` | *str* | :heavy_check_mark: | The ID of the agent to run. |
1111
| `input` | Dict[str, *Any*] | :heavy_minus_sign: | The input to the agent. |
1212
| `messages` | List[[models.Message](../models/message.md)] | :heavy_minus_sign: | The messages to pass an input to the agent. |
1313
| `status` | [Optional[models.AgentExecutionStatus]](../models/agentexecutionstatus.md) | :heavy_minus_sign: | The status of the run. One of 'error', 'success'. |

docs/models/agentruncreate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ Payload for creating a run.
77

88
| Field | Type | Required | Description |
99
| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- |
10-
| `agent_id` | *Optional[str]* | :heavy_minus_sign: | The ID of the agent to run. |
10+
| `agent_id` | *str* | :heavy_check_mark: | The ID of the agent to run. |
1111
| `input` | Dict[str, *Any*] | :heavy_minus_sign: | The input to the agent. |
1212
| `messages` | List[[models.Message](../models/message.md)] | :heavy_minus_sign: | The messages to pass an input to the agent. |

docs/sdks/agents/README.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Get an agent by ID. This endpoint implements the LangChain Agent Protocol, speci
1818
### Example Usage
1919

2020
```python
21-
from glean.api_client import Glean
21+
from glean import Glean
2222
import os
2323

2424

@@ -58,7 +58,7 @@ Get an agent's schemas by ID. This endpoint implements the LangChain Agent Proto
5858
### Example Usage
5959

6060
```python
61-
from glean.api_client import Glean
61+
from glean import Glean
6262
import os
6363

6464

@@ -98,7 +98,7 @@ List Agents available in this service. This endpoint implements the LangChain Ag
9898
### Example Usage
9999

100100
```python
101-
from glean.api_client import Glean
101+
from glean import Glean
102102
import os
103103

104104

@@ -137,15 +137,15 @@ Creates and triggers a run of an agent. Streams the output in SSE format. This e
137137
### Example Usage
138138

139139
```python
140-
from glean.api_client import Glean
140+
from glean import Glean
141141
import os
142142

143143

144144
with Glean(
145145
api_token=os.getenv("GLEAN_API_TOKEN", ""),
146146
) as g_client:
147147

148-
res = g_client.client.agents.run_stream()
148+
res = g_client.client.agents.run_stream(agent_id="<id>")
149149

150150
# Handle response
151151
print(res)
@@ -156,7 +156,9 @@ with Glean(
156156

157157
| Parameter | Type | Required | Description |
158158
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
159-
| `request` | [models.AgentRunCreate](../../models/agentruncreate.md) | :heavy_check_mark: | The request object to use for the request. |
159+
| `agent_id` | *str* | :heavy_check_mark: | The ID of the agent to run. |
160+
| `input` | Dict[str, *Any*] | :heavy_minus_sign: | The input to the agent. |
161+
| `messages` | List[[models.Message](../../models/message.md)] | :heavy_minus_sign: | The messages to pass an input to the agent. |
160162
| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
161163

162164
### Response
@@ -176,15 +178,15 @@ Creates and triggers a run of an agent. Waits for final output and then returns
176178
### Example Usage
177179

178180
```python
179-
from glean.api_client import Glean
181+
from glean import Glean
180182
import os
181183

182184

183185
with Glean(
184186
api_token=os.getenv("GLEAN_API_TOKEN", ""),
185187
) as g_client:
186188

187-
res = g_client.client.agents.run()
189+
res = g_client.client.agents.run(agent_id="<id>")
188190

189191
# Handle response
190192
print(res)
@@ -195,7 +197,9 @@ with Glean(
195197

196198
| Parameter | Type | Required | Description |
197199
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
198-
| `request` | [models.AgentRunCreate](../../models/agentruncreate.md) | :heavy_check_mark: | The request object to use for the request. |
200+
| `agent_id` | *str* | :heavy_check_mark: | The ID of the agent to run. |
201+
| `input` | Dict[str, *Any*] | :heavy_minus_sign: | The input to the agent. |
202+
| `messages` | List[[models.Message](../../models/message.md)] | :heavy_minus_sign: | The messages to pass an input to the agent. |
199203
| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
200204

201205
### Response

0 commit comments

Comments
 (0)