You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
application/json: {"agent_id": "mho4lwzylcozgoc2", "name": "HR Policy Agent", "description": "This agent answers questions about the current company HR policies.", "capabilities": {}}
Copy file name to clipboardExpand all lines: .speakeasy/glean-merged-spec.yaml
+47-22Lines changed: 47 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -756,8 +756,8 @@ paths:
756
756
get:
757
757
tags:
758
758
- Agents
759
-
summary: Get Agent
760
-
description: Get an agent by ID. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/GET/agents/{agent_id}). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
759
+
summary: Retrieve an agent
760
+
description: Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder.
761
761
operationId: getAgent
762
762
x-visibility: Preview
763
763
parameters:
@@ -795,8 +795,8 @@ paths:
795
795
get:
796
796
tags:
797
797
- Agents
798
-
summary: Get Agent Schemas
799
-
description: Get an agent's schemas by ID. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/GET/agents/{agent_id}/schemas). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
798
+
summary: List an agent's schemas
799
+
description: Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure.
800
800
operationId: getAgentSchemas
801
801
x-visibility: Preview
802
802
parameters:
@@ -840,8 +840,8 @@ paths:
840
840
post:
841
841
tags:
842
842
- Agents
843
-
summary: Search Agents
844
-
description: List Agents available in this service. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/POST/agents/search). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
843
+
summary: Search agents
844
+
description: "Search for [agents](https://developers.glean.com/agents/agents-api) by agent name. "
845
845
operationId: searchAgents
846
846
x-visibility: Preview
847
847
requestBody:
@@ -881,8 +881,8 @@ paths:
881
881
post:
882
882
tags:
883
883
- Agents
884
-
summary: Create Run, Stream Output
885
-
description: Creates and triggers a run of an agent. Streams the output in SSE format. This endpoint implements the LangChain Agent Protocol, specifically part of the Runs stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/runs/POST/runs/stream). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol. Note that running agents that reference third party platform write actions is unsupported as it requires user confirmation.
884
+
summary: Create an agent run and stream the response
885
+
description: Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE).
886
886
operationId: createAndStreamRun
887
887
x-visibility: Preview
888
888
requestBody:
@@ -898,12 +898,23 @@ paths:
898
898
text/event-stream:
899
899
schema:
900
900
type: string
901
-
description: |-
902
-
The server will send a stream of events in SSE format.
903
-
**Example event**:
901
+
description: The server will send a stream of events in server-sent events (SSE) format.
description: Creates and triggers a run of an agent. Waits for final output and then returns it. This endpoint implements the LangChain Agent Protocol, specifically part of the Runs stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/runs/POST/runs/wait). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol. Note that running agents that reference third party platform write actions is unsupported as it requires user confirmation.
948
+
summary: Create an [agent](https://developers.glean.com/agents/agents-api) run and wait for the response
949
+
description: Executes an agent run and returns the final response.
939
950
operationId: createAndWaitRun
940
951
x-visibility: Preview
941
952
requestBody:
@@ -7417,31 +7428,38 @@ components:
7417
7428
type: string
7418
7429
title: Agent Id
7419
7430
description: The ID of the agent.
7431
+
example: mho4lwzylcozgoc2
7420
7432
name:
7421
7433
type: string
7422
7434
title: Agent Name
7423
7435
description: The name of the agent
7436
+
example: HR Policy Agent
7424
7437
description:
7425
7438
type: string
7426
7439
title: Description
7427
7440
description: The description of the agent.
7441
+
example: This agent answers questions about the current company HR policies.
7428
7442
metadata:
7429
7443
type: object
7430
7444
title: Metadata
7431
-
description: The agent metadata.
7445
+
description: The agent metadata. Currently not implemented.
7432
7446
capabilities:
7433
7447
type: object
7434
7448
title: Agent Capabilities
7435
-
description: 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).
7449
+
description: |-
7450
+
Describes features that the agent supports. example: {
7451
+
"ap.io.messages": true,
7452
+
"ap.io.streaming": true
7453
+
}
7436
7454
properties:
7437
7455
ap.io.messages:
7438
7456
type: boolean
7439
7457
title: Messages
7440
-
description: Whether the agent supports Messages as input/output/state. If true, the agent uses the `messages` key in threads/runs endpoints.
7458
+
description: Whether the agent supports messages as an input. If true, you'll pass `messages` as an input when running the agent.
7441
7459
ap.io.streaming:
7442
7460
type: boolean
7443
7461
title: Streaming
7444
-
description: Whether the agent supports streaming output.
7462
+
description: Whether the agent supports streaming output. If true, you you can stream agent ouput. All agents currently support streaming.
7445
7463
additionalProperties: true
7446
7464
ErrorResponse:
7447
7465
type: string
@@ -7453,14 +7471,15 @@ components:
7453
7471
type: string
7454
7472
title: Agent Id
7455
7473
description: The ID of the agent.
7474
+
example: mho4lwzylcozgoc2
7456
7475
input_schema:
7457
7476
type: object
7458
7477
title: Input Schema
7459
-
description: The schema for the agent input. In JSON Schema format.
7478
+
description: The schema for the agent input. In JSON schema format.
7460
7479
output_schema:
7461
7480
type: object
7462
7481
title: Output Schema
7463
-
description: The schema for the agent output. In JSON Schema format.
7482
+
description: The schema for the agent output. In JSON schema format.
7464
7483
type: object
7465
7484
required:
7466
7485
- agent_id
@@ -7473,7 +7492,8 @@ components:
7473
7492
properties:
7474
7493
name:
7475
7494
type: string
7476
-
description: Filters on the name of the agent. If empty, acts as no filter.
7495
+
description: Filters on the name of the agent. The keyword search is case-insensitive. If search string is ommited or empty, acts as no filter.
7496
+
example: HR Policy Agent
7477
7497
SearchAgentsResponse:
7478
7498
type: object
7479
7499
title: Response Search Agents
@@ -9272,11 +9292,16 @@ components:
9272
9292
runCount:
9273
9293
$ref: "#/components/schemas/CountInfo"
9274
9294
description: This tracks how many times this prompt template was run. If user runs a prompt template after modifying the original one, it still counts as a run for the original template.
-[`useClientAgentsRetrieve`](docs/sdks/agents/README.md#retrieve) - Retrieve an agent
652
+
-[`useClientAgentsRetrieveSchemas`](docs/sdks/agents/README.md#retrieveschemas) - List an agent's schemas
653
+
-[`useClientAgentsRunMutation`](docs/sdks/agents/README.md#run) - Create an [agent](https://developers.glean.com/agents/agents-api) run and wait for the response
654
+
-[`useClientAgentsRunStreamMutation`](docs/sdks/agents/README.md#runstream) - Create an agent run and stream the response
0 commit comments