Skip to content
Closed
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
145 changes: 99 additions & 46 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 @@ -24,7 +24,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: true
python:
version: 0.3.0
version: 0.4.0
additionalDependencies:
dev: {}
main: {}
Expand Down
423 changes: 306 additions & 117 deletions .speakeasy/glean-merged-spec.yaml

Large diffs are not rendered by default.

76 changes: 76 additions & 0 deletions .speakeasy/tests.arazzo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164013,3 +164013,79 @@ workflows:
"{\"messages\":[{\"author\":\"GLEAN_AI\",\"messageType\":\"CONTENT\",\"agentConfig\":{\"agent\":\"DEFAULT\",\"mode\":\"DEFAULT\"},\"citations\":[{\"sourceDocument\":{\"id\":\"123\",\"title\":\"Company Handbook\",\"referenceRanges\":[{\"textRange\":{\"startIndex\":0,\"endIndex\":12,\"type\":\"CITATION\"}}]}}]}]}"
type: simple
x-speakeasy-test-group: client_chat
- workflowId: getAgent
steps:
- stepId: test
operationId: getAgent
parameters:
- name: agent_id
in: path
value: <id>
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{
"agent_id": "\u003cid\u003e",
"name": "\u003cvalue\u003e",
"capabilities": {}
}
type: simple
x-speakeasy-test-group: Agents
- workflowId: getAgentSchemas
steps:
- stepId: test
operationId: getAgentSchemas
parameters:
- name: agent_id
in: path
value: <id>
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{
"agent_id": "\u003cid\u003e",
"input_schema": {},
"output_schema": {}
}
type: simple
x-speakeasy-test-group: Agents
- workflowId: searchAgents
steps:
- stepId: test
operationId: searchAgents
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{}
type: simple
x-speakeasy-test-group: Agents
- workflowId: createAndStreamRun
steps:
- stepId: test
operationId: createAndStreamRun
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == text/event-stream
- context: $response.body
condition: |
"\u003cvalue\u003e"
type: simple
x-speakeasy-test-group: Agents
- workflowId: createAndWaitRun
steps:
- stepId: test
operationId: createAndWaitRun
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{}
type: simple
x-speakeasy-test-group: Agents
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
speakeasyVersion: 1.543.4
speakeasyVersion: 1.545.0
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:82bb62b5b7c3fdce61c9cf5c25bc2661f776c5ee5d007e9776961a08aabb8877
sourceBlobDigest: sha256:48b2f6720cfd61b99c4cf5dc168fab967984c5c20d2ac425b99ce326f3291647
sourceRevisionDigest: sha256:dce4f7a504880bcecd350dbfcaabb6654be20893602c9f24aca3901d53caf5bb
sourceBlobDigest: sha256:506715b91a22e7ddaf9a942e65f5b155150583aa90a9049a43c09de164931ab1
tags:
- latest
- speakeasy-sdk-regen-1746756218
- speakeasy-sdk-regen-1747100451
Glean Client API:
sourceNamespace: glean-client-api
sourceRevisionDigest: sha256:4edc63ad559e4f2c9fb9ebf5edaaaaa9269f1874d271cfd84b441d6dacac43d2
Expand All @@ -17,10 +17,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:82bb62b5b7c3fdce61c9cf5c25bc2661f776c5ee5d007e9776961a08aabb8877
sourceBlobDigest: sha256:48b2f6720cfd61b99c4cf5dc168fab967984c5c20d2ac425b99ce326f3291647
sourceRevisionDigest: sha256:dce4f7a504880bcecd350dbfcaabb6654be20893602c9f24aca3901d53caf5bb
sourceBlobDigest: sha256:506715b91a22e7ddaf9a942e65f5b155150583aa90a9049a43c09de164931ab1
codeSamplesNamespace: glean-api-specs-python-code-samples
codeSamplesRevisionDigest: sha256:d38b6417892fee6a7e579263603b0810bba17f621e75c450aea18059d7812d7f
codeSamplesRevisionDigest: sha256:649ab2ec226b451fcffe07ab8f21ccd1a3f626fc521d8d55657d6e12956d4161
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,14 @@ For more information on obtaining the appropriate token type, please contact you
<details open>
<summary>Available methods</summary>

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

