Skip to content

Commit 48de2c7

Browse files
Merge pull request #19 from gleanwork/speakeasy-sdk-regen-1747705292
2 parents e229b28 + b48453f commit 48de2c7

Some content is hidden

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

65 files changed

+4556
-12631
lines changed

.speakeasy/gen.lock

Lines changed: 86 additions & 39 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
@@ -24,7 +24,7 @@ generation:
2424
generateNewTests: true
2525
skipResponseBodyAssertions: true
2626
python:
27-
version: 0.4.2
27+
version: 0.5.0
2828
additionalDependencies:
2929
dev: {}
3030
main: {}

.speakeasy/glean-merged-spec.yaml

Lines changed: 177 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1593,6 +1593,7 @@ paths:
15931593
schema:
15941594
$ref: "#/components/schemas/SearchRequest"
15951595
description: Admin search request
1596+
required: true
15961597
x-exportParamName: Request
15971598
responses:
15981599
"200":
@@ -1705,6 +1706,7 @@ paths:
17051706
schema:
17061707
$ref: "#/components/schemas/RecommendationsRequest"
17071708
description: Recommendations request
1709+
required: true
17081710
x-exportParamName: Request
17091711
responses:
17101712
"200":
@@ -1743,6 +1745,7 @@ paths:
17431745
schema:
17441746
$ref: "#/components/schemas/SearchRequest"
17451747
description: Search request
1748+
required: true
17461749
x-exportParamName: Request
17471750
responses:
17481751
"200":
@@ -2134,6 +2137,67 @@ paths:
21342137
description: Too Many Requests
21352138
x-speakeasy-name-override: verify
21362139
x-speakeasy-group: client.verification
2140+
/rest/api/v1/tools/list:
2141+
get:
2142+
summary: List available tools
2143+
description: Returns a filtered set of available tools based on optional tool name parameters. If no filters are provided, all available tools are returned.
2144+
x-visibility: Preview
2145+
parameters:
2146+
- in: query
2147+
name: toolNames
2148+
description: Optional array of tool names to filter by
2149+
required: false
2150+
schema:
2151+
type: array
2152+
items:
2153+
type: string
2154+
style: form
2155+
explode: false
2156+
responses:
2157+
"200":
2158+
description: Successful operation
2159+
content:
2160+
application/json:
2161+
schema:
2162+
$ref: "#/components/schemas/ToolsListResponse"
2163+
"400":
2164+
description: Bad Request
2165+
"401":
2166+
description: Unauthorized
2167+
"404":
2168+
description: Not Found
2169+
"429":
2170+
description: Too Many Requests
2171+
x-speakeasy-name-override: list
2172+
x-speakeasy-group: client.tools
2173+
/rest/api/v1/tools/call:
2174+
post:
2175+
summary: Execute the specified tool
2176+
description: Execute the specified tool with provided parameters
2177+
x-visibility: Preview
2178+
requestBody:
2179+
required: true
2180+
content:
2181+
application/json:
2182+
schema:
2183+
$ref: "#/components/schemas/ToolsCallRequest"
2184+
responses:
2185+
"200":
2186+
description: Successful operation
2187+
content:
2188+
application/json:
2189+
schema:
2190+
$ref: "#/components/schemas/ToolsCallResponse"
2191+
"400":
2192+
description: Bad Request
2193+
"401":
2194+
description: Unauthorized
2195+
"404":
2196+
description: Not Found
2197+
"429":
2198+
description: Too Many Requests
2199+
x-speakeasy-name-override: run
2200+
x-speakeasy-group: client.tools
21372201
/api/index/v1/indexdocument:
21382202
post:
21392203
summary: Index document
@@ -3179,7 +3243,7 @@ paths:
31793243
get:
31803244
description: Lists policies with filtering.
31813245
summary: Lists policies.
3182-
operationId: getpolicies
3246+
operationId: listpolicies
31833247
x-visibility: Public
31843248
tags:
31853249
- Governance
@@ -7450,6 +7514,7 @@ components:
74507514
type: object
74517515
title: Input
74527516
description: The input to the agent.
7517+
additionalProperties: true
74537518
messages:
74547519
type: array
74557520
items:
@@ -9828,6 +9893,117 @@ components:
98289893
- DEPRECATE
98299894
- UNVERIFY
98309895
description: The verification action requested.
9896+
ToolParameter:
9897+
type: object
9898+
properties:
9899+
type:
9900+
type: string
9901+
description: Parameter type (string, number, boolean, object, array)
9902+
enum:
9903+
- string
9904+
- number
9905+
- boolean
9906+
- object
9907+
- array
9908+
name:
9909+
type: string
9910+
description: The name of the parameter
9911+
description:
9912+
type: string
9913+
description: The description of the parameter
9914+
isRequired:
9915+
type: boolean
9916+
description: Whether the parameter is required
9917+
possibleValues:
9918+
type: array
9919+
description: The possible values for the parameter. Can contain only primitive values or arrays of primitive values.
9920+
items:
9921+
type: string
9922+
items:
9923+
type: object
9924+
description: When type is 'array', this describes the structure of the item in the array.
9925+
$ref: "#/components/schemas/ToolParameter"
9926+
properties:
9927+
type: object
9928+
description: When type is 'object', this describes the structure of the object.
9929+
additionalProperties:
9930+
$ref: "#/components/schemas/ToolParameter"
9931+
Tool:
9932+
type: object
9933+
properties:
9934+
type:
9935+
type: string
9936+
description: Type of tool (READ, WRITE)
9937+
enum:
9938+
- READ
9939+
- WRITE
9940+
name:
9941+
type: string
9942+
description: Unique identifier for the tool
9943+
displayName:
9944+
type: string
9945+
description: Human-readable name
9946+
description:
9947+
type: string
9948+
description: LLM friendly description of the tool
9949+
parameters:
9950+
type: object
9951+
description: The parameters for the tool. Each key is the name of the parameter and the value is the parameter object.
9952+
additionalProperties:
9953+
$ref: "#/components/schemas/ToolParameter"
9954+
ToolsListResponse:
9955+
type: object
9956+
properties:
9957+
tools:
9958+
type: array
9959+
items:
9960+
$ref: "#/components/schemas/Tool"
9961+
ToolsCallParameter:
9962+
type: object
9963+
required:
9964+
- name
9965+
- value
9966+
properties:
9967+
name:
9968+
type: string
9969+
description: The name of the parameter
9970+
value:
9971+
type: string
9972+
description: The value of the parameter (for primitive types)
9973+
items:
9974+
type: array
9975+
description: The value of the parameter (for array types)
9976+
items:
9977+
$ref: "#/components/schemas/ToolsCallParameter"
9978+
properties:
9979+
type: object
9980+
description: The value of the parameter (for object types)
9981+
additionalProperties:
9982+
$ref: "#/components/schemas/ToolsCallParameter"
9983+
ToolsCallRequest:
9984+
type: object
9985+
required:
9986+
- name
9987+
- parameters
9988+
properties:
9989+
name:
9990+
type: string
9991+
description: Required name of the tool to execute
9992+
parameters:
9993+
type: object
9994+
description: The parameters for the tool. Each key is the name of the parameter and the value is the parameter object.
9995+
additionalProperties:
9996+
$ref: "#/components/schemas/ToolsCallParameter"
9997+
ToolsCallResponse:
9998+
type: object
9999+
properties:
10000+
rawResponse:
10001+
additionalProperties: true
10002+
type: object
10003+
description: The raw response from the tool
10004+
error:
10005+
type: string
10006+
description: The error message if applicable
983110007
IndexDocumentRequest:
983210008
type: object
983310009
description: Describes the request body of the /indexdocument API call

