Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
422 changes: 344 additions & 78 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: true
go:
version: 0.15.14
version: 0.15.15
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
baseErrorName: GleanError
Expand Down
514 changes: 478 additions & 36 deletions .speakeasy/glean-merged-spec.yaml

Large diffs are not rendered by default.

83 changes: 82 additions & 1 deletion .speakeasy/tests.arazzo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164637,6 +164637,7 @@ workflows:
requestBody:
contentType: application/json
payload:
execution_mode: REQUEST_BOUND
messages:
- content:
- text: What is our parental leave policy?
Expand Down Expand Up @@ -164900,9 +164901,24 @@ workflows:
requestBody:
contentType: application/json
payload:
input: What is our parental leave policy?
input: Summarize our parental leave policy as JSON.
store: true
stream: false
text:
format:
name: policy_summary
schema:
properties:
duration_weeks:
type: integer
eligible_employees:
type: string
required:
- eligible_employees
- duration_weeks
type: object
strict: true
type: JSON_SCHEMA
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
Expand Down Expand Up @@ -165311,3 +165327,68 @@ workflows:
type: simple
x-speakeasy-test-group: triggers
x-speakeasy-test-rebuild: true
- workflowId: platform-agents-get-run
steps:
- stepId: test
operationId: platform-agents-get-run
parameters:
- name: agent_id
in: path
value: '{agent_id}'
- name: run_id
in: path
value: '{run_id}'
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"run":{"run_id":"<id>","agent_id":"<id>","state":"CANCELLING","created_at":"2025-02-20T06:37:06.101Z","updated_at":"2025-06-13T07:24:18.599Z","pending_interactions":[]},"request_id":"<id>"}
type: simple
x-speakeasy-test-group: agents
x-speakeasy-test-rebuild: true
- workflowId: platform-agents-cancel-run
steps:
- stepId: test
operationId: platform-agents-cancel-run
parameters:
- name: agent_id
in: path
value: '{agent_id}'
requestBody:
contentType: application/json
payload:
run_id: '{run_id}'
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"run":{"run_id":"<id>","agent_id":"<id>","state":"REQUIRES_INPUT","created_at":"2026-04-14T14:14:08.916Z","updated_at":"2025-07-26T12:32:21.659Z","pending_interactions":[]},"request_id":"<id>"}
type: simple
x-speakeasy-test-group: agents
x-speakeasy-test-rebuild: true
- workflowId: platform-agents-create-run-responses
steps:
- stepId: test
operationId: platform-agents-create-run-responses
parameters:
- name: agent_id
in: path
value: '{agent_id}'
requestBody:
contentType: application/json
payload:
responses:
- decision: APPROVE
interaction_id: '{interaction_id}'
run_id: '{run_id}'
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"run":{"run_id":"<id>","agent_id":"<id>","state":"QUEUED","created_at":"2024-08-26T19:05:47.442Z","updated_at":"2026-08-22T09:50:35.176Z","pending_interactions":[{"interaction_id":"<id>","type":"TOOL_APPROVAL","display_name":"King.Trantow44","description":"provided collectivization whereas disapprove gah astride under stoop louse","arguments":{"key":"<value>","key1":"<value>"}}]},"request_id":"<id>"}
type: simple
x-speakeasy-test-group: agents
x-speakeasy-test-rebuild: true
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
speakeasyVersion: 1.797.0
speakeasyVersion: 1.798.0
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:1f470e422d6b202bf6bb80cc2e4b73077b7dab6d476cda804245fc0402ea42f1
sourceBlobDigest: sha256:8919e7ffe50c1ca78844cd89c216e8ab3c54a8e0003bd5072e7fe3cd35fb192c
sourceRevisionDigest: sha256:09823f8003cfb3ebf08b6adfa434cefda4c97f7ee64ae18dc0066fe392647c97
sourceBlobDigest: sha256:fc4fcf9c37dfd0e8387153211f760a21a602ede64951d4e4c824e8e1b168b7b8
tags:
- latest
petstore-oas:
Expand All @@ -17,10 +17,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:1f470e422d6b202bf6bb80cc2e4b73077b7dab6d476cda804245fc0402ea42f1
sourceBlobDigest: sha256:8919e7ffe50c1ca78844cd89c216e8ab3c54a8e0003bd5072e7fe3cd35fb192c
sourceRevisionDigest: sha256:09823f8003cfb3ebf08b6adfa434cefda4c97f7ee64ae18dc0066fe392647c97
sourceBlobDigest: sha256:fc4fcf9c37dfd0e8387153211f760a21a602ede64951d4e4c824e8e1b168b7b8
codeSamplesNamespace: glean-api-specs-go-code-samples
codeSamplesRevisionDigest: sha256:db1b62343d7bf2cd4b059b6dea2f5fb245f627b9559d9ccdd4b508fa37fc9c8f
codeSamplesRevisionDigest: sha256:e0b322a1f857ede51de9462d1d1c564b4f177e1469aa2afa4f108a43e395a957
petstore:
source: petstore-oas
sourceNamespace: petstore-oas
Expand Down
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ For more information on obtaining the appropriate token type, please contact you
* [Get](docs/sdks/agents/README.md#get) - Get agent
* [GetSchemas](docs/sdks/agents/README.md#getschemas) - Get agent schemas
* [CreateRun](docs/sdks/agents/README.md#createrun) - Create agent run
* [GetRun](docs/sdks/agents/README.md#getrun) - Get agent run
* [CancelRun](docs/sdks/agents/README.md#cancelrun) - Cancel an agent run
* [RespondToRun](docs/sdks/agents/README.md#respondtorun) - Respond to agent run approvals

### [Chat](docs/sdks/chat/README.md)

Expand Down Expand Up @@ -520,6 +523,7 @@ package main
import (
"context"
apiclientgo "github.com/gleanwork/api-client-go"
"github.com/gleanwork/api-client-go/models/components"
"github.com/gleanwork/api-client-go/models/operations"
"log"
"os"
Expand All @@ -534,8 +538,31 @@ func main() {

res, err := s.Chat.CreateStream(ctx, operations.PlatformChatCreateStreamRequest{
Input: operations.CreatePlatformChatCreateStreamInputStr(
"What is our parental leave policy?",
"Summarize our parental leave policy as JSON.",
),
Text: &operations.PlatformChatCreateStreamText{
Format: apiclientgo.Pointer(operations.CreatePlatformChatCreateStreamFormatPlatformChatJSONSchemaFormat(
components.PlatformChatJSONSchemaFormat{
Type: components.PlatformChatJSONSchemaFormatTypeJSONSchema,
Name: "policy_summary",
Schema: map[string]any{
"type": "object",
"properties": map[string]any{
"eligible_employees": map[string]any{
"type": "string",
},
"duration_weeks": map[string]any{
"type": "integer",
},
},
"required": []any{
"eligible_employees",
"duration_weeks",
},
},
},
)),
},
})
if err != nil {
log.Fatal(err)
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -998,4 +998,14 @@ Based on:
### Generated
- [go v0.15.14] .
### Releases
- [Go v0.15.14] https://github.com/gleanwork/api-client-go/releases/tag/v0.15.14 - .
- [Go v0.15.14] https://github.com/gleanwork/api-client-go/releases/tag/v0.15.14 - .

## 2026-09-23 18:28:33
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.798.0 (2.938.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.15.15] .
### Releases
- [Go v0.15.15] https://github.com/gleanwork/api-client-go/releases/tag/v0.15.15 - .
Loading
Loading