Skip to content

Commit 8382f07

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 8382f07

33 files changed

Lines changed: 278 additions & 183 deletions

.speakeasy/gen.lock

Lines changed: 70 additions & 70 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: 68 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
openapi: 3.0.0
1+
openapi: 3.1.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: b7b05515ec2dd7d566cc6c6e235bb124e9d07ea2
6+
x-open-api-commit-sha: f1782d33f672d3f7d2f8465793bb002b1ed90ff9
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: |
@@ -7327,8 +7337,9 @@ components:
73277337
type: string
73287338
minLength: 1
73297339
page_number:
7330-
type: integer
7331-
nullable: true
7340+
type:
7341+
- integer
7342+
- "null"
73327343
PlatformChatCitationAnnotation:
73337344
type: object
73347345
additionalProperties: false
@@ -7346,16 +7357,19 @@ components:
73467357
items:
73477358
$ref: "#/components/schemas/PlatformChatCitationSource"
73487359
start_index:
7349-
type: integer
7360+
type:
7361+
- integer
7362+
- "null"
73507363
minimum: 0
7351-
nullable: true
73527364
end_index:
7353-
type: integer
7365+
type:
7366+
- integer
7367+
- "null"
73547368
minimum: 0
7355-
nullable: true
73567369
snippets:
7357-
type: array
7358-
nullable: true
7370+
type:
7371+
- array
7372+
- "null"
73597373
items:
73607374
$ref: "#/components/schemas/PlatformChatCitationSnippet"
73617375
PlatformChatOutputTextContent:
@@ -7432,9 +7446,10 @@ components:
74327446
store:
74337447
type: boolean
74347448
conversation_id:
7435-
type: string
7449+
type:
7450+
- string
7451+
- "null"
74367452
minLength: 1
7437-
nullable: true
74387453
description: Present when the interaction was persisted.
74397454
request_id:
74407455
type: string
@@ -7554,8 +7569,9 @@ components:
75547569
type: boolean
75557570
description: Whether additional results are available.
75567571
next_cursor:
7557-
type: string
7558-
nullable: true
7572+
type:
7573+
- string
7574+
- "null"
75597575
description: Cursor for the next page, or null when no more results are available.
75607576
request_id:
75617577
type: string
@@ -7586,6 +7602,9 @@ components:
75867602
additionalProperties: false
75877603
required:
75887604
- source_urls
7605+
example:
7606+
source_urls:
7607+
- https://github.com/anthropics/skills/tree/main/skills/skill-creator
75897608
properties:
75907609
source_urls:
75917610
type: array
@@ -7678,6 +7697,8 @@ components:
76787697
additionalProperties: false
76797698
required:
76807699
- source_url
7700+
example:
7701+
source_url: https://github.com/anthropics/skills
76817702
properties:
76827703
source_url:
76837704
type: string
@@ -7800,6 +7821,8 @@ components:
78007821
additionalProperties: false
78017822
required:
78027823
- status
7824+
example:
7825+
status: ENABLED
78037826
properties:
78047827
status:
78057828
$ref: "#/components/schemas/PlatformSkillUpdateStatus"
@@ -7891,8 +7914,9 @@ components:
78917914
type: boolean
78927915
description: Whether additional results are available.
78937916
next_cursor:
7894-
type: string
7895-
nullable: true
7917+
type:
7918+
- string
7919+
- "null"
78967920
description: Cursor for the next page, or null when no more results are available.
78977921
request_id:
78987922
type: string
@@ -8011,11 +8035,11 @@ components:
80118035
default: 10
80128036
description: Number of results to return per page.
80138037
cursor:
8014-
type: string
8015-
nullable: true
8038+
type:
8039+
- string
8040+
- "null"
80168041
description: |
80178042
Opaque pagination token from a previous response's `next_cursor` field. Omit on the first request.
8018-
example: ""
80198043
datasources:
80208044
type: array
80218045
minItems: 1
@@ -8066,8 +8090,9 @@ components:
80668090
description: The datasource this result originates from.
80678091
example: confluence
80688092
document_type:
8069-
type: string
8070-
nullable: true
8093+
type:
8094+
- string
8095+
- "null"
80718096
minLength: 1
80728097
description: The document type within the datasource.
80738098
example: page
@@ -8076,14 +8101,16 @@ components:
80768101
owner:
80778102
$ref: "#/components/schemas/PlatformPersonReference"
80788103
updated_at:
8079-
type: string
8104+
type:
8105+
- string
8106+
- "null"
80808107
format: date-time
8081-
nullable: true
80828108
description: When the result was last modified.
80838109
created_at:
8084-
type: string
8110+
type:
8111+
- string
8112+
- "null"
80858113
format: date-time
8086-
nullable: true
80878114
description: When the result was created.
80888115
PlatformSearchResponse:
80898116
type: object
@@ -8105,8 +8132,9 @@ components:
81058132
type: boolean
81068133
description: Indicates whether additional pages of results are available.
81078134
next_cursor:
8108-
type: string
8109-
nullable: true
8135+
type:
8136+
- string
8137+
- "null"
81108138
description: Opaque token to pass as `cursor` in the next request.
81118139
request_id:
81128140
type: string
@@ -8283,8 +8311,9 @@ components:
82838311
type: boolean
82848312
description: Whether additional results are available.
82858313
next_cursor:
8286-
type: string
8287-
nullable: true
8314+
type:
8315+
- string
8316+
- "null"
82888317
description: Cursor for the next page, or null when no more results are available.
82898318
request_id:
82908319
type: string
@@ -8644,8 +8673,9 @@ components:
86448673
type: boolean
86458674
description: Whether additional results are available.
86468675
next_cursor:
8647-
type: string
8648-
nullable: true
8676+
type:
8677+
- string
8678+
- "null"
86498679
description: Cursor for the next page, or null when no more results are available.
86508680
request_id:
86518681
type: string
@@ -12896,15 +12926,18 @@ components:
1289612926
- EXECUTION
1289712927
- AUTHENTICATION_SUGGESTION
1289812928
- VOTE_SUGGESTION
12929+
- SANDBOX_EGRESS
1289912930
description: The type of request made to the user.
1290012931
x-enumDescriptions:
1290112932
EXECUTION: Request for approving execution of the tool.
1290212933
AUTHENTICATION_SUGGESTION: Request for authenticating to a tool, provided as a (tool) suggestion.
1290312934
VOTE_SUGGESTION: Suggestion to vote for enabling an available-but-not-enabled tool.
12935+
SANDBOX_EGRESS: Request to approve an outbound/egress call from the sandbox.
1290412936
x-speakeasy-enum-descriptions:
1290512937
EXECUTION: Request for approving execution of the tool.
1290612938
AUTHENTICATION_SUGGESTION: Request for authenticating to a tool, provided as a (tool) suggestion.
1290712939
VOTE_SUGGESTION: Suggestion to vote for enabling an available-but-not-enabled tool.
12940+
SANDBOX_EGRESS: Request to approve an outbound/egress call from the sandbox.
1290812941
requestId:
1290912942
type: string
1291012943
description: Unique identifier for this request.
@@ -13004,6 +13037,9 @@ components:
1300413037

