Skip to content

Commit df358d7

Browse files
Merge pull request #38 from gleanwork/speakeasy-sdk-regen-1749237128
chore: 🐝 Update SDK - Generate 0.6.2
2 parents 7434dae + 1c6d6c7 commit df358d7

File tree

70 files changed

+3009
-2712
lines changed

Some content is hidden

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

70 files changed

+3009
-2712
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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

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 - .

0 commit comments

Comments
 (0)