Skip to content

Commit 401d870

Browse files
Merge pull request #21 from gleanwork/speakeasy-sdk-regen-1749237143
chore: 🐝 Update SDK - Generate 0.5.2
2 parents bf962ec + af9ac14 commit 401d870

26 files changed

+200
-150
lines changed

β€Ž.speakeasy/gen.lockβ€Ž

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
lockVersion: 2.0.0
22
id: 0359d4fe-2923-46fc-aaca-cf70b48dcfa1
33
management:
4-
docChecksum: 2c7958d4387029e26995250cfa9844b1
4+
docChecksum: a0748babeea2c91be038da9e477a97f3
55
docVersion: 0.9.0
6-
speakeasyVersion: 1.555.3
7-
generationVersion: 2.620.2
8-
releaseVersion: 0.5.1
9-
configChecksum: ea3568caa832103b95578e36daa71ce8
6+
speakeasyVersion: 1.557.0
7+
generationVersion: 2.623.0
8+
releaseVersion: 0.5.2
9+
configChecksum: 5e138df16879e9b012d699506c95c899
1010
repoURL: https://github.com/gleanwork/api-client-java.git
1111
published: true
1212
features:
1313
java:
1414
additionalDependencies: 0.1.0
1515
additionalProperties: 0.0.1
1616
constsAndDefaults: 0.1.1
17-
core: 3.37.3
17+
core: 3.37.4
1818
deprecations: 2.81.1
1919
examples: 2.81.5
2020
flattening: 2.81.1
@@ -1773,7 +1773,7 @@ examples:
17731773
query: {}
17741774
responses:
17751775
"200":
1776-
application/json: {"agent_id": "<id>", "name": "<value>", "capabilities": {}}
1776+
application/json: {"agent_id": "mho4lwzylcozgoc2", "name": "HR Policy Agent", "description": "This agent answers questions about the current company HR policies.", "capabilities": {}}
17771777
getAgentSchemas:
17781778
speakeasy-default-get-agent-schemas:
17791779
parameters:
@@ -1782,14 +1782,14 @@ examples:
17821782
query: {}
17831783
responses:
17841784
"200":
1785-
application/json: {"agent_id": "<id>", "input_schema": {}, "output_schema": {}}
1785+
application/json: {"agent_id": "mho4lwzylcozgoc2", "input_schema": {}, "output_schema": {}}
17861786
searchAgents:
17871787
speakeasy-default-search-agents:
17881788
requestBody:
1789-
application/json: {}
1789+
application/json: {"name": "HR Policy Agent"}
17901790
responses:
17911791
"200":
1792-
application/json: {}
1792+
application/json: {"agents": [{"agent_id": "mho4lwzylcozgoc2", "name": "HR Policy Agent", "description": "This agent answers questions about the current company HR policies.", "capabilities": {}}]}
17931793
createAndStreamRun:
17941794
speakeasy-default-create-and-stream-run:
17951795
requestBody:

β€Ž.speakeasy/gen.yamlβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ generation:
1717
oAuth2ClientCredentialsEnabled: true
1818
oAuth2PasswordEnabled: true
1919
java:
20-
version: 0.5.1
20+
version: 0.5.2
2121
additionalDependencies: []
2222
additionalPlugins: []
2323
artifactID: glean-api-client
24+
baseErrorName: GleanError
2425
clientServerStatusCodesAsErrors: true
2526
companyEmail: support@glean.com
2627
companyName: Glean

