Skip to content

Commit 20d0d52

Browse files
committed
## Python SDK Changes:
* `glean.client.chat.create()`: * `request.messages[].fragments[]` **Changed** * `response.messages[].fragments[]` **Changed** * `glean.client.chat.retrieve()`: `response.chat_result.chat.messages[].fragments[]` **Changed** * `glean.client.chat.create_stream()`: * `request.messages[].fragments[]` **Changed** * `glean.client.agents.run_stream()`: `error.authentication_suggestions[].request_type.enum(sandbox_egress)` **Added** * `glean.client.agents.run()`: `error.authentication_suggestions[].request_type.enum(sandbox_egress)` **Added**
1 parent 75b595e commit 20d0d52

29 files changed

Lines changed: 202 additions & 122 deletions

.speakeasy/gen.lock

Lines changed: 59 additions & 59 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.16.0
37+
version: 0.16.1
3838
additionalDependencies:
3939
dev: {}
4040
main: {}

.speakeasy/glean-merged-spec.yaml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ openapi: 3.0.0
22
info:
33
version: "0.9.0"
44
title: Glean API
5-
x-source-commit-sha: ae20e37cc1d6786192c975f846fbe57527d94d7e
6-
x-open-api-commit-sha: 68a8939fe1b80a3a659ea78c778a5ddfdcb8e999
5+
x-source-commit-sha: 57c5ed97e505b6f223d7a45ad5a2a341e256c949
6+
x-open-api-commit-sha: 9ada039d29c22a526e3f2aedf1e2592fa53f9662
77
description: |
88
# Introduction
99
In addition to the data sources that Glean has built-in support for, Glean also provides a REST API that enables customers to put arbitrary content in the search index. This is useful, for example, for doing permissions-aware search over content in internal tools that reside on-prem as well as for searching over applications that Glean does not currently support first class. In addition these APIs allow the customer to push organization data (people info, organization structure etc) into Glean.
@@ -6747,6 +6747,8 @@ components:
67476747
PlatformAgentsSearchRequest:
67486748
type: object
67496749
additionalProperties: false
6750+
example:
6751+
name: HR Policy Agent
67506752
properties:
67516753
name:
67526754
type: string
@@ -7070,6 +7072,12 @@ components:
70707072
additionalProperties: false
70717073
description: |
70727074
Request to run an agent. A request MUST supply either `messages` (a non-empty conversation) or `input` (for input-form triggered agents).
7075+
example:
7076+
messages:
7077+
- role: USER
7078+
content:
7079+
- text: What is our parental leave policy?
7080+
type: text
70737081
properties:
70747082
input:
70757083
type: object
@@ -7186,6 +7194,8 @@ components:
71867194
additionalProperties: false
71877195
required:
71887196
- input
7197+
example:
7198+
input: What is our parental leave policy?
71897199
properties:
71907200
input:
71917201
description: |
@@ -7586,6 +7596,9 @@ components:
75867596
additionalProperties: false
75877597
required:
75887598
- source_urls
7599+
example:
7600+
source_urls:
7601+
- https://github.com/anthropics/skills/tree/main/skills/skill-creator
75897602
properties:
75907603
source_urls:
75917604
type: array
@@ -7678,6 +7691,8 @@ components:
76787691
additionalProperties: false
76797692
required:
76807693
- source_url
7694+
example:
7695+
source_url: https://github.com/anthropics/skills
76817696
properties:
76827697
source_url:
76837698
type: string
@@ -7800,6 +7815,8 @@ components:
78007815
additionalProperties: false
78017816
required:
78027817
- status
7818+
example:
7819+
status: ENABLED
78037820
properties:
78047821
status:
78057822
$ref: "#/components/schemas/PlatformSkillUpdateStatus"
@@ -12896,15 +12913,18 @@ components:
1289612913
- EXECUTION
1289712914
- AUTHENTICATION_SUGGESTION
1289812915
- VOTE_SUGGESTION
12916+
- SANDBOX_EGRESS
1289912917
description: The type of request made to the user.
1290012918
x-enumDescriptions:
1290112919
EXECUTION: Request for approving execution of the tool.
1290212920
AUTHENTICATION_SUGGESTION: Request for authenticating to a tool, provided as a (tool) suggestion.
1290312921
VOTE_SUGGESTION: Suggestion to vote for enabling an available-but-not-enabled tool.
12922+
SANDBOX_EGRESS: Request to approve an outbound/egress call from the sandbox.
1290412923
x-speakeasy-enum-descriptions:
1290512924
EXECUTION: Request for approving execution of the tool.
1290612925
AUTHENTICATION_SUGGESTION: Request for authenticating to a tool, provided as a (tool) suggestion.
1290712926
VOTE_SUGGESTION: Suggestion to vote for enabling an available-but-not-enabled tool.
12927+
SANDBOX_EGRESS: Request to approve an outbound/egress call from the sandbox.
1290812928
requestId:
1290912929
type: string
1291012930
description: Unique identifier for this request.
@@ -13004,6 +13024,9 @@ components:
1300413024

