Skip to content

Commit 9d273e3

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.557.0
1 parent 7434dae commit 9d273e3

File tree

589 files changed

+51925
-2542
lines changed

Some content is hidden

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

589 files changed

+51925
-2542
lines changed

.speakeasy/gen.lock

Lines changed: 42 additions & 21 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@ generation:
2525
generateNewTests: true
2626
skipResponseBodyAssertions: true
2727
python:
28-
version: 0.6.1
28+
version: 0.6.2
2929
additionalDependencies:
3030
dev: {}
3131
main: {}
3232
authors:
3333
- Speakeasy
34+
baseErrorName: GleanBaseError
3435
clientServerStatusCodesAsErrors: true
3536
defaultErrorName: GleanError
3637
description: Python Client SDK Generated by Speakeasy.

.speakeasy/glean-merged-spec.yaml

Lines changed: 41 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -756,8 +756,8 @@ paths:
756756
get:
757757
tags:
758758
- Agents
759-
summary: Get Agent
760-
description: Get an agent by ID. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/GET/agents/{agent_id}). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
759+
summary: Retrieve an agent
760+
description: Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder.
761761
operationId: getAgent
762762
x-visibility: Preview
763763
parameters:
@@ -795,8 +795,8 @@ paths:
795795
get:
796796
tags:
797797
- Agents
798-
summary: Get Agent Schemas
799-
description: Get an agent's schemas by ID. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/GET/agents/{agent_id}/schemas). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
798+
summary: List an agent's schemas
799+
description: Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure.
800800
operationId: getAgentSchemas
801801
x-visibility: Preview
802802
parameters:
@@ -840,8 +840,8 @@ paths:
840840
post:
841841
tags:
842842
- Agents
843-
summary: Search Agents
844-
description: List Agents available in this service. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/POST/agents/search). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
843+
summary: Search agents
844+
description: "Search for [agents](https://developers.glean.com/agents/agents-api) by agent name. "
845845
operationId: searchAgents
846846
x-visibility: Preview
847847
requestBody:
@@ -881,8 +881,8 @@ paths:
881881
post:
882882
tags:
883883
- Agents
884-
summary: Create Run, Stream Output
885-
description: Creates and triggers a run of an agent. Streams the output in SSE format. This endpoint implements the LangChain Agent Protocol, specifically part of the Runs stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/runs/POST/runs/stream). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol. Note that running agents that reference third party platform write actions is unsupported as it requires user confirmation.
884+
summary: Create an agent run and stream the response
885+
description: Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE).
886886
operationId: createAndStreamRun
887887
x-visibility: Preview
888888
requestBody:
@@ -898,12 +898,23 @@ paths:
898898
text/event-stream:
899899
schema:
900900
type: string
901-
description: |-
902-
The server will send a stream of events in SSE format.
903-
**Example event**:
901+
description: The server will send a stream of events in server-sent events (SSE) format.
902+
example: |
904903
id: 1
905904
event: message
906-
data: {}
905+
data: {"messages":[{"role":"GLEAN_AI","content":[{"text":"Hello","type":"text"}]}]}
906+
907+
id: 2
908+
event: message
909+
data: {"messages":[{"role":"GLEAN_AI","content":[{"text":",","type":"text"}]}]}
910+
911+
id: 3
912+
event: message
913+
data: {"messages":[{"role":"GLEAN_AI","content":[{"text":" I'm","type":"text"}]}]}
914+
915+
id: 4
916+
event: message
917+
data: {"messages":[{"role":"GLEAN_AI","content":[{"text":" your","type":"text"}]}]}
907918
"400":
908919
description: Bad request
909920
"403":
@@ -934,8 +945,8 @@ paths:
934945
post:
935946
tags:
936947
- Agents
937-
summary: Create Run, Wait for Output
938-
description: Creates and triggers a run of an agent. Waits for final output and then returns it. This endpoint implements the LangChain Agent Protocol, specifically part of the Runs stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/runs/POST/runs/wait). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol. Note that running agents that reference third party platform write actions is unsupported as it requires user confirmation.
948+
summary: Create an [agent](https://developers.glean.com/agents/agents-api) run and wait for the response
949+
description: Executes an agent run and returns the final response.
939950
operationId: createAndWaitRun
940951
x-visibility: Preview
941952
requestBody:
@@ -7417,31 +7428,38 @@ components:
74177428
type: string
74187429
title: Agent Id
74197430
description: The ID of the agent.
7431+
example: mho4lwzylcozgoc2
74207432
name:
74217433
type: string
74227434
title: Agent Name
74237435
description: The name of the agent
7436+
example: HR Policy Agent
74247437
description:
74257438
type: string
74267439
title: Description
74277440
description: The description of the agent.
7441+
example: This agent answers questions about the current company HR policies.
74287442
metadata:
74297443
type: object
74307444
title: Metadata
7431-
description: The agent metadata.
7445+
description: The agent metadata. Currently not implemented.
74327446
capabilities:
74337447
type: object
74347448
title: Agent Capabilities
7435-
description: Describes which protocol features the agent supports. In addition to the standard capabilities (prefixed with ap.), implementations can declare custom capabilities, named in reverse domain notation (eg. com.example.some.capability).
7449+
description: |-
7450+
Describes features that the agent supports. example: {
7451+
"ap.io.messages": true,
7452+
"ap.io.streaming": true
7453+
}
74367454
properties:
74377455
ap.io.messages:
74387456
type: boolean
74397457
title: Messages
7440-
description: Whether the agent supports Messages as input/output/state. If true, the agent uses the `messages` key in threads/runs endpoints.
7458+
description: Whether the agent supports messages as an input. If true, you'll pass `messages` as an input when running the agent.
74417459
ap.io.streaming:
74427460
type: boolean
74437461
title: Streaming
7444-
description: Whether the agent supports streaming output.
7462+
description: Whether the agent supports streaming output. If true, you you can stream agent ouput. All agents currently support streaming.
74457463
additionalProperties: true
74467464
ErrorResponse:
74477465
type: string
@@ -7453,14 +7471,15 @@ components:
74537471
type: string
74547472
title: Agent Id
74557473
description: The ID of the agent.
7474+
example: mho4lwzylcozgoc2
74567475
input_schema:
74577476
type: object
74587477
title: Input Schema
7459-
description: The schema for the agent input. In JSON Schema format.
7478+
description: The schema for the agent input. In JSON schema format.
74607479
output_schema:
74617480
type: object
74627481
title: Output Schema
7463-
description: The schema for the agent output. In JSON Schema format.
7482+
description: The schema for the agent output. In JSON schema format.
74647483
type: object
74657484
required:
74667485
- agent_id
@@ -7473,7 +7492,8 @@ components:
74737492
properties:
74747493
name:
74757494
type: string
7476-
description: Filters on the name of the agent. If empty, acts as no filter.
7495+
description: Filters on the name of the agent. The keyword search is case-insensitive. If search string is ommited or empty, acts as no filter.
7496+
example: HR Policy Agent
74777497
SearchAgentsResponse:
74787498
type: object
74797499
title: Response Search Agents

.speakeasy/workflow.lock

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
speakeasyVersion: 1.555.1
1+
speakeasyVersion: 1.557.0
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:8e2d79c193d7d522db0b1817c101317269b4303fe62398cd206f47b62bf13aa7
6-
sourceBlobDigest: sha256:317f3701feac64292f15f9c705d91ebacd1168fc2b2c29548a67f51b77189824
5+
sourceRevisionDigest: sha256:927ebf4c072ddb7d9c4a9501c375fb01ecf9f95a3b50fc73205f2c30e5863107
6+
sourceBlobDigest: sha256:552c782f3b9cf6ed461abfbed82233620b573fa3c71fcb6d59dc5a02efd43d35
77
tags:
88
- latest
9+
- speakeasy-sdk-regen-1749237128
910
Glean Client API:
1011
sourceNamespace: glean-client-api
1112
sourceRevisionDigest: sha256:4edc63ad559e4f2c9fb9ebf5edaaaaa9269f1874d271cfd84b441d6dacac43d2
@@ -16,10 +17,10 @@ targets:
1617
glean:
1718
source: Glean API
1819
sourceNamespace: glean-api-specs
19-
sourceRevisionDigest: sha256:8e2d79c193d7d522db0b1817c101317269b4303fe62398cd206f47b62bf13aa7
20-
sourceBlobDigest: sha256:317f3701feac64292f15f9c705d91ebacd1168fc2b2c29548a67f51b77189824
20+
sourceRevisionDigest: sha256:927ebf4c072ddb7d9c4a9501c375fb01ecf9f95a3b50fc73205f2c30e5863107
21+
sourceBlobDigest: sha256:552c782f3b9cf6ed461abfbed82233620b573fa3c71fcb6d59dc5a02efd43d35
2122
codeSamplesNamespace: glean-api-specs-python-code-samples
22-
codeSamplesRevisionDigest: sha256:38daa09fcc08430b42c527a3325478333bf123fbc4e178ec364cddbda1582359
23+
codeSamplesRevisionDigest: sha256:a4e3d3787a5f493fb7e73dc7f1a9a0826462cd51e6bc313b50e993958fb0bc7f
2324
workflow:
2425
workflowVersion: 1.0.0
2526
speakeasyVersion: latest

README.md

Lines changed: 24 additions & 24 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

@@ -343,11 +343,11 @@ For more information on obtaining the appropriate token type, please contact you
343343

344344
#### [client.agents](docs/sdks/agents/README.md)
345345

346-
* [retrieve](docs/sdks/agents/README.md#retrieve) - Get Agent
347-
* [retrieve_schemas](docs/sdks/agents/README.md#retrieve_schemas) - Get Agent Schemas
348-
* [list](docs/sdks/agents/README.md#list) - Search Agents
349-
* [run_stream](docs/sdks/agents/README.md#run_stream) - Create Run, Stream Output
350-
* [run](docs/sdks/agents/README.md#run) - Create Run, Wait for Output
346+
* [retrieve](docs/sdks/agents/README.md#retrieve) - Retrieve an agent
347+
* [retrieve_schemas](docs/sdks/agents/README.md#retrieve_schemas) - List an agent's schemas
348+
* [list](docs/sdks/agents/README.md#list) - Search agents
349+
* [run_stream](docs/sdks/agents/README.md#run_stream) - Create an agent run and stream the response
350+
* [run](docs/sdks/agents/README.md#run) - Create an [agent](https://developers.glean.com/agents/agents-api) run and wait for the response
351351

352352
#### [client.announcements](docs/sdks/announcements/README.md)
353353

@@ -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
@@ -118,4 +118,14 @@ Based on:
118118
### Generated
119119
- [python v0.6.1] .
120120
### Releases
121-
- [PyPI v0.6.1] https://pypi.org/project/glean/0.6.1 - .
121+
- [PyPI v0.6.1] https://pypi.org/project/glean/0.6.1 - .
122+
123+
## 2025-06-06 19:11:45
124+
### Changes
125+
Based on:
126+
- OpenAPI Doc
127+
- Speakeasy CLI 1.557.0 (2.623.0) https://github.com/speakeasy-api/speakeasy
128+
### Generated
129+
- [python v0.6.2] .
130+
### Releases
131+
- [PyPI v0.6.2] https://pypi.org/project/glean/0.6.2 - .

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():

0 commit comments

Comments
 (0)