@gleanwork/api-client 0.5.1 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -15
- package/dist/commonjs/funcs/clientAgentsList.d.ts +2 -2
- package/dist/commonjs/funcs/clientAgentsList.js +2 -2
- package/dist/commonjs/funcs/clientAgentsRetrieve.d.ts +2 -2
- package/dist/commonjs/funcs/clientAgentsRetrieve.js +2 -2
- package/dist/commonjs/funcs/clientAgentsRetrieveSchemas.d.ts +2 -2
- package/dist/commonjs/funcs/clientAgentsRetrieveSchemas.js +2 -2
- package/dist/commonjs/funcs/clientAgentsRun.d.ts +2 -2
- package/dist/commonjs/funcs/clientAgentsRun.js +2 -2
- package/dist/commonjs/funcs/clientAgentsRunStream.d.ts +2 -2
- package/dist/commonjs/funcs/clientAgentsRunStream.js +2 -2
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/agent.d.ts +16 -6
- package/dist/commonjs/models/components/agent.d.ts.map +1 -1
- package/dist/commonjs/models/components/agent.js.map +1 -1
- package/dist/commonjs/models/components/agentschemas.d.ts +4 -4
- package/dist/commonjs/models/components/searchagentsrequest.d.ts +1 -1
- package/dist/commonjs/models/components/workflow.d.ts +5 -5
- package/dist/commonjs/models/components/workflow.d.ts.map +1 -1
- package/dist/commonjs/models/components/workflow.js +2 -2
- package/dist/commonjs/models/components/workflow.js.map +1 -1
- package/dist/commonjs/react-query/clientAgentsList.d.ts +2 -2
- package/dist/commonjs/react-query/clientAgentsList.js +2 -2
- package/dist/commonjs/react-query/clientAgentsRetrieve.d.ts +4 -4
- package/dist/commonjs/react-query/clientAgentsRetrieve.js +4 -4
- package/dist/commonjs/react-query/clientAgentsRetrieveSchemas.d.ts +4 -4
- package/dist/commonjs/react-query/clientAgentsRetrieveSchemas.js +4 -4
- package/dist/commonjs/react-query/clientAgentsRun.d.ts +2 -2
- package/dist/commonjs/react-query/clientAgentsRun.js +2 -2
- package/dist/commonjs/react-query/clientAgentsRunStream.d.ts +2 -2
- package/dist/commonjs/react-query/clientAgentsRunStream.js +2 -2
- package/dist/commonjs/sdk/agents.d.ts +10 -10
- package/dist/commonjs/sdk/agents.js +10 -10
- package/dist/esm/funcs/clientAgentsList.d.ts +2 -2
- package/dist/esm/funcs/clientAgentsList.js +2 -2
- package/dist/esm/funcs/clientAgentsRetrieve.d.ts +2 -2
- package/dist/esm/funcs/clientAgentsRetrieve.js +2 -2
- package/dist/esm/funcs/clientAgentsRetrieveSchemas.d.ts +2 -2
- package/dist/esm/funcs/clientAgentsRetrieveSchemas.js +2 -2
- package/dist/esm/funcs/clientAgentsRun.d.ts +2 -2
- package/dist/esm/funcs/clientAgentsRun.js +2 -2
- package/dist/esm/funcs/clientAgentsRunStream.d.ts +2 -2
- package/dist/esm/funcs/clientAgentsRunStream.js +2 -2
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/agent.d.ts +16 -6
- package/dist/esm/models/components/agent.d.ts.map +1 -1
- package/dist/esm/models/components/agent.js.map +1 -1
- package/dist/esm/models/components/agentschemas.d.ts +4 -4
- package/dist/esm/models/components/searchagentsrequest.d.ts +1 -1
- package/dist/esm/models/components/workflow.d.ts +5 -5
- package/dist/esm/models/components/workflow.d.ts.map +1 -1
- package/dist/esm/models/components/workflow.js +2 -2
- package/dist/esm/models/components/workflow.js.map +1 -1
- package/dist/esm/react-query/clientAgentsList.d.ts +2 -2
- package/dist/esm/react-query/clientAgentsList.js +2 -2
- package/dist/esm/react-query/clientAgentsRetrieve.d.ts +4 -4
- package/dist/esm/react-query/clientAgentsRetrieve.js +4 -4
- package/dist/esm/react-query/clientAgentsRetrieveSchemas.d.ts +4 -4
- package/dist/esm/react-query/clientAgentsRetrieveSchemas.js +4 -4
- package/dist/esm/react-query/clientAgentsRun.d.ts +2 -2
- package/dist/esm/react-query/clientAgentsRun.js +2 -2
- package/dist/esm/react-query/clientAgentsRunStream.d.ts +2 -2
- package/dist/esm/react-query/clientAgentsRunStream.js +2 -2
- package/dist/esm/sdk/agents.d.ts +10 -10
- package/dist/esm/sdk/agents.js +10 -10
- package/docs/sdks/agents/README.md +16 -12
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/clientAgentsList.ts +2 -2
- package/src/funcs/clientAgentsRetrieve.ts +2 -2
- package/src/funcs/clientAgentsRetrieveSchemas.ts +2 -2
- package/src/funcs/clientAgentsRun.ts +2 -2
- package/src/funcs/clientAgentsRunStream.ts +2 -2
- package/src/lib/config.ts +2 -2
- package/src/models/components/agent.ts +16 -6
- package/src/models/components/agentschemas.ts +4 -4
- package/src/models/components/searchagentsrequest.ts +1 -1
- package/src/models/components/workflow.ts +7 -7
- package/src/react-query/clientAgentsList.ts +2 -2
- package/src/react-query/clientAgentsRetrieve.ts +4 -4
- package/src/react-query/clientAgentsRetrieveSchemas.ts +4 -4
- package/src/react-query/clientAgentsRun.ts +2 -2
- package/src/react-query/clientAgentsRunStream.ts +2 -2
- package/src/sdk/agents.ts +10 -10
package/README.md
CHANGED
|
@@ -293,11 +293,11 @@ For more information on obtaining the appropriate token type, please contact you
|
|
|
293
293
|
|
|
294
294
|
#### [client.agents](docs/sdks/agents/README.md)
|
|
295
295
|
|
|
296
|
-
* [retrieve](docs/sdks/agents/README.md#retrieve) -
|
|
297
|
-
* [retrieveSchemas](docs/sdks/agents/README.md#retrieveschemas) -
|
|
298
|
-
* [list](docs/sdks/agents/README.md#list) - Search
|
|
299
|
-
* [runStream](docs/sdks/agents/README.md#runstream) - Create
|
|
300
|
-
* [run](docs/sdks/agents/README.md#run) - Create
|
|
296
|
+
* [retrieve](docs/sdks/agents/README.md#retrieve) - Retrieve an agent
|
|
297
|
+
* [retrieveSchemas](docs/sdks/agents/README.md#retrieveschemas) - List an agent's schemas
|
|
298
|
+
* [list](docs/sdks/agents/README.md#list) - Search agents
|
|
299
|
+
* [runStream](docs/sdks/agents/README.md#runstream) - Create an agent run and stream the response
|
|
300
|
+
* [run](docs/sdks/agents/README.md#run) - Create an [agent](https://developers.glean.com/agents/agents-api) run and wait for the response
|
|
301
301
|
|
|
302
302
|
#### [client.announcements](docs/sdks/announcements/README.md)
|
|
303
303
|
|
|
@@ -508,11 +508,11 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
508
508
|
|
|
509
509
|
- [`clientActivityFeedback`](docs/sdks/activity/README.md#feedback) - Report client activity
|
|
510
510
|
- [`clientActivityReport`](docs/sdks/activity/README.md#report) - Report document activity
|
|
511
|
-
- [`clientAgentsList`](docs/sdks/agents/README.md#list) - Search
|
|
512
|
-
- [`clientAgentsRetrieve`](docs/sdks/agents/README.md#retrieve) -
|
|
513
|
-
- [`clientAgentsRetrieveSchemas`](docs/sdks/agents/README.md#retrieveschemas) -
|
|
514
|
-
- [`clientAgentsRun`](docs/sdks/agents/README.md#run) - Create
|
|
515
|
-
- [`clientAgentsRunStream`](docs/sdks/agents/README.md#runstream) - Create
|
|
511
|
+
- [`clientAgentsList`](docs/sdks/agents/README.md#list) - Search agents
|
|
512
|
+
- [`clientAgentsRetrieve`](docs/sdks/agents/README.md#retrieve) - Retrieve an agent
|
|
513
|
+
- [`clientAgentsRetrieveSchemas`](docs/sdks/agents/README.md#retrieveschemas) - List an agent's schemas
|
|
514
|
+
- [`clientAgentsRun`](docs/sdks/agents/README.md#run) - Create an [agent](https://developers.glean.com/agents/agents-api) run and wait for the response
|
|
515
|
+
- [`clientAgentsRunStream`](docs/sdks/agents/README.md#runstream) - Create an agent run and stream the response
|
|
516
516
|
- [`clientAnnouncementsCreate`](docs/sdks/announcements/README.md#create) - Create Announcement
|
|
517
517
|
- [`clientAnnouncementsDelete`](docs/sdks/announcements/README.md#delete) - Delete Announcement
|
|
518
518
|
- [`clientAnnouncementsUpdate`](docs/sdks/announcements/README.md#update) - Update Announcement
|
|
@@ -647,11 +647,11 @@ To learn about this feature and how to get started, check
|
|
|
647
647
|
|
|
648
648
|
- [`useClientActivityFeedbackMutation`](docs/sdks/activity/README.md#feedback) - Report client activity
|
|
649
649
|
- [`useClientActivityReportMutation`](docs/sdks/activity/README.md#report) - Report document activity
|
|
650
|
-
- [`useClientAgentsListMutation`](docs/sdks/agents/README.md#list) - Search
|
|
651
|
-
- [`useClientAgentsRetrieve`](docs/sdks/agents/README.md#retrieve) -
|
|
652
|
-
- [`useClientAgentsRetrieveSchemas`](docs/sdks/agents/README.md#retrieveschemas) -
|
|
653
|
-
- [`useClientAgentsRunMutation`](docs/sdks/agents/README.md#run) - Create
|
|
654
|
-
- [`useClientAgentsRunStreamMutation`](docs/sdks/agents/README.md#runstream) - Create
|
|
650
|
+
- [`useClientAgentsListMutation`](docs/sdks/agents/README.md#list) - Search agents
|
|
651
|
+
- [`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
|
|
655
655
|
- [`useClientAnnouncementsCreateMutation`](docs/sdks/announcements/README.md#create) - Create Announcement
|
|
656
656
|
- [`useClientAnnouncementsDeleteMutation`](docs/sdks/announcements/README.md#delete) - Delete Announcement
|
|
657
657
|
- [`useClientAnnouncementsUpdateMutation`](docs/sdks/announcements/README.md#update) - Update Announcement
|
|
@@ -7,10 +7,10 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
7
7
|
import { APIPromise } from "../types/async.js";
|
|
8
8
|
import { Result } from "../types/fp.js";
|
|
9
9
|
/**
|
|
10
|
-
* Search
|
|
10
|
+
* Search agents
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
|
-
*
|
|
13
|
+
* Search for [agents](https://developers.glean.com/agents/agents-api) by agent name.
|
|
14
14
|
*/
|
|
15
15
|
export declare function clientAgentsList(client: GleanCore, request: components.SearchAgentsRequest, options?: RequestOptions): APIPromise<Result<components.SearchAgentsResponse, GleanError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
16
16
|
//# sourceMappingURL=clientAgentsList.d.ts.map
|
|
@@ -46,10 +46,10 @@ const url_js_1 = require("../lib/url.js");
|
|
|
46
46
|
const components = __importStar(require("../models/components/index.js"));
|
|
47
47
|
const async_js_1 = require("../types/async.js");
|
|
48
48
|
/**
|
|
49
|
-
* Search
|
|
49
|
+
* Search agents
|
|
50
50
|
*
|
|
51
51
|
* @remarks
|
|
52
|
-
*
|
|
52
|
+
* Search for [agents](https://developers.glean.com/agents/agents-api) by agent name.
|
|
53
53
|
*/
|
|
54
54
|
function clientAgentsList(client, request, options) {
|
|
55
55
|
return new async_js_1.APIPromise($do(client, request, options));
|
|
@@ -7,10 +7,10 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
7
7
|
import { APIPromise } from "../types/async.js";
|
|
8
8
|
import { Result } from "../types/fp.js";
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Retrieve an agent
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
|
-
*
|
|
13
|
+
* Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder.
|
|
14
14
|
*/
|
|
15
15
|
export declare function clientAgentsRetrieve(client: GleanCore, agentId: string, timezoneOffset?: number | undefined, options?: RequestOptions): APIPromise<Result<components.Agent, GleanError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
16
16
|
//# sourceMappingURL=clientAgentsRetrieve.d.ts.map
|
|
@@ -47,10 +47,10 @@ const components = __importStar(require("../models/components/index.js"));
|
|
|
47
47
|
const operations = __importStar(require("../models/operations/index.js"));
|
|
48
48
|
const async_js_1 = require("../types/async.js");
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Retrieve an agent
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
*
|
|
53
|
+
* Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder.
|
|
54
54
|
*/
|
|
55
55
|
function clientAgentsRetrieve(client, agentId, timezoneOffset, options) {
|
|
56
56
|
return new async_js_1.APIPromise($do(client, agentId, timezoneOffset, options));
|
|
@@ -7,10 +7,10 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
7
7
|
import { APIPromise } from "../types/async.js";
|
|
8
8
|
import { Result } from "../types/fp.js";
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* List an agent's schemas
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
|
-
*
|
|
13
|
+
* 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.
|
|
14
14
|
*/
|
|
15
15
|
export declare function clientAgentsRetrieveSchemas(client: GleanCore, agentId: string, timezoneOffset?: number | undefined, options?: RequestOptions): APIPromise<Result<components.AgentSchemas, GleanError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
16
16
|
//# sourceMappingURL=clientAgentsRetrieveSchemas.d.ts.map
|
|
@@ -47,10 +47,10 @@ const components = __importStar(require("../models/components/index.js"));
|
|
|
47
47
|
const operations = __importStar(require("../models/operations/index.js"));
|
|
48
48
|
const async_js_1 = require("../types/async.js");
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* List an agent's schemas
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
*
|
|
53
|
+
* 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.
|
|
54
54
|
*/
|
|
55
55
|
function clientAgentsRetrieveSchemas(client, agentId, timezoneOffset, options) {
|
|
56
56
|
return new async_js_1.APIPromise($do(client, agentId, timezoneOffset, options));
|
|
@@ -7,10 +7,10 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
7
7
|
import { APIPromise } from "../types/async.js";
|
|
8
8
|
import { Result } from "../types/fp.js";
|
|
9
9
|
/**
|
|
10
|
-
* Create
|
|
10
|
+
* Create an [agent](https://developers.glean.com/agents/agents-api) run and wait for the response
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
|
-
*
|
|
13
|
+
* Executes an agent run and returns the final response.
|
|
14
14
|
*/
|
|
15
15
|
export declare function clientAgentsRun(client: GleanCore, request: components.AgentRunCreate, options?: RequestOptions): APIPromise<Result<components.AgentRunWaitResponse, GleanError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
16
16
|
//# sourceMappingURL=clientAgentsRun.d.ts.map
|
|
@@ -46,10 +46,10 @@ const url_js_1 = require("../lib/url.js");
|
|
|
46
46
|
const components = __importStar(require("../models/components/index.js"));
|
|
47
47
|
const async_js_1 = require("../types/async.js");
|
|
48
48
|
/**
|
|
49
|
-
* Create
|
|
49
|
+
* Create an [agent](https://developers.glean.com/agents/agents-api) run and wait for the response
|
|
50
50
|
*
|
|
51
51
|
* @remarks
|
|
52
|
-
*
|
|
52
|
+
* Executes an agent run and returns the final response.
|
|
53
53
|
*/
|
|
54
54
|
function clientAgentsRun(client, request, options) {
|
|
55
55
|
return new async_js_1.APIPromise($do(client, request, options));
|
|
@@ -7,10 +7,10 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
7
7
|
import { APIPromise } from "../types/async.js";
|
|
8
8
|
import { Result } from "../types/fp.js";
|
|
9
9
|
/**
|
|
10
|
-
* Create
|
|
10
|
+
* Create an agent run and stream the response
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
|
-
*
|
|
13
|
+
* Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE).
|
|
14
14
|
*/
|
|
15
15
|
export declare function clientAgentsRunStream(client: GleanCore, request: components.AgentRunCreate, options?: RequestOptions): APIPromise<Result<string, GleanError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
16
16
|
//# sourceMappingURL=clientAgentsRunStream.d.ts.map
|
|
@@ -47,10 +47,10 @@ const url_js_1 = require("../lib/url.js");
|
|
|
47
47
|
const components = __importStar(require("../models/components/index.js"));
|
|
48
48
|
const async_js_1 = require("../types/async.js");
|
|
49
49
|
/**
|
|
50
|
-
* Create
|
|
50
|
+
* Create an agent run and stream the response
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
*
|
|
53
|
+
* Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE).
|
|
54
54
|
*/
|
|
55
55
|
function clientAgentsRunStream(client, request, options) {
|
|
56
56
|
return new async_js_1.APIPromise($do(client, request, options));
|
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.9.0";
|
|
34
|
-
readonly sdkVersion: "0.5.
|
|
34
|
+
readonly sdkVersion: "0.5.3";
|
|
35
35
|
readonly genVersion: "2.610.0";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.5.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.5.3 2.610.0 0.9.0 @gleanwork/api-client";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -34,8 +34,8 @@ function serverURLFromOptions(options) {
|
|
|
34
34
|
exports.SDK_METADATA = {
|
|
35
35
|
language: "typescript",
|
|
36
36
|
openapiDocVersion: "0.9.0",
|
|
37
|
-
sdkVersion: "0.5.
|
|
37
|
+
sdkVersion: "0.5.3",
|
|
38
38
|
genVersion: "2.610.0",
|
|
39
|
-
userAgent: "speakeasy-sdk/typescript 0.5.
|
|
39
|
+
userAgent: "speakeasy-sdk/typescript 0.5.3 2.610.0 0.9.0 @gleanwork/api-client",
|
|
40
40
|
};
|
|
41
41
|
//# sourceMappingURL=config.js.map
|
|
@@ -2,19 +2,24 @@ import * as z from "zod";
|
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
/**
|
|
5
|
-
* The agent metadata.
|
|
5
|
+
* The agent metadata. Currently not implemented.
|
|
6
6
|
*/
|
|
7
7
|
export type AgentMetadata = {};
|
|
8
8
|
/**
|
|
9
|
-
* Describes
|
|
9
|
+
* Describes features that the agent supports. example: {
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* "ap.io.messages": true,
|
|
13
|
+
* "ap.io.streaming": true
|
|
14
|
+
* }
|
|
10
15
|
*/
|
|
11
16
|
export type AgentCapabilities = {
|
|
12
17
|
/**
|
|
13
|
-
* Whether the agent supports
|
|
18
|
+
* Whether the agent supports messages as an input. If true, you'll pass `messages` as an input when running the agent.
|
|
14
19
|
*/
|
|
15
20
|
apIoMessages?: boolean | undefined;
|
|
16
21
|
/**
|
|
17
|
-
* Whether the agent supports streaming output.
|
|
22
|
+
* Whether the agent supports streaming output. If true, you you can stream agent ouput. All agents currently support streaming.
|
|
18
23
|
*/
|
|
19
24
|
apIoStreaming?: boolean | undefined;
|
|
20
25
|
additionalProperties?: {
|
|
@@ -35,11 +40,16 @@ export type Agent = {
|
|
|
35
40
|
*/
|
|
36
41
|
description?: string | undefined;
|
|
37
42
|
/**
|
|
38
|
-
* The agent metadata.
|
|
43
|
+
* The agent metadata. Currently not implemented.
|
|
39
44
|
*/
|
|
40
45
|
metadata?: AgentMetadata | undefined;
|
|
41
46
|
/**
|
|
42
|
-
* Describes
|
|
47
|
+
* Describes features that the agent supports. example: {
|
|
48
|
+
*
|
|
49
|
+
* @remarks
|
|
50
|
+
* "ap.io.messages": true,
|
|
51
|
+
* "ap.io.streaming": true
|
|
52
|
+
* }
|
|
43
53
|
*/
|
|
44
54
|
capabilities: AgentCapabilities;
|
|
45
55
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../../src/models/components/agent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAMzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,EAAE,CAAC;AAE/B
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../../src/models/components/agent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAMzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,EAAE,CAAC;AAE/B;;;;;;;GAOG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACpC,oBAAoB,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH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AU,EAAE,MAAM,GACjB,eAAe,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAM5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../../../src/models/components/agent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../../../src/models/components/agent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8FH,kDAEC;AAED,sDAQC;AA6DD,0DAMC;AAED,8DAQC;AAuDD,kCAEC;AAED,sCAQC;AAxPD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAG8B;AAyD9B,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAKjB,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEjB;;;GAGG;AACH,IAAiB,cAAc,CAO9B;AAPD,WAAiB,cAAc;IAC7B,6DAA6D;IAChD,4BAAa,GAAG,mCAA2B,CAAC;IACzD,8DAA8D;IACjD,6BAAc,GAAG,oCAA4B,CAAC;AAG7D,CAAC,EAPgB,cAAc,8BAAd,cAAc,QAO9B;AAED,SAAgB,mBAAmB,CAAC,aAA4B;IAC9D,OAAO,IAAI,CAAC,SAAS,CAAC,oCAA4B,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;AAC3E,CAAC;AAED,SAAgB,qBAAqB,CACnC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAA2B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvD,2CAA2C,CAC5C,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA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CAAgC,CAAC;CAC7D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,OAAO,EAAE,UAAU;KACpB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,MAAM,CAOtB;AAPD,WAAiB,MAAM;IACrB,qDAAqD;IACxC,oBAAa,GAAG,2BAAmB,CAAC;IACjD,sDAAsD;IACzC,qBAAc,GAAG,4BAAoB,CAAC;AAGrD,CAAC,EAPgB,MAAM,sBAAN,MAAM,QAOtB;AAED,SAAgB,WAAW,CAAC,KAAY;IACtC,OAAO,IAAI,CAAC,SAAS,CAAC,4BAAoB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED,SAAgB,aAAa,CAC3B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2BAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/C,mCAAmC,CACpC,CAAC;AACJ,CAAC"}
|
|
@@ -2,11 +2,11 @@ import * as z from "zod";
|
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
/**
|
|
5
|
-
* The schema for the agent input. In JSON
|
|
5
|
+
* The schema for the agent input. In JSON schema format.
|
|
6
6
|
*/
|
|
7
7
|
export type InputSchema = {};
|
|
8
8
|
/**
|
|
9
|
-
* The schema for the agent output. In JSON
|
|
9
|
+
* The schema for the agent output. In JSON schema format.
|
|
10
10
|
*/
|
|
11
11
|
export type OutputSchema = {};
|
|
12
12
|
/**
|
|
@@ -18,11 +18,11 @@ export type AgentSchemas = {
|
|
|
18
18
|
*/
|
|
19
19
|
agentId: string;
|
|
20
20
|
/**
|
|
21
|
-
* The schema for the agent input. In JSON
|
|
21
|
+
* The schema for the agent input. In JSON schema format.
|
|
22
22
|
*/
|
|
23
23
|
inputSchema: InputSchema;
|
|
24
24
|
/**
|
|
25
|
-
* The schema for the agent output. In JSON
|
|
25
|
+
* The schema for the agent output. In JSON schema format.
|
|
26
26
|
*/
|
|
27
27
|
outputSchema: OutputSchema;
|
|
28
28
|
};
|
|
@@ -3,7 +3,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
export type SearchAgentsRequest = {
|
|
5
5
|
/**
|
|
6
|
-
* Filters on the name of the agent. If empty, acts as no filter.
|
|
6
|
+
* Filters on the name of the agent. The keyword search is case-insensitive. If search string is ommited or empty, acts as no filter.
|
|
7
7
|
*/
|
|
8
8
|
name?: string | undefined;
|
|
9
9
|
};
|
|
@@ -4,6 +4,10 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
4
4
|
import { ObjectPermissions, ObjectPermissions$Outbound } from "./objectpermissions.js";
|
|
5
5
|
import { Person, Person$Outbound } from "./person.js";
|
|
6
6
|
export type Workflow = {
|
|
7
|
+
/**
|
|
8
|
+
* The name of the workflow.
|
|
9
|
+
*/
|
|
10
|
+
name?: string | undefined;
|
|
7
11
|
author?: Person | undefined;
|
|
8
12
|
/**
|
|
9
13
|
* Server Unix timestamp of the creation time.
|
|
@@ -15,10 +19,6 @@ export type Workflow = {
|
|
|
15
19
|
lastUpdateTimestamp?: number | undefined;
|
|
16
20
|
lastUpdatedBy?: Person | undefined;
|
|
17
21
|
permissions?: ObjectPermissions | undefined;
|
|
18
|
-
/**
|
|
19
|
-
* The name of the workflow.
|
|
20
|
-
*/
|
|
21
|
-
name?: string | undefined;
|
|
22
22
|
/**
|
|
23
23
|
* The ID of the workflow.
|
|
24
24
|
*/
|
|
@@ -28,12 +28,12 @@ export type Workflow = {
|
|
|
28
28
|
export declare const Workflow$inboundSchema: z.ZodType<Workflow, z.ZodTypeDef, unknown>;
|
|
29
29
|
/** @internal */
|
|
30
30
|
export type Workflow$Outbound = {
|
|
31
|
+
name?: string | undefined;
|
|
31
32
|
author?: Person$Outbound | undefined;
|
|
32
33
|
createTimestamp?: number | undefined;
|
|
33
34
|
lastUpdateTimestamp?: number | undefined;
|
|
34
35
|
lastUpdatedBy?: Person$Outbound | undefined;
|
|
35
36
|
permissions?: ObjectPermissions$Outbound | undefined;
|
|
36
|
-
name?: string | undefined;
|
|
37
37
|
id?: string | undefined;
|
|
38
38
|
};
|
|
39
39
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../../../src/models/components/workflow.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,MAAM,EAEN,eAAe,EAEhB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,QAAQ,GAAG;IACrB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,WAAW,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC5C;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../../../src/models/components/workflow.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAA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AAO,CAC7C,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,QAAQ,CASR,CAAC;AAEH;;;GAGG;AACH,yBAAiB,SAAS,CAAC;IACzB,wDAAwD;IACjD,MAAM,aAAa,4CAAyB,CAAC;IACpD,yDAAyD;IAClD,MAAM,cAAc,sDAA0B,CAAC;IACtD,mDAAmD;IACnD,KAAY,QAAQ,GAAG,iBAAiB,CAAC;CAC1C;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEzD;AAED,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAM/C"}
|
|
@@ -45,22 +45,22 @@ const objectpermissions_js_1 = require("./objectpermissions.js");
|
|
|
45
45
|
const person_js_1 = require("./person.js");
|
|
46
46
|
/** @internal */
|
|
47
47
|
exports.Workflow$inboundSchema = z.object({
|
|
48
|
+
name: z.string().optional(),
|
|
48
49
|
author: person_js_1.Person$inboundSchema.optional(),
|
|
49
50
|
createTimestamp: z.number().int().optional(),
|
|
50
51
|
lastUpdateTimestamp: z.number().int().optional(),
|
|
51
52
|
lastUpdatedBy: person_js_1.Person$inboundSchema.optional(),
|
|
52
53
|
permissions: objectpermissions_js_1.ObjectPermissions$inboundSchema.optional(),
|
|
53
|
-
name: z.string().optional(),
|
|
54
54
|
id: z.string().optional(),
|
|
55
55
|
});
|
|
56
56
|
/** @internal */
|
|
57
57
|
exports.Workflow$outboundSchema = z.object({
|
|
58
|
+
name: z.string().optional(),
|
|
58
59
|
author: person_js_1.Person$outboundSchema.optional(),
|
|
59
60
|
createTimestamp: z.number().int().optional(),
|
|
60
61
|
lastUpdateTimestamp: z.number().int().optional(),
|
|
61
62
|
lastUpdatedBy: person_js_1.Person$outboundSchema.optional(),
|
|
62
63
|
permissions: objectpermissions_js_1.ObjectPermissions$outboundSchema.optional(),
|
|
63
|
-
name: z.string().optional(),
|
|
64
64
|
id: z.string().optional(),
|
|
65
65
|
});
|
|
66
66
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../../../src/models/components/workflow.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+FH,wCAEC;AAED,4CAQC;AAzGD,uCAAyB;AACzB,qDAAiD;AAGjD,iEAKgC;AAChC,2CAKqB;AAwBrB,gBAAgB;AACH,QAAA,sBAAsB,GAI/B,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,gCAAoB,CAAC,QAAQ,EAAE;IACvC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC5C,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAChD,aAAa,EAAE,gCAAoB,CAAC,QAAQ,EAAE;IAC9C,WAAW,EAAE,sDAA+B,CAAC,QAAQ,EAAE;IACvD,
|
|
1
|
+
{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../../../src/models/components/workflow.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+FH,wCAEC;AAED,4CAQC;AAzGD,uCAAyB;AACzB,qDAAiD;AAGjD,iEAKgC;AAChC,2CAKqB;AAwBrB,gBAAgB;AACH,QAAA,sBAAsB,GAI/B,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,MAAM,EAAE,gCAAoB,CAAC,QAAQ,EAAE;IACvC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC5C,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAChD,aAAa,EAAE,g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10 @@ export type ClientAgentsListMutationVariables = {
|
|
|
9
9
|
};
|
|
10
10
|
export type ClientAgentsListMutationData = components.SearchAgentsResponse;
|
|
11
11
|
/**
|
|
12
|
-
* Search
|
|
12
|
+
* Search agents
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
*
|
|
15
|
+
* Search for [agents](https://developers.glean.com/agents/agents-api) by agent name.
|
|
16
16
|
*/
|
|
17
17
|
export declare function useClientAgentsListMutation(options?: MutationHookOptions<ClientAgentsListMutationData, Error, ClientAgentsListMutationVariables>): UseMutationResult<ClientAgentsListMutationData, Error, ClientAgentsListMutationVariables>;
|
|
18
18
|
export declare function mutationKeyClientAgentsList(): MutationKey;
|
|
@@ -12,10 +12,10 @@ const primitives_js_1 = require("../lib/primitives.js");
|
|
|
12
12
|
const fp_js_1 = require("../types/fp.js");
|
|
13
13
|
const _context_js_1 = require("./_context.js");
|
|
14
14
|
/**
|
|
15
|
-
* Search
|
|
15
|
+
* Search agents
|
|
16
16
|
*
|
|
17
17
|
* @remarks
|
|
18
|
-
*
|
|
18
|
+
* Search for [agents](https://developers.glean.com/agents/agents-api) by agent name.
|
|
19
19
|
*/
|
|
20
20
|
function useClientAgentsListMutation(options) {
|
|
21
21
|
const client = (0, _context_js_1.useGleanContext)();
|
|
@@ -5,17 +5,17 @@ import * as components from "../models/components/index.js";
|
|
|
5
5
|
import { QueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js";
|
|
6
6
|
export type ClientAgentsRetrieveQueryData = components.Agent;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Retrieve an agent
|
|
9
9
|
*
|
|
10
10
|
* @remarks
|
|
11
|
-
*
|
|
11
|
+
* Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder.
|
|
12
12
|
*/
|
|
13
13
|
export declare function useClientAgentsRetrieve(agentId: string, timezoneOffset?: number | undefined, options?: QueryHookOptions<ClientAgentsRetrieveQueryData>): UseQueryResult<ClientAgentsRetrieveQueryData, Error>;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Retrieve an agent
|
|
16
16
|
*
|
|
17
17
|
* @remarks
|
|
18
|
-
*
|
|
18
|
+
* Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder.
|
|
19
19
|
*/
|
|
20
20
|
export declare function useClientAgentsRetrieveSuspense(agentId: string, timezoneOffset?: number | undefined, options?: SuspenseQueryHookOptions<ClientAgentsRetrieveQueryData>): UseSuspenseQueryResult<ClientAgentsRetrieveQueryData, Error>;
|
|
21
21
|
export declare function prefetchClientAgentsRetrieve(queryClient: QueryClient, client$: GleanCore, agentId: string, timezoneOffset?: number | undefined): Promise<void>;
|
|
@@ -17,10 +17,10 @@ const primitives_js_1 = require("../lib/primitives.js");
|
|
|
17
17
|
const fp_js_1 = require("../types/fp.js");
|
|
18
18
|
const _context_js_1 = require("./_context.js");
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Retrieve an agent
|
|
21
21
|
*
|
|
22
22
|
* @remarks
|
|
23
|
-
*
|
|
23
|
+
* Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder.
|
|
24
24
|
*/
|
|
25
25
|
function useClientAgentsRetrieve(agentId, timezoneOffset, options) {
|
|
26
26
|
const client = (0, _context_js_1.useGleanContext)();
|
|
@@ -30,10 +30,10 @@ function useClientAgentsRetrieve(agentId, timezoneOffset, options) {
|
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Retrieve an agent
|
|
34
34
|
*
|
|
35
35
|
* @remarks
|
|
36
|
-
*
|
|
36
|
+
* Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder.
|
|
37
37
|
*/
|
|
38
38
|
function useClientAgentsRetrieveSuspense(agentId, timezoneOffset, options) {
|
|
39
39
|
const client = (0, _context_js_1.useGleanContext)();
|
|
@@ -5,17 +5,17 @@ import * as components from "../models/components/index.js";
|
|
|
5
5
|
import { QueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js";
|
|
6
6
|
export type ClientAgentsRetrieveSchemasQueryData = components.AgentSchemas;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* List an agent's schemas
|
|
9
9
|
*
|
|
10
10
|
* @remarks
|
|
11
|
-
*
|
|
11
|
+
* 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.
|
|
12
12
|
*/
|
|
13
13
|
export declare function useClientAgentsRetrieveSchemas(agentId: string, timezoneOffset?: number | undefined, options?: QueryHookOptions<ClientAgentsRetrieveSchemasQueryData>): UseQueryResult<ClientAgentsRetrieveSchemasQueryData, Error>;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* List an agent's schemas
|
|
16
16
|
*
|
|
17
17
|
* @remarks
|
|
18
|
-
*
|
|
18
|
+
* 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.
|
|
19
19
|
*/
|
|
20
20
|
export declare function useClientAgentsRetrieveSchemasSuspense(agentId: string, timezoneOffset?: number | undefined, options?: SuspenseQueryHookOptions<ClientAgentsRetrieveSchemasQueryData>): UseSuspenseQueryResult<ClientAgentsRetrieveSchemasQueryData, Error>;
|
|
21
21
|
export declare function prefetchClientAgentsRetrieveSchemas(queryClient: QueryClient, client$: GleanCore, agentId: string, timezoneOffset?: number | undefined): Promise<void>;
|
|
@@ -17,10 +17,10 @@ const primitives_js_1 = require("../lib/primitives.js");
|
|
|
17
17
|
const fp_js_1 = require("../types/fp.js");
|
|
18
18
|
const _context_js_1 = require("./_context.js");
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* List an agent's schemas
|
|
21
21
|
*
|
|
22
22
|
* @remarks
|
|
23
|
-
*
|
|
23
|
+
* 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.
|
|
24
24
|
*/
|
|
25
25
|
function useClientAgentsRetrieveSchemas(agentId, timezoneOffset, options) {
|
|
26
26
|
const client = (0, _context_js_1.useGleanContext)();
|
|
@@ -30,10 +30,10 @@ function useClientAgentsRetrieveSchemas(agentId, timezoneOffset, options) {
|
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* List an agent's schemas
|
|
34
34
|
*
|
|
35
35
|
* @remarks
|
|
36
|
-
*
|
|
36
|
+
* 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.
|
|
37
37
|
*/
|
|
38
38
|
function useClientAgentsRetrieveSchemasSuspense(agentId, timezoneOffset, options) {
|
|
39
39
|
const client = (0, _context_js_1.useGleanContext)();
|
|
@@ -9,10 +9,10 @@ export type ClientAgentsRunMutationVariables = {
|
|
|
9
9
|
};
|
|
10
10
|
export type ClientAgentsRunMutationData = components.AgentRunWaitResponse;
|
|
11
11
|
/**
|
|
12
|
-
* Create
|
|
12
|
+
* Create an [agent](https://developers.glean.com/agents/agents-api) run and wait for the response
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
*
|
|
15
|
+
* Executes an agent run and returns the final response.
|
|
16
16
|
*/
|
|
17
17
|
export declare function useClientAgentsRunMutation(options?: MutationHookOptions<ClientAgentsRunMutationData, Error, ClientAgentsRunMutationVariables>): UseMutationResult<ClientAgentsRunMutationData, Error, ClientAgentsRunMutationVariables>;
|
|
18
18
|
export declare function mutationKeyClientAgentsRun(): MutationKey;
|