1300513038
For VOTE_SUGGESTION requests:
1300613039
- voted: whether the user voted for this tool
13040+
13041+
For SANDBOX_EGRESS requests:
13042+
- isGranted: whether the sandbox egress call is approved
1300713043
x-visibility: Preview
1300813044
x-glean-experimental:
1300913045
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.796.0
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:90133ae2ed4bca7f388138e9d043405e381f920c07c8e54bdf3af2505b0a24ae
6-
sourceBlobDigest: sha256:ffea0cebe421d06f6145114c557713c6b11600ae8dc1e06469304d89e720bf27
5+
sourceRevisionDigest: sha256:c52492136522198bfb27abbd3466937fe738e7179d225f72d08dd8db9fe343f9
6+
sourceBlobDigest: sha256:a4e39b094d3a85e323df8b30aa8e7ec864e6ba666f3fa5cb1cbbd105b87f3516
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:c52492136522198bfb27abbd3466937fe738e7179d225f72d08dd8db9fe343f9
20+
sourceBlobDigest: sha256:a4e39b094d3a85e323df8b30aa8e7ec864e6ba666f3fa5cb1cbbd105b87f3516
2121
codeSamplesNamespace: glean-api-specs-python-code-samples
22-
codeSamplesRevisionDigest: sha256:985280ee4fe1f57740b53a8a893bbcd79361460bcc2ab8b2696bb0f81e6350f4
22+
codeSamplesRevisionDigest: sha256:ee9a80c4f99cb6668f7317e73a934f464b9361494a07111394cea3fe95ea7e05
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-26 21:07:03
834+
### Changes
835+
Based on:
836+
- OpenAPI Doc
837+
- Speakeasy CLI 1.796.0 (2.932.15) 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)