@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
|
@@ -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<
|
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,
|