@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.
Files changed (86) hide show
  1. package/README.md +15 -15
  2. package/dist/commonjs/funcs/clientAgentsList.d.ts +2 -2
  3. package/dist/commonjs/funcs/clientAgentsList.js +2 -2
  4. package/dist/commonjs/funcs/clientAgentsRetrieve.d.ts +2 -2
  5. package/dist/commonjs/funcs/clientAgentsRetrieve.js +2 -2
  6. package/dist/commonjs/funcs/clientAgentsRetrieveSchemas.d.ts +2 -2
  7. package/dist/commonjs/funcs/clientAgentsRetrieveSchemas.js +2 -2
  8. package/dist/commonjs/funcs/clientAgentsRun.d.ts +2 -2
  9. package/dist/commonjs/funcs/clientAgentsRun.js +2 -2
  10. package/dist/commonjs/funcs/clientAgentsRunStream.d.ts +2 -2
  11. package/dist/commonjs/funcs/clientAgentsRunStream.js +2 -2
  12. package/dist/commonjs/lib/config.d.ts +2 -2
  13. package/dist/commonjs/lib/config.js +2 -2
  14. package/dist/commonjs/models/components/agent.d.ts +16 -6
  15. package/dist/commonjs/models/components/agent.d.ts.map +1 -1
  16. package/dist/commonjs/models/components/agent.js.map +1 -1
  17. package/dist/commonjs/models/components/agentschemas.d.ts +4 -4
  18. package/dist/commonjs/models/components/searchagentsrequest.d.ts +1 -1
  19. package/dist/commonjs/models/components/workflow.d.ts +5 -5
  20. package/dist/commonjs/models/components/workflow.d.ts.map +1 -1
  21. package/dist/commonjs/models/components/workflow.js +2 -2
  22. package/dist/commonjs/models/components/workflow.js.map +1 -1
  23. package/dist/commonjs/react-query/clientAgentsList.d.ts +2 -2
  24. package/dist/commonjs/react-query/clientAgentsList.js +2 -2
  25. package/dist/commonjs/react-query/clientAgentsRetrieve.d.ts +4 -4
  26. package/dist/commonjs/react-query/clientAgentsRetrieve.js +4 -4
  27. package/dist/commonjs/react-query/clientAgentsRetrieveSchemas.d.ts +4 -4
  28. package/dist/commonjs/react-query/clientAgentsRetrieveSchemas.js +4 -4
  29. package/dist/commonjs/react-query/clientAgentsRun.d.ts +2 -2
  30. package/dist/commonjs/react-query/clientAgentsRun.js +2 -2
  31. package/dist/commonjs/react-query/clientAgentsRunStream.d.ts +2 -2
  32. package/dist/commonjs/react-query/clientAgentsRunStream.js +2 -2
  33. package/dist/commonjs/sdk/agents.d.ts +10 -10
  34. package/dist/commonjs/sdk/agents.js +10 -10
  35. package/dist/esm/funcs/clientAgentsList.d.ts +2 -2
  36. package/dist/esm/funcs/clientAgentsList.js +2 -2
  37. package/dist/esm/funcs/clientAgentsRetrieve.d.ts +2 -2
  38. package/dist/esm/funcs/clientAgentsRetrieve.js +2 -2
  39. package/dist/esm/funcs/clientAgentsRetrieveSchemas.d.ts +2 -2
  40. package/dist/esm/funcs/clientAgentsRetrieveSchemas.js +2 -2
  41. package/dist/esm/funcs/clientAgentsRun.d.ts +2 -2
  42. package/dist/esm/funcs/clientAgentsRun.js +2 -2
  43. package/dist/esm/funcs/clientAgentsRunStream.d.ts +2 -2
  44. package/dist/esm/funcs/clientAgentsRunStream.js +2 -2
  45. package/dist/esm/lib/config.d.ts +2 -2
  46. package/dist/esm/lib/config.js +2 -2
  47. package/dist/esm/models/components/agent.d.ts +16 -6
  48. package/dist/esm/models/components/agent.d.ts.map +1 -1
  49. package/dist/esm/models/components/agent.js.map +1 -1
  50. package/dist/esm/models/components/agentschemas.d.ts +4 -4
  51. package/dist/esm/models/components/searchagentsrequest.d.ts +1 -1
  52. package/dist/esm/models/components/workflow.d.ts +5 -5
  53. package/dist/esm/models/components/workflow.d.ts.map +1 -1
  54. package/dist/esm/models/components/workflow.js +2 -2
  55. package/dist/esm/models/components/workflow.js.map +1 -1
  56. package/dist/esm/react-query/clientAgentsList.d.ts +2 -2
  57. package/dist/esm/react-query/clientAgentsList.js +2 -2
  58. package/dist/esm/react-query/clientAgentsRetrieve.d.ts +4 -4
  59. package/dist/esm/react-query/clientAgentsRetrieve.js +4 -4
  60. package/dist/esm/react-query/clientAgentsRetrieveSchemas.d.ts +4 -4
  61. package/dist/esm/react-query/clientAgentsRetrieveSchemas.js +4 -4
  62. package/dist/esm/react-query/clientAgentsRun.d.ts +2 -2
  63. package/dist/esm/react-query/clientAgentsRun.js +2 -2
  64. package/dist/esm/react-query/clientAgentsRunStream.d.ts +2 -2
  65. package/dist/esm/react-query/clientAgentsRunStream.js +2 -2
  66. package/dist/esm/sdk/agents.d.ts +10 -10
  67. package/dist/esm/sdk/agents.js +10 -10
  68. package/docs/sdks/agents/README.md +16 -12
  69. package/jsr.json +1 -1
  70. package/package.json +1 -1
  71. package/src/funcs/clientAgentsList.ts +2 -2
  72. package/src/funcs/clientAgentsRetrieve.ts +2 -2
  73. package/src/funcs/clientAgentsRetrieveSchemas.ts +2 -2
  74. package/src/funcs/clientAgentsRun.ts +2 -2
  75. package/src/funcs/clientAgentsRunStream.ts +2 -2
  76. package/src/lib/config.ts +2 -2
  77. package/src/models/components/agent.ts +16 -6
  78. package/src/models/components/agentschemas.ts +4 -4
  79. package/src/models/components/searchagentsrequest.ts +1 -1
  80. package/src/models/components/workflow.ts +7 -7
  81. package/src/react-query/clientAgentsList.ts +2 -2
  82. package/src/react-query/clientAgentsRetrieve.ts +4 -4
  83. package/src/react-query/clientAgentsRetrieveSchemas.ts +4 -4
  84. package/src/react-query/clientAgentsRun.ts +2 -2
  85. package/src/react-query/clientAgentsRunStream.ts +2 -2
  86. package/src/sdk/agents.ts +10 -10