* [get_agent](docs/sdks/agents/README.md#get_agent) - Get Agent
* [get_agent_schemas](docs/sdks/agents/README.md#get_agent_schemas) - Get Agent Schemas
* [search_agents](docs/sdks/agents/README.md#search_agents) - Search Agents
* [create_and_stream_run](docs/sdks/agents/README.md#create_and_stream_run) - Create Run, Stream Output
* [create_and_wait_run](docs/sdks/agents/README.md#create_and_wait_run) - Create Run, Wait for Output

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


Expand All @@ -342,12 +350,6 @@ For more information on obtaining the appropriate token type, please contact you
* [report](docs/sdks/clientactivity/README.md#report) - Report document activity
* [feedback](docs/sdks/clientactivity/README.md#feedback) - Report client activity

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

* [run](docs/sdks/agents/README.md#run) - Runs an Agent.
* [list](docs/sdks/agents/README.md#list) - Lists all agents.
* [retrieve_inputs](docs/sdks/agents/README.md#retrieve_inputs) - Gets the inputs to an agent.

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

* [create](docs/sdks/announcements/README.md#create) - Create Announcement
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,14 @@ Based on:
### Generated
- [python v0.3.0] .
### Releases
- [PyPI v0.3.0] https://pypi.org/project/glean/0.3.0 - .
- [PyPI v0.3.0] https://pypi.org/project/glean/0.3.0 - .

## 2025-05-16 01:40:22
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.545.0 (2.599.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.4.0] .
### Releases
- [PyPI v0.4.0] https://pypi.org/project/glean/0.4.0 - .
16 changes: 7 additions & 9 deletions docs/models/agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@

## Fields

| Field | Type | Required | Description | Example |
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
| `author` | [Optional[models.Person]](../models/person.md) | :heavy_minus_sign: | N/A | {<br/>"name": "George Clooney",<br/>"obfuscatedId": "abc123"<br/>} |
| `create_timestamp` | *Optional[int]* | :heavy_minus_sign: | Server Unix timestamp of the creation time. | |
| `last_update_timestamp` | *Optional[int]* | :heavy_minus_sign: | Server Unix timestamp of the last update time. | |
| `last_updated_by` | [Optional[models.Person]](../models/person.md) | :heavy_minus_sign: | N/A | {<br/>"name": "George Clooney",<br/>"obfuscatedId": "abc123"<br/>} |
| `id` | *Optional[str]* | :heavy_minus_sign: | The ID of the agent. | |
| `name` | *Optional[str]* | :heavy_minus_sign: | The name of the agent. | |
| `permissions` | [Optional[models.ObjectPermissions]](../models/objectpermissions.md) | :heavy_minus_sign: | N/A | |
| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `agent_id` | *str* | :heavy_check_mark: | The ID of the agent. |
| `name` | *str* | :heavy_check_mark: | The name of the agent |
| `description` | *Optional[str]* | :heavy_minus_sign: | The description of the agent. |
| `metadata` | [Optional[models.AgentMetadata]](../models/agentmetadata.md) | :heavy_minus_sign: | The agent metadata. |
| `capabilities` | [models.AgentCapabilities](../models/agentcapabilities.md) | :heavy_check_mark: | 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). |
12 changes: 12 additions & 0 deletions docs/models/agentcapabilities.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# AgentCapabilities

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).


## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `ap_io_messages` | *Optional[bool]* | :heavy_minus_sign: | Whether the agent supports Messages as input/output/state. If true, the agent uses the `messages` key in threads/runs endpoints. |
| `ap_io_streaming` | *Optional[bool]* | :heavy_minus_sign: | Whether the agent supports streaming output. |
| `__pydantic_extra__` | Dict[str, *Any*] | :heavy_minus_sign: | N/A |
11 changes: 11 additions & 0 deletions docs/models/agentexecutionstatus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# AgentExecutionStatus

The status of the run. One of 'error', 'success'.


## Values

| Name | Value |
| --------- | --------- |
| `ERROR` | error |
| `SUCCESS` | success |
9 changes: 9 additions & 0 deletions docs/models/agentmetadata.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# AgentMetadata

The agent metadata.


## Fields

| Field | Type | Required | Description |
| ----------- | ----------- | ----------- | ----------- |
Loading