β€Ž.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 & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.555.3
1+
speakeasyVersion: 1.557.0
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:31f82ab8b1f1831ad2f8bae58f4e1a7fb0d760de701c43ca0868c9fc0c2dea42
6-
sourceBlobDigest: sha256:317f3701feac64292f15f9c705d91ebacd1168fc2b2c29548a67f51b77189824
5+
sourceRevisionDigest: sha256:927ebf4c072ddb7d9c4a9501c375fb01ecf9f95a3b50fc73205f2c30e5863107
6+
sourceBlobDigest: sha256:552c782f3b9cf6ed461abfbed82233620b573fa3c71fcb6d59dc5a02efd43d35
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1749088970
9+
- speakeasy-sdk-regen-1749237143
1010
Glean-OAS:
1111
sourceNamespace: glean-oas
1212
sourceRevisionDigest: sha256:8841834dd58ddd4e2dcf98fc90fbd06fbf3626a29df941503cce55b9548a5317
@@ -18,10 +18,10 @@ targets:
1818
glean:
1919
source: Glean API
2020
sourceNamespace: glean-api-specs
21-
sourceRevisionDigest: sha256:31f82ab8b1f1831ad2f8bae58f4e1a7fb0d760de701c43ca0868c9fc0c2dea42
22-
sourceBlobDigest: sha256:317f3701feac64292f15f9c705d91ebacd1168fc2b2c29548a67f51b77189824
21+
sourceRevisionDigest: sha256:927ebf4c072ddb7d9c4a9501c375fb01ecf9f95a3b50fc73205f2c30e5863107
22+
sourceBlobDigest: sha256:552c782f3b9cf6ed461abfbed82233620b573fa3c71fcb6d59dc5a02efd43d35
2323
codeSamplesNamespace: glean-api-specs-java-code-samples
24-
codeSamplesRevisionDigest: sha256:21636f866ad31e6a517d5f9e84ce43576ac0853ff4528a5c13701ca53f305bba
24+
codeSamplesRevisionDigest: sha256:c9f715798008c16113c896595f00c3261f5547514bef4a27e3cc0e8929608700
2525
workflow:
2626
workflowVersion: 1.0.0
2727
speakeasyVersion: latest

β€ŽREADME.mdβ€Ž

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ The samples below show how a published SDK artifact is used:
6262

6363
Gradle:
6464
```groovy
65-
implementation 'com.glean.api-client:glean-api-client:0.5.1'
65+
implementation 'com.glean.api-client:glean-api-client:0.5.2'
6666
```
6767

6868
Maven:
6969
```xml
7070
<dependency>
7171
<groupId>com.glean.api-client</groupId>
7272
<artifactId>glean-api-client</artifactId>
73-
<version>0.5.1</version>
73+
<version>0.5.2</version>
7474
</dependency>
7575
```
7676

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

304304
#### [client().agents()](docs/sdks/agents/README.md)
305305

306-
* [retrieve](docs/sdks/agents/README.md#retrieve) - Get Agent
307-
* [retrieveSchemas](docs/sdks/agents/README.md#retrieveschemas) - Get Agent Schemas
308-
* [list](docs/sdks/agents/README.md#list) - Search Agents
309-
* [runStream](docs/sdks/agents/README.md#runstream) - Create Run, Stream Output
310-
* [run](docs/sdks/agents/README.md#run) - Create Run, Wait for Output
306+
* [retrieve](docs/sdks/agents/README.md#retrieve) - Retrieve an agent
307+
* [retrieveSchemas](docs/sdks/agents/README.md#retrieveschemas) - List an agent's schemas
308+
* [list](docs/sdks/agents/README.md#list) - Search agents
309+
* [runStream](docs/sdks/agents/README.md#runstream) - Create an agent run and stream the response
310+
* [run](docs/sdks/agents/README.md#run) - Create an [agent](https://developers.glean.com/agents/agents-api) run and wait for the response
311311

312312
#### [client().announcements()](docs/sdks/announcements/README.md)
313313

β€Ž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
- [java v0.5.1] .
110110
### Releases
111-
- [Maven Central v0.5.1] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.5.1 - .
111+
- [Maven Central v0.5.1] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.5.1 - .
112+
113+
## 2025-06-06 19:12:03
114+
### Changes
115+
Based on:
116+
- OpenAPI Doc
117+
- Speakeasy CLI 1.557.0 (2.623.0) https://github.com/speakeasy-api/speakeasy
118+
### Generated
119+
- [java v0.5.2] .
120+
### Releases
121+
- [Maven Central v0.5.2] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.5.2 - .

β€Žbuild.gradleβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ publishing {
103103
// https://github.com/gradle/gradle/issues/18619
104104
groupId = "com.glean.api-client"
105105
artifactId = "glean-api-client"
106-
version = "0.5.1"
106+
version = "0.5.2"
107107

108108
from components.java
109109

0 commit comments

Comments
Β (0)