@@ -28,10 +28,10 @@ import {
28
28
  export type ClientAgentsRetrieveQueryData = components.Agent;
29
29
 
30
30
  /**
31
- * Get Agent
31
+ * Retrieve an agent
32
32
  *
33
33
  * @remarks
34
- * 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.
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
- * Get Agent
54
+ * Retrieve an agent
55
55
  *
56
56
  * @remarks
57
- * 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.
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
- * Get Agent Schemas
31
+ * List an agent's schemas
32
32
  *
33
33
  * @remarks
34
- * 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.
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
- * Get Agent Schemas
54
+ * List an agent's schemas
55
55
  *
56
56
  * @remarks
57
- * 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.
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 Run, Wait for Output
27
+ * Create an [agent](https://developers.glean.com/agents/agents-api) run and wait for the response
28
28
  *
29
29
  * @remarks
30
- * 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.
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 Run, Stream Output
27
+ * Create an agent run and stream the response
28
28
  *
29
29
  * @remarks
30
- * 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.
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
- * Get Agent
16
+ * Retrieve an agent
17
17
  *
18
18
  * @remarks
19
- * 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.
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
- * Get Agent Schemas
35
+ * List an agent's schemas
36
36
  *
37
37
  * @remarks
38
- * 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.
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 Agents
54
+ * Search agents
55
55
  *
56
56
  * @remarks
57
- * 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.
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 Run, Stream Output
71
+ * Create an agent run and stream the response
72
72
  *
73
73
  * @remarks
74
- * 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.
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 Run, Wait for Output
88
+ * Create an [agent](https://developers.glean.com/agents/agents-api) run and wait for the response
89
89
  *
90
90
  * @remarks
91
- * 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.
91
+ * Executes an agent run and returns the final response.
92
92
  */
93
93
  async run(
94
94
  request: components.AgentRunCreate,