1300513025
For VOTE_SUGGESTION requests:
1300613026
- voted: whether the user voted for this tool
13027+
13028+
For SANDBOX_EGRESS requests:
13029+
- isGranted: whether the sandbox egress call is approved
1300713030
x-visibility: Preview
1300813031
x-glean-experimental:
1300913032
id: 3eae3ee7-2c06-4027-be14-98260a3ce608

.speakeasy/tests.arazzo.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158787,7 +158787,9 @@ workflows:
158787158787
contentType: application/json
158788158788
payload:
158789158789
messages:
158790-
- content: []
158790+
- content:
158791+
- text: What is our parental leave policy?
158792+
type: text
158791158793
role: USER
158792158794
stream: false
158793158795
successCriteria:
@@ -159055,7 +159057,7 @@ workflows:
159055159057
requestBody:
159056159058
contentType: application/json
159057159059
payload:
159058-
input: <value>
159060+
input: What is our parental leave policy?
159059159061
store: true
159060159062
stream: false
159061159063
successCriteria:
@@ -159075,7 +159077,7 @@ workflows:
159075159077
contentType: application/json
159076159078
payload:
159077159079
source_urls:
159078-
- <value 1>
159080+
- https://github.com/anthropics/skills/tree/main/skills/skill-creator
159079159081
successCriteria:
159080159082
- condition: $statusCode == 200
159081159083
- condition: $response.header.Content-Type == application/json
@@ -159092,7 +159094,7 @@ workflows:
159092159094
requestBody:
159093159095
contentType: application/json
159094159096
payload:
159095-
source_url: https://ugly-information.name/
159097+
source_url: https://github.com/anthropics/skills
159096159098
stream: false
159097159099
successCriteria:
159098159100
- condition: $statusCode == 200
@@ -159114,7 +159116,7 @@ workflows:
159114159116
requestBody:
159115159117
contentType: application/json
159116159118
payload:
159117-
status: DISABLED
159119+
status: ENABLED
159118159120
successCriteria:
159119159121
- condition: $statusCode == 200
159120159122
- condition: $response.header.Content-Type == application/json

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
speakeasyVersion: 1.795.1
1+
speakeasyVersion: 1.795.3
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:90133ae2ed4bca7f388138e9d043405e381f920c07c8e54bdf3af2505b0a24ae
6-
sourceBlobDigest: sha256:ffea0cebe421d06f6145114c557713c6b11600ae8dc1e06469304d89e720bf27
5+
sourceRevisionDigest: sha256:e01ddc11a28e6d9d70b5fbdca734adda6afd78d0f036fdacd1e45bc1018c71e3
6+
sourceBlobDigest: sha256:dfcec6e88b95c1857e5d16505ee38ec177a63a994df6b9f9658f360cc93b9ba6
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:90133ae2ed4bca7f388138e9d043405e381f920c07c8e54bdf3af2505b0a24ae
20-
sourceBlobDigest: sha256:ffea0cebe421d06f6145114c557713c6b11600ae8dc1e06469304d89e720bf27
19+
sourceRevisionDigest: sha256:e01ddc11a28e6d9d70b5fbdca734adda6afd78d0f036fdacd1e45bc1018c71e3
20+
sourceBlobDigest: sha256:dfcec6e88b95c1857e5d16505ee38ec177a63a994df6b9f9658f360cc93b9ba6
2121
codeSamplesNamespace: glean-api-specs-python-code-samples
22-
codeSamplesRevisionDigest: sha256:985280ee4fe1f57740b53a8a893bbcd79361460bcc2ab8b2696bb0f81e6350f4
22+
codeSamplesRevisionDigest: sha256:cddffa0c7d0913703bc2263e2d063c6c0c45ec84715f99eca2e47b74e01186e5
2323
workflow:
2424
workflowVersion: 1.0.0
2525
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,4 +828,14 @@ Based on:
828828
### Generated
829829
- [python v0.16.0] .
830830
### Releases
831-
- [PyPI v0.16.0] https://pypi.org/project/glean-api-client/0.16.0 - .
831+
- [PyPI v0.16.0] https://pypi.org/project/glean-api-client/0.16.0 - .
832+
833+
## 2026-08-25 05:33:34
834+
### Changes
835+
Based on:
836+
- OpenAPI Doc
837+
- Speakeasy CLI 1.795.3 (2.932.9) https://github.com/speakeasy-api/speakeasy
838+
### Generated
839+
- [python v0.16.1] .
840+
### Releases
841+
- [PyPI v0.16.1] https://pypi.org/project/glean-api-client/0.16.1 - .

0 commit comments

Comments
 (0)