@gleanwork/api-client 0.4.4 → 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 +45 -45
- package/dist/commonjs/__tests__/agents.test.js +3 -1
- package/dist/commonjs/__tests__/agents.test.js.map +1 -1
- 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/funcs/clientGovernanceDataPoliciesCreate.d.ts +1 -1
- package/dist/commonjs/funcs/clientGovernanceDataPoliciesCreate.js +1 -1
- package/dist/commonjs/funcs/clientGovernanceDataPoliciesDownload.d.ts +1 -1
- package/dist/commonjs/funcs/clientGovernanceDataPoliciesDownload.js +1 -1
- package/dist/commonjs/funcs/clientGovernanceDataPoliciesList.d.ts +1 -1
- package/dist/commonjs/funcs/clientGovernanceDataPoliciesList.js +1 -1
- package/dist/commonjs/funcs/clientGovernanceDataPoliciesRetrieve.d.ts +1 -1
- package/dist/commonjs/funcs/clientGovernanceDataPoliciesRetrieve.js +1 -1
- package/dist/commonjs/funcs/clientGovernanceDataPoliciesUpdate.d.ts +1 -1
- package/dist/commonjs/funcs/clientGovernanceDataPoliciesUpdate.js +1 -1
- package/dist/commonjs/funcs/clientGovernanceDataReportsCreate.d.ts +1 -1
- package/dist/commonjs/funcs/clientGovernanceDataReportsCreate.js +1 -1
- package/dist/commonjs/funcs/clientGovernanceDataReportsDownload.d.ts +1 -1
- package/dist/commonjs/funcs/clientGovernanceDataReportsDownload.js +1 -1
- package/dist/commonjs/funcs/clientGovernanceDataReportsStatus.d.ts +1 -1
- package/dist/commonjs/funcs/clientGovernanceDataReportsStatus.js +1 -1
- package/dist/commonjs/funcs/clientGovernanceDocumentsVisibilityoverridesCreate.d.ts +1 -1
- package/dist/commonjs/funcs/clientGovernanceDocumentsVisibilityoverridesCreate.js +1 -1
- package/dist/commonjs/funcs/clientGovernanceDocumentsVisibilityoverridesList.d.ts +1 -1
- package/dist/commonjs/funcs/clientGovernanceDocumentsVisibilityoverridesList.js +1 -1
- 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/agentrun.d.ts +2 -2
- package/dist/commonjs/models/components/agentrun.d.ts.map +1 -1
- package/dist/commonjs/models/components/agentrun.js +2 -2
- package/dist/commonjs/models/components/agentrun.js.map +1 -1
- package/dist/commonjs/models/components/agentruncreate.d.ts +2 -2
- package/dist/commonjs/models/components/agentruncreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/agentruncreate.js +2 -2
- package/dist/commonjs/models/components/agentruncreate.js.map +1 -1
- package/dist/commonjs/models/components/agentschemas.d.ts +4 -4
- package/dist/commonjs/models/components/chatrequest.d.ts +3 -0
- package/dist/commonjs/models/components/chatrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/chatrequest.js +3 -0
- package/dist/commonjs/models/components/chatrequest.js.map +1 -1
- 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/react-query/clientGovernanceDataPoliciesCreate.d.ts +1 -1
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesCreate.js +1 -1
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesDownload.d.ts +2 -2
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesDownload.js +2 -2
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesList.d.ts +2 -2
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesList.js +2 -2
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesRetrieve.d.ts +2 -2
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesRetrieve.js +2 -2
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesUpdate.d.ts +1 -1
- package/dist/commonjs/react-query/clientGovernanceDataPoliciesUpdate.js +1 -1
- package/dist/commonjs/react-query/clientGovernanceDataReportsCreate.d.ts +1 -1
- package/dist/commonjs/react-query/clientGovernanceDataReportsCreate.js +1 -1
- package/dist/commonjs/react-query/clientGovernanceDataReportsDownload.d.ts +2 -2
- package/dist/commonjs/react-query/clientGovernanceDataReportsDownload.js +2 -2
- package/dist/commonjs/react-query/clientGovernanceDataReportsStatus.d.ts +2 -2
- package/dist/commonjs/react-query/clientGovernanceDataReportsStatus.js +2 -2
- package/dist/commonjs/react-query/clientGovernanceDocumentsVisibilityoverridesCreate.d.ts +1 -1
- package/dist/commonjs/react-query/clientGovernanceDocumentsVisibilityoverridesCreate.js +1 -1
- package/dist/commonjs/react-query/clientGovernanceDocumentsVisibilityoverridesList.d.ts +2 -2
- package/dist/commonjs/react-query/clientGovernanceDocumentsVisibilityoverridesList.js +2 -2
- package/dist/commonjs/sdk/agents.d.ts +10 -10
- package/dist/commonjs/sdk/agents.js +10 -10
- package/dist/commonjs/sdk/policies.d.ts +5 -5
- package/dist/commonjs/sdk/policies.js +5 -5
- package/dist/commonjs/sdk/reports.d.ts +3 -3
- package/dist/commonjs/sdk/reports.js +3 -3
- package/dist/commonjs/sdk/visibilityoverrides.d.ts +2 -2
- package/dist/commonjs/sdk/visibilityoverrides.js +2 -2
- package/dist/esm/__tests__/agents.test.js +3 -1
- package/dist/esm/__tests__/agents.test.js.map +1 -1
- 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/funcs/clientGovernanceDataPoliciesCreate.d.ts +1 -1
- package/dist/esm/funcs/clientGovernanceDataPoliciesCreate.js +1 -1
- package/dist/esm/funcs/clientGovernanceDataPoliciesDownload.d.ts +1 -1
- package/dist/esm/funcs/clientGovernanceDataPoliciesDownload.js +1 -1
- package/dist/esm/funcs/clientGovernanceDataPoliciesList.d.ts +1 -1
- package/dist/esm/funcs/clientGovernanceDataPoliciesList.js +1 -1
- package/dist/esm/funcs/clientGovernanceDataPoliciesRetrieve.d.ts +1 -1
- package/dist/esm/funcs/clientGovernanceDataPoliciesRetrieve.js +1 -1
- package/dist/esm/funcs/clientGovernanceDataPoliciesUpdate.d.ts +1 -1
- package/dist/esm/funcs/clientGovernanceDataPoliciesUpdate.js +1 -1
- package/dist/esm/funcs/clientGovernanceDataReportsCreate.d.ts +1 -1
- package/dist/esm/funcs/clientGovernanceDataReportsCreate.js +1 -1
- package/dist/esm/funcs/clientGovernanceDataReportsDownload.d.ts +1 -1
- package/dist/esm/funcs/clientGovernanceDataReportsDownload.js +1 -1
- package/dist/esm/funcs/clientGovernanceDataReportsStatus.d.ts +1 -1
- package/dist/esm/funcs/clientGovernanceDataReportsStatus.js +1 -1
- package/dist/esm/funcs/clientGovernanceDocumentsVisibilityoverridesCreate.d.ts +1 -1
- package/dist/esm/funcs/clientGovernanceDocumentsVisibilityoverridesCreate.js +1 -1
- package/dist/esm/funcs/clientGovernanceDocumentsVisibilityoverridesList.d.ts +1 -1
- package/dist/esm/funcs/clientGovernanceDocumentsVisibilityoverridesList.js +1 -1
- 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/agentrun.d.ts +2 -2
- package/dist/esm/models/components/agentrun.d.ts.map +1 -1
- package/dist/esm/models/components/agentrun.js +2 -2
- package/dist/esm/models/components/agentrun.js.map +1 -1
- package/dist/esm/models/components/agentruncreate.d.ts +2 -2
- package/dist/esm/models/components/agentruncreate.d.ts.map +1 -1
- package/dist/esm/models/components/agentruncreate.js +2 -2
- package/dist/esm/models/components/agentruncreate.js.map +1 -1
- package/dist/esm/models/components/agentschemas.d.ts +4 -4
- package/dist/esm/models/components/chatrequest.d.ts +3 -0
- package/dist/esm/models/components/chatrequest.d.ts.map +1 -1
- package/dist/esm/models/components/chatrequest.js +3 -0
- package/dist/esm/models/components/chatrequest.js.map +1 -1
- 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/react-query/clientGovernanceDataPoliciesCreate.d.ts +1 -1
- package/dist/esm/react-query/clientGovernanceDataPoliciesCreate.js +1 -1
- package/dist/esm/react-query/clientGovernanceDataPoliciesDownload.d.ts +2 -2
- package/dist/esm/react-query/clientGovernanceDataPoliciesDownload.js +2 -2
- package/dist/esm/react-query/clientGovernanceDataPoliciesList.d.ts +2 -2
- package/dist/esm/react-query/clientGovernanceDataPoliciesList.js +2 -2
- package/dist/esm/react-query/clientGovernanceDataPoliciesRetrieve.d.ts +2 -2
- package/dist/esm/react-query/clientGovernanceDataPoliciesRetrieve.js +2 -2
- package/dist/esm/react-query/clientGovernanceDataPoliciesUpdate.d.ts +1 -1
- package/dist/esm/react-query/clientGovernanceDataPoliciesUpdate.js +1 -1
- package/dist/esm/react-query/clientGovernanceDataReportsCreate.d.ts +1 -1
- package/dist/esm/react-query/clientGovernanceDataReportsCreate.js +1 -1
- package/dist/esm/react-query/clientGovernanceDataReportsDownload.d.ts +2 -2
- package/dist/esm/react-query/clientGovernanceDataReportsDownload.js +2 -2
- package/dist/esm/react-query/clientGovernanceDataReportsStatus.d.ts +2 -2
- package/dist/esm/react-query/clientGovernanceDataReportsStatus.js +2 -2
- package/dist/esm/react-query/clientGovernanceDocumentsVisibilityoverridesCreate.d.ts +1 -1
- package/dist/esm/react-query/clientGovernanceDocumentsVisibilityoverridesCreate.js +1 -1
- package/dist/esm/react-query/clientGovernanceDocumentsVisibilityoverridesList.d.ts +2 -2
- package/dist/esm/react-query/clientGovernanceDocumentsVisibilityoverridesList.js +2 -2
- package/dist/esm/sdk/agents.d.ts +10 -10
- package/dist/esm/sdk/agents.js +10 -10
- package/dist/esm/sdk/policies.d.ts +5 -5
- package/dist/esm/sdk/policies.js +5 -5
- package/dist/esm/sdk/reports.d.ts +3 -3
- package/dist/esm/sdk/reports.js +3 -3
- package/dist/esm/sdk/visibilityoverrides.d.ts +2 -2
- package/dist/esm/sdk/visibilityoverrides.js +2 -2
- package/docs/sdks/agents/README.md +28 -16
- package/docs/sdks/policies/README.md +5 -5
- package/docs/sdks/reports/README.md +3 -3
- package/docs/sdks/visibilityoverrides/README.md +2 -2
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/agents.test.ts +3 -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/funcs/clientGovernanceDataPoliciesCreate.ts +1 -1
- package/src/funcs/clientGovernanceDataPoliciesDownload.ts +1 -1
- package/src/funcs/clientGovernanceDataPoliciesList.ts +1 -1
- package/src/funcs/clientGovernanceDataPoliciesRetrieve.ts +1 -1
- package/src/funcs/clientGovernanceDataPoliciesUpdate.ts +1 -1
- package/src/funcs/clientGovernanceDataReportsCreate.ts +1 -1
- package/src/funcs/clientGovernanceDataReportsDownload.ts +1 -1
- package/src/funcs/clientGovernanceDataReportsStatus.ts +1 -1
- package/src/funcs/clientGovernanceDocumentsVisibilityoverridesCreate.ts +1 -1
- package/src/funcs/clientGovernanceDocumentsVisibilityoverridesList.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/agent.ts +16 -6
- package/src/models/components/agentrun.ts +4 -4
- package/src/models/components/agentruncreate.ts +4 -4
- package/src/models/components/agentschemas.ts +4 -4
- package/src/models/components/chatrequest.ts +10 -0
- 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/react-query/clientGovernanceDataPoliciesCreate.ts +1 -1
- package/src/react-query/clientGovernanceDataPoliciesDownload.ts +2 -2
- package/src/react-query/clientGovernanceDataPoliciesList.ts +2 -2
- package/src/react-query/clientGovernanceDataPoliciesRetrieve.ts +2 -2
- package/src/react-query/clientGovernanceDataPoliciesUpdate.ts +1 -1
- package/src/react-query/clientGovernanceDataReportsCreate.ts +1 -1
- package/src/react-query/clientGovernanceDataReportsDownload.ts +2 -2
- package/src/react-query/clientGovernanceDataReportsStatus.ts +2 -2
- package/src/react-query/clientGovernanceDocumentsVisibilityoverridesCreate.ts +1 -1
- package/src/react-query/clientGovernanceDocumentsVisibilityoverridesList.ts +2 -2
- package/src/sdk/agents.ts +10 -10
- package/src/sdk/policies.ts +5 -5
- package/src/sdk/reports.ts +3 -3
- package/src/sdk/visibilityoverrides.ts +2 -2
|
@@ -25,7 +25,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
25
25
|
import { Result } from "../types/fp.js";
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* Downloads violations CSV for report
|
|
28
|
+
* Downloads violations CSV for report
|
|
29
29
|
*
|
|
30
30
|
* @remarks
|
|
31
31
|
* Downloads CSV violations report for a specific report id.
|
|
@@ -24,7 +24,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
24
24
|
import { Result } from "../types/fp.js";
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* Hide
|
|
27
|
+
* Hide or unhide docs
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
30
|
* Sets the visibility-override state of the documents specified, effectively hiding or un-hiding documents.
|
|
@@ -25,7 +25,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
25
25
|
import { Result } from "../types/fp.js";
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* Fetches documents visibility
|
|
28
|
+
* Fetches documents visibility
|
|
29
29
|
*
|
|
30
30
|
* @remarks
|
|
31
31
|
* Fetches the visibility override status of the documents passed.
|
package/src/lib/config.ts
CHANGED
|
@@ -64,8 +64,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
64
64
|
export const SDK_METADATA = {
|
|
65
65
|
language: "typescript",
|
|
66
66
|
openapiDocVersion: "0.9.0",
|
|
67
|
-
sdkVersion: "0.
|
|
67
|
+
sdkVersion: "0.5.3",
|
|
68
68
|
genVersion: "2.610.0",
|
|
69
69
|
userAgent:
|
|
70
|
-
"speakeasy-sdk/typescript 0.
|
|
70
|
+
"speakeasy-sdk/typescript 0.5.3 2.610.0 0.9.0 @gleanwork/api-client",
|
|
71
71
|
} as const;
|
|
@@ -12,20 +12,25 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
12
12
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* The agent metadata.
|
|
15
|
+
* The agent metadata. Currently not implemented.
|
|
16
16
|
*/
|
|
17
17
|
export type AgentMetadata = {};
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* Describes
|
|
20
|
+
* Describes features that the agent supports. example: {
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* "ap.io.messages": true,
|
|
24
|
+
* "ap.io.streaming": true
|
|
25
|
+
* }
|
|
21
26
|
*/
|
|
22
27
|
export type AgentCapabilities = {
|
|
23
28
|
/**
|
|
24
|
-
* Whether the agent supports
|
|
29
|
+
* Whether the agent supports messages as an input. If true, you'll pass `messages` as an input when running the agent.
|
|
25
30
|
*/
|
|
26
31
|
apIoMessages?: boolean | undefined;
|
|
27
32
|
/**
|
|
28
|
-
* Whether the agent supports streaming output.
|
|
33
|
+
* Whether the agent supports streaming output. If true, you you can stream agent ouput. All agents currently support streaming.
|
|
29
34
|
*/
|
|
30
35
|
apIoStreaming?: boolean | undefined;
|
|
31
36
|
additionalProperties?: { [k: string]: any };
|
|
@@ -45,11 +50,16 @@ export type Agent = {
|
|
|
45
50
|
*/
|
|
46
51
|
description?: string | undefined;
|
|
47
52
|
/**
|
|
48
|
-
* The agent metadata.
|
|
53
|
+
* The agent metadata. Currently not implemented.
|
|
49
54
|
*/
|
|
50
55
|
metadata?: AgentMetadata | undefined;
|
|
51
56
|
/**
|
|
52
|
-
* Describes
|
|
57
|
+
* Describes features that the agent supports. example: {
|
|
58
|
+
*
|
|
59
|
+
* @remarks
|
|
60
|
+
* "ap.io.messages": true,
|
|
61
|
+
* "ap.io.streaming": true
|
|
62
|
+
* }
|
|
53
63
|
*/
|
|
54
64
|
capabilities: AgentCapabilities;
|
|
55
65
|
};
|
|
@@ -26,7 +26,7 @@ export type AgentRun = {
|
|
|
26
26
|
/**
|
|
27
27
|
* The ID of the agent to run.
|
|
28
28
|
*/
|
|
29
|
-
agentId
|
|
29
|
+
agentId: string;
|
|
30
30
|
/**
|
|
31
31
|
* The input to the agent.
|
|
32
32
|
*/
|
|
@@ -47,7 +47,7 @@ export const AgentRun$inboundSchema: z.ZodType<
|
|
|
47
47
|
z.ZodTypeDef,
|
|
48
48
|
unknown
|
|
49
49
|
> = z.object({
|
|
50
|
-
agent_id: z.string()
|
|
50
|
+
agent_id: z.string(),
|
|
51
51
|
input: z.record(z.any()).optional(),
|
|
52
52
|
messages: z.array(Message$inboundSchema).optional(),
|
|
53
53
|
status: AgentExecutionStatus$inboundSchema.optional(),
|
|
@@ -59,7 +59,7 @@ export const AgentRun$inboundSchema: z.ZodType<
|
|
|
59
59
|
|
|
60
60
|
/** @internal */
|
|
61
61
|
export type AgentRun$Outbound = {
|
|
62
|
-
agent_id
|
|
62
|
+
agent_id: string;
|
|
63
63
|
input?: { [k: string]: any } | undefined;
|
|
64
64
|
messages?: Array<Message$Outbound> | undefined;
|
|
65
65
|
status?: string | undefined;
|
|
@@ -71,7 +71,7 @@ export const AgentRun$outboundSchema: z.ZodType<
|
|
|
71
71
|
z.ZodTypeDef,
|
|
72
72
|
AgentRun
|
|
73
73
|
> = z.object({
|
|
74
|
-
agentId: z.string()
|
|
74
|
+
agentId: z.string(),
|
|
75
75
|
input: z.record(z.any()).optional(),
|
|
76
76
|
messages: z.array(Message$outboundSchema).optional(),
|
|
77
77
|
status: AgentExecutionStatus$outboundSchema.optional(),
|
|
@@ -21,7 +21,7 @@ export type AgentRunCreate = {
|
|
|
21
21
|
/**
|
|
22
22
|
* The ID of the agent to run.
|
|
23
23
|
*/
|
|
24
|
-
agentId
|
|
24
|
+
agentId: string;
|
|
25
25
|
/**
|
|
26
26
|
* The input to the agent.
|
|
27
27
|
*/
|
|
@@ -38,7 +38,7 @@ export const AgentRunCreate$inboundSchema: z.ZodType<
|
|
|
38
38
|
z.ZodTypeDef,
|
|
39
39
|
unknown
|
|
40
40
|
> = z.object({
|
|
41
|
-
agent_id: z.string()
|
|
41
|
+
agent_id: z.string(),
|
|
42
42
|
input: z.record(z.any()).optional(),
|
|
43
43
|
messages: z.array(Message$inboundSchema).optional(),
|
|
44
44
|
}).transform((v) => {
|
|
@@ -49,7 +49,7 @@ export const AgentRunCreate$inboundSchema: z.ZodType<
|
|
|
49
49
|
|
|
50
50
|
/** @internal */
|
|
51
51
|
export type AgentRunCreate$Outbound = {
|
|
52
|
-
agent_id
|
|
52
|
+
agent_id: string;
|
|
53
53
|
input?: { [k: string]: any } | undefined;
|
|
54
54
|
messages?: Array<Message$Outbound> | undefined;
|
|
55
55
|
};
|
|
@@ -60,7 +60,7 @@ export const AgentRunCreate$outboundSchema: z.ZodType<
|
|
|
60
60
|
z.ZodTypeDef,
|
|
61
61
|
AgentRunCreate
|
|
62
62
|
> = z.object({
|
|
63
|
-
agentId: z.string()
|
|
63
|
+
agentId: z.string(),
|
|
64
64
|
input: z.record(z.any()).optional(),
|
|
65
65
|
messages: z.array(Message$outboundSchema).optional(),
|
|
66
66
|
}).transform((v) => {
|
|
@@ -9,12 +9,12 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* The schema for the agent input. In JSON
|
|
12
|
+
* The schema for the agent input. In JSON schema format.
|
|
13
13
|
*/
|
|
14
14
|
export type InputSchema = {};
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* The schema for the agent output. In JSON
|
|
17
|
+
* The schema for the agent output. In JSON schema format.
|
|
18
18
|
*/
|
|
19
19
|
export type OutputSchema = {};
|
|
20
20
|
|
|
@@ -27,11 +27,11 @@ export type AgentSchemas = {
|
|
|
27
27
|
*/
|
|
28
28
|
agentId: string;
|
|
29
29
|
/**
|
|
30
|
-
* The schema for the agent input. In JSON
|
|
30
|
+
* The schema for the agent input. In JSON schema format.
|
|
31
31
|
*/
|
|
32
32
|
inputSchema: InputSchema;
|
|
33
33
|
/**
|
|
34
|
-
* The schema for the agent output. In JSON
|
|
34
|
+
* The schema for the agent output. In JSON schema format.
|
|
35
35
|
*/
|
|
36
36
|
outputSchema: OutputSchema;
|
|
37
37
|
};
|
|
@@ -24,6 +24,12 @@ import {
|
|
|
24
24
|
ChatRestrictionFilters$Outbound,
|
|
25
25
|
ChatRestrictionFilters$outboundSchema,
|
|
26
26
|
} from "./chatrestrictionfilters.js";
|
|
27
|
+
import {
|
|
28
|
+
SessionInfo,
|
|
29
|
+
SessionInfo$inboundSchema,
|
|
30
|
+
SessionInfo$Outbound,
|
|
31
|
+
SessionInfo$outboundSchema,
|
|
32
|
+
} from "./sessioninfo.js";
|
|
27
33
|
|
|
28
34
|
export type ChatRequest = {
|
|
29
35
|
/**
|
|
@@ -48,6 +54,7 @@ export type ChatRequest = {
|
|
|
48
54
|
* Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer.
|
|
49
55
|
*/
|
|
50
56
|
timeoutMillis?: number | undefined;
|
|
57
|
+
sessionInfo?: SessionInfo | undefined;
|
|
51
58
|
/**
|
|
52
59
|
* The ID of the application this request originates from, used to determine the configuration of underlying chat processes. This should correspond to the ID set during admin setup. If not specified, the default chat experience will be used.
|
|
53
60
|
*/
|
|
@@ -71,6 +78,7 @@ export const ChatRequest$inboundSchema: z.ZodType<
|
|
|
71
78
|
inclusions: ChatRestrictionFilters$inboundSchema.optional(),
|
|
72
79
|
exclusions: ChatRestrictionFilters$inboundSchema.optional(),
|
|
73
80
|
timeoutMillis: z.number().int().optional(),
|
|
81
|
+
sessionInfo: SessionInfo$inboundSchema.optional(),
|
|
74
82
|
applicationId: z.string().optional(),
|
|
75
83
|
stream: z.boolean().optional(),
|
|
76
84
|
});
|
|
@@ -84,6 +92,7 @@ export type ChatRequest$Outbound = {
|
|
|
84
92
|
inclusions?: ChatRestrictionFilters$Outbound | undefined;
|
|
85
93
|
exclusions?: ChatRestrictionFilters$Outbound | undefined;
|
|
86
94
|
timeoutMillis?: number | undefined;
|
|
95
|
+
sessionInfo?: SessionInfo$Outbound | undefined;
|
|
87
96
|
applicationId?: string | undefined;
|
|
88
97
|
stream?: boolean | undefined;
|
|
89
98
|
};
|
|
@@ -101,6 +110,7 @@ export const ChatRequest$outboundSchema: z.ZodType<
|
|
|
101
110
|
inclusions: ChatRestrictionFilters$outboundSchema.optional(),
|
|
102
111
|
exclusions: ChatRestrictionFilters$outboundSchema.optional(),
|
|
103
112
|
timeoutMillis: z.number().int().optional(),
|
|
113
|
+
sessionInfo: SessionInfo$outboundSchema.optional(),
|
|
104
114
|
applicationId: z.string().optional(),
|
|
105
115
|
stream: z.boolean().optional(),
|
|
106
116
|
});
|
|
@@ -9,7 +9,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
9
9
|
|
|
10
10
|
export type SearchAgentsRequest = {
|
|
11
11
|
/**
|
|
12
|
-
* Filters on the name of the agent. If empty, acts as no filter.
|
|
12
|
+
* Filters on the name of the agent. The keyword search is case-insensitive. If search string is ommited or empty, acts as no filter.
|
|
13
13
|
*/
|
|
14
14
|
name?: string | undefined;
|
|
15
15
|
};
|
|
@@ -20,6 +20,10 @@ import {
|
|
|
20
20
|
} from "./person.js";
|
|
21
21
|
|
|
22
22
|
export type Workflow = {
|
|
23
|
+
/**
|
|
24
|
+
* The name of the workflow.
|
|
25
|
+
*/
|
|
26
|
+
name?: string | undefined;
|
|
23
27
|
author?: Person | undefined;
|
|
24
28
|
/**
|
|
25
29
|
* Server Unix timestamp of the creation time.
|
|
@@ -31,10 +35,6 @@ export type Workflow = {
|
|
|
31
35
|
lastUpdateTimestamp?: number | undefined;
|
|
32
36
|
lastUpdatedBy?: Person | undefined;
|
|
33
37
|
permissions?: ObjectPermissions | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* The name of the workflow.
|
|
36
|
-
*/
|
|
37
|
-
name?: string | undefined;
|
|
38
38
|
/**
|
|
39
39
|
* The ID of the workflow.
|
|
40
40
|
*/
|
|
@@ -47,23 +47,23 @@ export const Workflow$inboundSchema: z.ZodType<
|
|
|
47
47
|
z.ZodTypeDef,
|
|
48
48
|
unknown
|
|
49
49
|
> = z.object({
|
|
50
|
+
name: z.string().optional(),
|
|
50
51
|
author: Person$inboundSchema.optional(),
|
|
51
52
|
createTimestamp: z.number().int().optional(),
|
|
52
53
|
lastUpdateTimestamp: z.number().int().optional(),
|
|
53
54
|
lastUpdatedBy: Person$inboundSchema.optional(),
|
|
54
55
|
permissions: ObjectPermissions$inboundSchema.optional(),
|
|
55
|
-
name: z.string().optional(),
|
|
56
56
|
id: z.string().optional(),
|
|
57
57
|
});
|
|
58
58
|
|
|
59
59
|
/** @internal */
|
|
60
60
|
export type Workflow$Outbound = {
|
|
61
|
+
name?: string | undefined;
|
|
61
62
|
author?: Person$Outbound | undefined;
|
|
62
63
|
createTimestamp?: number | undefined;
|
|
63
64
|
lastUpdateTimestamp?: number | undefined;
|
|
64
65
|
lastUpdatedBy?: Person$Outbound | undefined;
|
|
65
66
|
permissions?: ObjectPermissions$Outbound | undefined;
|
|
66
|
-
name?: string | undefined;
|
|
67
67
|
id?: string | undefined;
|
|
68
68
|
};
|
|
69
69
|
|
|
@@ -73,12 +73,12 @@ export const Workflow$outboundSchema: z.ZodType<
|
|
|
73
73
|
z.ZodTypeDef,
|
|
74
74
|
Workflow
|
|
75
75
|
> = z.object({
|
|
76
|
+
name: z.string().optional(),
|
|
76
77
|
author: Person$outboundSchema.optional(),
|
|
77
78
|
createTimestamp: z.number().int().optional(),
|
|
78
79
|
lastUpdateTimestamp: z.number().int().optional(),
|
|
79
80
|
lastUpdatedBy: Person$outboundSchema.optional(),
|
|
80
81
|
permissions: ObjectPermissions$outboundSchema.optional(),
|
|
81
|
-
name: z.string().optional(),
|
|
82
82
|
id: z.string().optional(),
|
|
83
83
|
});
|
|
84
84
|
|
|
@@ -24,10 +24,10 @@ export type ClientAgentsListMutationVariables = {
|
|
|
24
24
|
export type ClientAgentsListMutationData = components.SearchAgentsResponse;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* Search
|
|
27
|
+
* Search agents
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
*
|
|
30
|
+
* Search for [agents](https://developers.glean.com/agents/agents-api) by agent name.
|
|
31
31
|
*/
|
|
32
32
|
export function useClientAgentsListMutation(
|
|
33
33
|
options?: MutationHookOptions<
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
export type ClientAgentsRetrieveQueryData = components.Agent;
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Retrieve an agent
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
*
|
|
34
|
+
* Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder.
|
|
35
35
|
*/
|
|
36
36
|
export function useClientAgentsRetrieve(
|
|
37
37
|
agentId: string,
|
|
@@ -51,10 +51,10 @@ export function useClientAgentsRetrieve(
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Retrieve an agent
|
|
55
55
|
*
|
|
56
56
|
* @remarks
|
|
57
|
-
*
|
|
57
|
+
* Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder.
|
|
58
58
|
*/
|
|
59
59
|
export function useClientAgentsRetrieveSuspense(
|
|
60
60
|
agentId: string,
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
export type ClientAgentsRetrieveSchemasQueryData = components.AgentSchemas;
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* List an agent's schemas
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
*
|
|
34
|
+
* 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.
|
|
35
35
|
*/
|
|
36
36
|
export function useClientAgentsRetrieveSchemas(
|
|
37
37
|
agentId: string,
|
|
@@ -51,10 +51,10 @@ export function useClientAgentsRetrieveSchemas(
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* List an agent's schemas
|
|
55
55
|
*
|
|
56
56
|
* @remarks
|
|
57
|
-
*
|
|
57
|
+
* 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.
|
|
58
58
|
*/
|
|
59
59
|
export function useClientAgentsRetrieveSchemasSuspense(
|
|
60
60
|
agentId: string,
|
|
@@ -24,10 +24,10 @@ export type ClientAgentsRunMutationVariables = {
|
|
|
24
24
|
export type ClientAgentsRunMutationData = components.AgentRunWaitResponse;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* Create
|
|
27
|
+
* Create an [agent](https://developers.glean.com/agents/agents-api) run and wait for the response
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
*
|
|
30
|
+
* Executes an agent run and returns the final response.
|
|
31
31
|
*/
|
|
32
32
|
export function useClientAgentsRunMutation(
|
|
33
33
|
options?: MutationHookOptions<
|
|
@@ -24,10 +24,10 @@ export type ClientAgentsRunStreamMutationVariables = {
|
|
|
24
24
|
export type ClientAgentsRunStreamMutationData = string;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* Create
|
|
27
|
+
* Create an agent run and stream the response
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
*
|
|
30
|
+
* Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE).
|
|
31
31
|
*/
|
|
32
32
|
export function useClientAgentsRunStreamMutation(
|
|
33
33
|
options?: MutationHookOptions<
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
export type ClientGovernanceDataPoliciesDownloadQueryData = string;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Downloads violations CSV for policy
|
|
30
|
+
* Downloads violations CSV for policy
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* Downloads CSV violations report for a specific policy id. This does not support continuous policies.
|
|
@@ -48,7 +48,7 @@ export function useClientGovernanceDataPoliciesDownload(
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* Downloads violations CSV for policy
|
|
51
|
+
* Downloads violations CSV for policy
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
54
|
* Downloads CSV violations report for a specific policy id. This does not support continuous policies.
|
|
@@ -29,7 +29,7 @@ export type ClientGovernanceDataPoliciesListQueryData =
|
|
|
29
29
|
components.ListDlpReportsResponse;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
* Lists policies
|
|
32
|
+
* Lists policies
|
|
33
33
|
*
|
|
34
34
|
* @remarks
|
|
35
35
|
* Lists policies with filtering.
|
|
@@ -52,7 +52,7 @@ export function useClientGovernanceDataPoliciesList(
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
* Lists policies
|
|
55
|
+
* Lists policies
|
|
56
56
|
*
|
|
57
57
|
* @remarks
|
|
58
58
|
* Lists policies with filtering.
|
|
@@ -29,7 +29,7 @@ export type ClientGovernanceDataPoliciesRetrieveQueryData =
|
|
|
29
29
|
components.GetDlpReportResponse;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
* Gets specified
|
|
32
|
+
* Gets specified policy
|
|
33
33
|
*
|
|
34
34
|
* @remarks
|
|
35
35
|
* Fetches the specified policy version, or the latest if no version is provided.
|
|
@@ -52,7 +52,7 @@ export function useClientGovernanceDataPoliciesRetrieve(
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
* Gets specified
|
|
55
|
+
* Gets specified policy
|
|
56
56
|
*
|
|
57
57
|
* @remarks
|
|
58
58
|
* Fetches the specified policy version, or the latest if no version is provided.
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
export type ClientGovernanceDataReportsDownloadQueryData = string;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Downloads violations CSV for report
|
|
30
|
+
* Downloads violations CSV for report
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* Downloads CSV violations report for a specific report id.
|
|
@@ -48,7 +48,7 @@ export function useClientGovernanceDataReportsDownload(
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* Downloads violations CSV for report
|
|
51
|
+
* Downloads violations CSV for report
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
54
|
* Downloads CSV violations report for a specific report id.
|
|
@@ -29,7 +29,7 @@ export type ClientGovernanceDataReportsStatusQueryData =
|
|
|
29
29
|
components.ReportStatusResponse;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
* Fetches report run status
|
|
32
|
+
* Fetches report run status
|
|
33
33
|
*
|
|
34
34
|
* @remarks
|
|
35
35
|
* Fetches the status of the run corresponding to the report-id.
|
|
@@ -50,7 +50,7 @@ export function useClientGovernanceDataReportsStatus(
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
* Fetches report run status
|
|
53
|
+
* Fetches report run status
|
|
54
54
|
*
|
|
55
55
|
* @remarks
|
|
56
56
|
* Fetches the status of the run corresponding to the report-id.
|
|
@@ -26,7 +26,7 @@ export type ClientGovernanceDocumentsVisibilityoverridesCreateMutationData =
|
|
|
26
26
|
components.UpdateDocumentVisibilityOverridesResponse;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Hide
|
|
29
|
+
* Hide or unhide docs
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
32
|
* Sets the visibility-override state of the documents specified, effectively hiding or un-hiding documents.
|
|
@@ -29,7 +29,7 @@ export type ClientGovernanceDocumentsVisibilityoverridesListQueryData =
|
|
|
29
29
|
components.GetDocumentVisibilityOverridesResponse;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
* Fetches documents visibility
|
|
32
|
+
* Fetches documents visibility
|
|
33
33
|
*
|
|
34
34
|
* @remarks
|
|
35
35
|
* Fetches the visibility override status of the documents passed.
|
|
@@ -55,7 +55,7 @@ export function useClientGovernanceDocumentsVisibilityoverridesList(
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
|
-
* Fetches documents visibility
|
|
58
|
+
* Fetches documents visibility
|
|
59
59
|
*
|
|
60
60
|
* @remarks
|
|
61
61
|
* Fetches the visibility override status of the documents passed.
|
package/src/sdk/agents.ts
CHANGED
|
@@ -13,10 +13,10 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
13
13
|
|
|
14
14
|
export class Agents extends ClientSDK {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Retrieve an agent
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
|
-
*
|
|
19
|
+
* Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder.
|
|
20
20
|
*/
|
|
21
21
|
async retrieve(
|
|
22
22
|
agentId: string,
|
|
@@ -32,10 +32,10 @@ export class Agents extends ClientSDK {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* List an agent's schemas
|
|
36
36
|
*
|
|
37
37
|
* @remarks
|
|
38
|
-
*
|
|
38
|
+
* 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.
|
|
39
39
|
*/
|
|
40
40
|
async retrieveSchemas(
|
|
41
41
|
agentId: string,
|
|
@@ -51,10 +51,10 @@ export class Agents extends ClientSDK {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
* Search
|
|
54
|
+
* Search agents
|
|
55
55
|
*
|
|
56
56
|
* @remarks
|
|
57
|
-
*
|
|
57
|
+
* Search for [agents](https://developers.glean.com/agents/agents-api) by agent name.
|
|
58
58
|
*/
|
|
59
59
|
async list(
|
|
60
60
|
request: components.SearchAgentsRequest,
|
|
@@ -68,10 +68,10 @@ export class Agents extends ClientSDK {
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
|
-
* Create
|
|
71
|
+
* Create an agent run and stream the response
|
|
72
72
|
*
|
|
73
73
|
* @remarks
|
|
74
|
-
*
|
|
74
|
+
* Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE).
|
|
75
75
|
*/
|
|
76
76
|
async runStream(
|
|
77
77
|
request: components.AgentRunCreate,
|
|
@@ -85,10 +85,10 @@ export class Agents extends ClientSDK {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
|
-
* Create
|
|
88
|
+
* Create an [agent](https://developers.glean.com/agents/agents-api) run and wait for the response
|
|
89
89
|
*
|
|
90
90
|
* @remarks
|
|
91
|
-
*
|
|
91
|
+
* Executes an agent run and returns the final response.
|
|
92
92
|
*/
|
|
93
93
|
async run(
|
|
94
94
|
request: components.AgentRunCreate,
|