.speakeasy/tests.arazzo.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164213,3 +164213,47 @@ workflows:
164213164213
{}
164214164214
type: simple
164215164215
x-speakeasy-test-group: visibilityoverrides
164216+
- workflowId: get_/rest/api/v1/tools/list
164217+
steps:
164218+
- stepId: test
164219+
operationId: get_/rest/api/v1/tools/list
164220+
successCriteria:
164221+
- condition: $statusCode == 200
164222+
- condition: $response.header.Content-Type == application/json
164223+
- context: $response.body
164224+
condition: |
164225+
{}
164226+
type: simple
164227+
x-speakeasy-test-group: tools
164228+
- workflowId: post_/rest/api/v1/tools/call
164229+
steps:
164230+
- stepId: test
164231+
operationId: post_/rest/api/v1/tools/call
164232+
requestBody:
164233+
contentType: application/json
164234+
payload:
164235+
name: <value>
164236+
parameters:
164237+
key:
164238+
name: <value>
164239+
value: <value>
164240+
successCriteria:
164241+
- condition: $statusCode == 200
164242+
- condition: $response.header.Content-Type == application/json
164243+
- context: $response.body
164244+
condition: |
164245+
{}
164246+
type: simple
164247+
x-speakeasy-test-group: tools
164248+
- workflowId: listpolicies
164249+
steps:
164250+
- stepId: test
164251+
operationId: listpolicies
164252+
successCriteria:
164253+
- condition: $statusCode == 200
164254+
- condition: $response.header.Content-Type == application/json
164255+
- context: $response.body
164256+
condition: |
164257+
{}
164258+
type: simple
164259+
x-speakeasy-test-group: policies

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.546.2
1+
speakeasyVersion: 1.551.0
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:d6fa8702a32b71122384445deea1072af1cf22ed50c70ffc25cc87a25fc82612
6-
sourceBlobDigest: sha256:393fd23b9e5d6d5f6929f86557b6b42c770f61271257cd10bc6a364b3ac8b053
5+
sourceRevisionDigest: sha256:f9702fab7204aa4b6c4de51f891ea93ca91bd699de037938b6522df44148f53e
6+
sourceBlobDigest: sha256:d44909a59c01e136e65c90328dd7ddc8321d8eb01230285241f4c59ebbaac01f
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1747525127
9+
- speakeasy-sdk-regen-1747705292
1010
Glean Client API:
1111
sourceNamespace: glean-client-api
1212
sourceRevisionDigest: sha256:4edc63ad559e4f2c9fb9ebf5edaaaaa9269f1874d271cfd84b441d6dacac43d2
@@ -17,10 +17,10 @@ targets:
1717
glean:
1818
source: Glean API
1919
sourceNamespace: glean-api-specs
20-
sourceRevisionDigest: sha256:d6fa8702a32b71122384445deea1072af1cf22ed50c70ffc25cc87a25fc82612
21-
sourceBlobDigest: sha256:393fd23b9e5d6d5f6929f86557b6b42c770f61271257cd10bc6a364b3ac8b053
20+
sourceRevisionDigest: sha256:f9702fab7204aa4b6c4de51f891ea93ca91bd699de037938b6522df44148f53e
21+
sourceBlobDigest: sha256:d44909a59c01e136e65c90328dd7ddc8321d8eb01230285241f4c59ebbaac01f
2222
codeSamplesNamespace: glean-api-specs-python-code-samples
23-
codeSamplesRevisionDigest: sha256:f98f110acb5e1a433c37aaae9c4c266b24433af86955a9708d22948caf79f6de
23+
codeSamplesRevisionDigest: sha256:bb77995d97b0886e86ac1b96b5b906893d962eb20614dba64f9bff62d78a95e1
2424
workflow:
2525
workflowVersion: 1.0.0
2626
speakeasyVersion: latest

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,11 @@ For more information on obtaining the appropriate token type, please contact you
462462
* [list](docs/sdks/clientshortcuts/README.md#list) - List shortcuts
463463
* [update](docs/sdks/clientshortcuts/README.md#update) - Update shortcut
464464

465+
#### [client.tools](docs/sdks/tools/README.md)
466+
467+
* [list](docs/sdks/tools/README.md#list) - List available tools
468+
* [run](docs/sdks/tools/README.md#run) - Execute the specified tool
469+
465470
#### [client.verification](docs/sdks/clientverification/README.md)
466471

467472
* [add_reminder](docs/sdks/clientverification/README.md#add_reminder) - Create verification

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,14 @@ Based on:
6868
### Generated
6969
- [python v0.4.2] .
7070
### Releases
71-
- [PyPI v0.4.2] https://pypi.org/project/glean/0.4.2 - .
71+
- [PyPI v0.4.2] https://pypi.org/project/glean/0.4.2 - .
72+
73+
## 2025-05-23 19:23:09
74+
### Changes
75+
Based on:
76+
- OpenAPI Doc
77+
- Speakeasy CLI 1.551.0 (2.610.0) https://github.com/speakeasy-api/speakeasy
78+
### Generated
79+
- [python v0.5.0] .
80+
### Releases
81+
- [PyPI v0.5.0] https://pypi.org/project/glean/0.5.0 - .

docs/models/agentrun.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ Payload for creating a run.
88
| Field | Type | Required | Description |
99
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
1010
| `agent_id` | *Optional[str]* | :heavy_minus_sign: | The ID of the agent to run. |
11-
| `input` | [Optional[models.AgentRunInput]](../models/agentruninput.md) | :heavy_minus_sign: | The input to the agent. |
11+
| `input` | Dict[str, *Any*] | :heavy_minus_sign: | The input to the agent. |
1212
| `messages` | List[[models.Message](../models/message.md)] | :heavy_minus_sign: | The messages to pass an input to the agent. |
1313
| `status` | [Optional[models.AgentExecutionStatus]](../models/agentexecutionstatus.md) | :heavy_minus_sign: | The status of the run. One of 'error', 'success'. |

docs/models/agentruncreate.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Payload for creating a run.
55

66
## Fields
77

8-
| Field | Type | Required | Description |
9-
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
10-
| `agent_id` | *Optional[str]* | :heavy_minus_sign: | The ID of the agent to run. |
11-
| `input` | [Optional[models.AgentRunCreateInput]](../models/agentruncreateinput.md) | :heavy_minus_sign: | The input to the agent. |
12-
| `messages` | List[[models.Message](../models/message.md)] | :heavy_minus_sign: | The messages to pass an input to the agent. |
8+
| Field | Type | Required | Description |
9+
| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- |
10+
| `agent_id` | *Optional[str]* | :heavy_minus_sign: | The ID of the agent to run. |
11+
| `input` | Dict[str, *Any*] | :heavy_minus_sign: | The input to the agent. |
12+
| `messages` | List[[models.Message](../models/message.md)] | :heavy_minus_sign: | The messages to pass an input to the agent. |

docs/models/agentruncreateinput.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)