@copilotkit/runtime-client-gql 0.0.0-feat-dynamic-copilotcloud-qa-20250117190454
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/CHANGELOG.md +925 -0
- package/README.md +46 -0
- package/codegen.ts +22 -0
- package/dist/chunk-256E264G.mjs +24 -0
- package/dist/chunk-256E264G.mjs.map +1 -0
- package/dist/chunk-2TRJILUH.mjs +97 -0
- package/dist/chunk-2TRJILUH.mjs.map +1 -0
- package/dist/chunk-3BOGJG6W.mjs +78 -0
- package/dist/chunk-3BOGJG6W.mjs.map +1 -0
- package/dist/chunk-7ECCT6PK.mjs +1 -0
- package/dist/chunk-7ECCT6PK.mjs.map +1 -0
- package/dist/chunk-AOS57GRG.mjs +54 -0
- package/dist/chunk-AOS57GRG.mjs.map +1 -0
- package/dist/chunk-AXHVBZ73.mjs +200 -0
- package/dist/chunk-AXHVBZ73.mjs.map +1 -0
- package/dist/chunk-IZDC2R6Y.mjs +77 -0
- package/dist/chunk-IZDC2R6Y.mjs.map +1 -0
- package/dist/chunk-WK75ISB2.mjs +18 -0
- package/dist/chunk-WK75ISB2.mjs.map +1 -0
- package/dist/client/CopilotRuntimeClient.d.ts +32 -0
- package/dist/client/CopilotRuntimeClient.js +209 -0
- package/dist/client/CopilotRuntimeClient.js.map +1 -0
- package/dist/client/CopilotRuntimeClient.mjs +11 -0
- package/dist/client/CopilotRuntimeClient.mjs.map +1 -0
- package/dist/client/conversion.d.ts +11 -0
- package/dist/client/conversion.js +296 -0
- package/dist/client/conversion.js.map +1 -0
- package/dist/client/conversion.mjs +17 -0
- package/dist/client/conversion.mjs.map +1 -0
- package/dist/client/index.d.ts +8 -0
- package/dist/client/index.js +499 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/index.mjs +38 -0
- package/dist/client/index.mjs.map +1 -0
- package/dist/client/types.d.ts +55 -0
- package/dist/client/types.js +113 -0
- package/dist/client/types.js.map +1 -0
- package/dist/client/types.mjs +18 -0
- package/dist/client/types.mjs.map +1 -0
- package/dist/graphql/definitions/mutations.d.ts +9 -0
- package/dist/graphql/definitions/mutations.js +113 -0
- package/dist/graphql/definitions/mutations.js.map +1 -0
- package/dist/graphql/definitions/mutations.mjs +9 -0
- package/dist/graphql/definitions/mutations.mjs.map +1 -0
- package/dist/graphql/definitions/queries.d.ts +8 -0
- package/dist/graphql/definitions/queries.js +59 -0
- package/dist/graphql/definitions/queries.js.map +1 -0
- package/dist/graphql/definitions/queries.mjs +9 -0
- package/dist/graphql/definitions/queries.mjs.map +1 -0
- package/dist/graphql-21970cc1.d.ts +422 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +547 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +55 -0
- package/dist/index.mjs.map +1 -0
- package/jest.config.js +5 -0
- package/package.json +77 -0
- package/src/client/CopilotRuntimeClient.ts +126 -0
- package/src/client/conversion.ts +211 -0
- package/src/client/index.ts +10 -0
- package/src/client/types.ts +127 -0
- package/src/graphql/@generated/fragment-masking.ts +87 -0
- package/src/graphql/@generated/gql.ts +47 -0
- package/src/graphql/@generated/graphql.ts +317 -0
- package/src/graphql/@generated/index.ts +2 -0
- package/src/graphql/definitions/mutations.ts +67 -0
- package/src/graphql/definitions/queries.ts +13 -0
- package/src/index.ts +2 -0
- package/tsconfig.json +16 -0
- package/tsup.config.bundled_0x2kmnt4uwn.mjs +59 -0
- package/tsup.config.bundled_qpx2b969p4.mjs +59 -0
- package/tsup.config.ts +33 -0
- package/typedoc.json +4 -0
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { randomId } from "@copilotkit/shared";
|
|
2
|
+
import {
|
|
3
|
+
ActionExecutionMessageInput,
|
|
4
|
+
MessageRole,
|
|
5
|
+
MessageStatus,
|
|
6
|
+
ResultMessageInput,
|
|
7
|
+
TextMessageInput,
|
|
8
|
+
BaseMessageOutput,
|
|
9
|
+
AgentStateMessageInput,
|
|
10
|
+
MessageStatusCode,
|
|
11
|
+
} from "../graphql/@generated/graphql";
|
|
12
|
+
|
|
13
|
+
type MessageType = "TextMessage" | "ActionExecutionMessage" | "ResultMessage" | "AgentStateMessage";
|
|
14
|
+
|
|
15
|
+
export class Message {
|
|
16
|
+
type: MessageType;
|
|
17
|
+
id: BaseMessageOutput["id"];
|
|
18
|
+
createdAt: BaseMessageOutput["createdAt"];
|
|
19
|
+
status: MessageStatus;
|
|
20
|
+
|
|
21
|
+
constructor(props: any) {
|
|
22
|
+
props.id ??= randomId();
|
|
23
|
+
props.status ??= { code: MessageStatusCode.Success };
|
|
24
|
+
props.createdAt ??= new Date();
|
|
25
|
+
Object.assign(this, props);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
isTextMessage(): this is TextMessage {
|
|
29
|
+
return this.type === "TextMessage";
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
isActionExecutionMessage(): this is ActionExecutionMessage {
|
|
33
|
+
return this.type === "ActionExecutionMessage";
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
isResultMessage(): this is ResultMessage {
|
|
37
|
+
return this.type === "ResultMessage";
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
isAgentStateMessage(): this is AgentStateMessage {
|
|
41
|
+
return this.type === "AgentStateMessage";
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// alias Role to MessageRole
|
|
46
|
+
export const Role = MessageRole;
|
|
47
|
+
|
|
48
|
+
// when constructing any message, the base fields are optional
|
|
49
|
+
type MessageConstructorOptions = Partial<Message>;
|
|
50
|
+
|
|
51
|
+
type TextMessageConstructorOptions = MessageConstructorOptions & TextMessageInput;
|
|
52
|
+
|
|
53
|
+
export class TextMessage extends Message implements TextMessageConstructorOptions {
|
|
54
|
+
role: TextMessageInput["role"];
|
|
55
|
+
content: TextMessageInput["content"];
|
|
56
|
+
parentMessageId: TextMessageInput["parentMessageId"];
|
|
57
|
+
|
|
58
|
+
constructor(props: TextMessageConstructorOptions) {
|
|
59
|
+
super(props);
|
|
60
|
+
this.type = "TextMessage";
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
type ActionExecutionMessageConstructorOptions = MessageConstructorOptions &
|
|
65
|
+
Omit<ActionExecutionMessageInput, "arguments"> & {
|
|
66
|
+
arguments: Record<string, any>;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export class ActionExecutionMessage
|
|
70
|
+
extends Message
|
|
71
|
+
implements Omit<ActionExecutionMessageInput, "arguments" | "scope">
|
|
72
|
+
{
|
|
73
|
+
name: ActionExecutionMessageInput["name"];
|
|
74
|
+
arguments: Record<string, any>;
|
|
75
|
+
parentMessageId: ActionExecutionMessageInput["parentMessageId"];
|
|
76
|
+
constructor(props: ActionExecutionMessageConstructorOptions) {
|
|
77
|
+
super(props);
|
|
78
|
+
this.type = "ActionExecutionMessage";
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
type ResultMessageConstructorOptions = MessageConstructorOptions & ResultMessageInput;
|
|
83
|
+
|
|
84
|
+
export class ResultMessage extends Message implements ResultMessageConstructorOptions {
|
|
85
|
+
actionExecutionId: ResultMessageInput["actionExecutionId"];
|
|
86
|
+
actionName: ResultMessageInput["actionName"];
|
|
87
|
+
result: ResultMessageInput["result"];
|
|
88
|
+
|
|
89
|
+
constructor(props: ResultMessageConstructorOptions) {
|
|
90
|
+
super(props);
|
|
91
|
+
this.type = "ResultMessage";
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
static decodeResult(result: string): any {
|
|
95
|
+
try {
|
|
96
|
+
return JSON.parse(result);
|
|
97
|
+
} catch (e) {
|
|
98
|
+
return result;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
static encodeResult(result: any): string {
|
|
103
|
+
if (result === undefined) {
|
|
104
|
+
return "";
|
|
105
|
+
} else if (typeof result === "string") {
|
|
106
|
+
return result;
|
|
107
|
+
} else {
|
|
108
|
+
return JSON.stringify(result);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export class AgentStateMessage extends Message implements Omit<AgentStateMessageInput, "state"> {
|
|
114
|
+
agentName: AgentStateMessageInput["agentName"];
|
|
115
|
+
state: any;
|
|
116
|
+
running: AgentStateMessageInput["running"];
|
|
117
|
+
threadId: AgentStateMessageInput["threadId"];
|
|
118
|
+
role: AgentStateMessageInput["role"];
|
|
119
|
+
nodeName: AgentStateMessageInput["nodeName"];
|
|
120
|
+
runId: AgentStateMessageInput["runId"];
|
|
121
|
+
active: AgentStateMessageInput["active"];
|
|
122
|
+
|
|
123
|
+
constructor(props: any) {
|
|
124
|
+
super(props);
|
|
125
|
+
this.type = "AgentStateMessage";
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ResultOf, DocumentTypeDecoration, TypedDocumentNode } from '@graphql-typed-document-node/core';
|
|
3
|
+
import type { FragmentDefinitionNode } from 'graphql';
|
|
4
|
+
import type { Incremental } from './graphql';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export type FragmentType<TDocumentType extends DocumentTypeDecoration<any, any>> = TDocumentType extends DocumentTypeDecoration<
|
|
8
|
+
infer TType,
|
|
9
|
+
any
|
|
10
|
+
>
|
|
11
|
+
? [TType] extends [{ ' $fragmentName'?: infer TKey }]
|
|
12
|
+
? TKey extends string
|
|
13
|
+
? { ' $fragmentRefs'?: { [key in TKey]: TType } }
|
|
14
|
+
: never
|
|
15
|
+
: never
|
|
16
|
+
: never;
|
|
17
|
+
|
|
18
|
+
// return non-nullable if `fragmentType` is non-nullable
|
|
19
|
+
export function useFragment<TType>(
|
|
20
|
+
_documentNode: DocumentTypeDecoration<TType, any>,
|
|
21
|
+
fragmentType: FragmentType<DocumentTypeDecoration<TType, any>>
|
|
22
|
+
): TType;
|
|
23
|
+
// return nullable if `fragmentType` is undefined
|
|
24
|
+
export function useFragment<TType>(
|
|
25
|
+
_documentNode: DocumentTypeDecoration<TType, any>,
|
|
26
|
+
fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | undefined
|
|
27
|
+
): TType | undefined;
|
|
28
|
+
// return nullable if `fragmentType` is nullable
|
|
29
|
+
export function useFragment<TType>(
|
|
30
|
+
_documentNode: DocumentTypeDecoration<TType, any>,
|
|
31
|
+
fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | null
|
|
32
|
+
): TType | null;
|
|
33
|
+
// return nullable if `fragmentType` is nullable or undefined
|
|
34
|
+
export function useFragment<TType>(
|
|
35
|
+
_documentNode: DocumentTypeDecoration<TType, any>,
|
|
36
|
+
fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | null | undefined
|
|
37
|
+
): TType | null | undefined;
|
|
38
|
+
// return array of non-nullable if `fragmentType` is array of non-nullable
|
|
39
|
+
export function useFragment<TType>(
|
|
40
|
+
_documentNode: DocumentTypeDecoration<TType, any>,
|
|
41
|
+
fragmentType: Array<FragmentType<DocumentTypeDecoration<TType, any>>>
|
|
42
|
+
): Array<TType>;
|
|
43
|
+
// return array of nullable if `fragmentType` is array of nullable
|
|
44
|
+
export function useFragment<TType>(
|
|
45
|
+
_documentNode: DocumentTypeDecoration<TType, any>,
|
|
46
|
+
fragmentType: Array<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined
|
|
47
|
+
): Array<TType> | null | undefined;
|
|
48
|
+
// return readonly array of non-nullable if `fragmentType` is array of non-nullable
|
|
49
|
+
export function useFragment<TType>(
|
|
50
|
+
_documentNode: DocumentTypeDecoration<TType, any>,
|
|
51
|
+
fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>>
|
|
52
|
+
): ReadonlyArray<TType>;
|
|
53
|
+
// return readonly array of nullable if `fragmentType` is array of nullable
|
|
54
|
+
export function useFragment<TType>(
|
|
55
|
+
_documentNode: DocumentTypeDecoration<TType, any>,
|
|
56
|
+
fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined
|
|
57
|
+
): ReadonlyArray<TType> | null | undefined;
|
|
58
|
+
export function useFragment<TType>(
|
|
59
|
+
_documentNode: DocumentTypeDecoration<TType, any>,
|
|
60
|
+
fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | Array<FragmentType<DocumentTypeDecoration<TType, any>>> | ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined
|
|
61
|
+
): TType | Array<TType> | ReadonlyArray<TType> | null | undefined {
|
|
62
|
+
return fragmentType as any;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
export function makeFragmentData<
|
|
67
|
+
F extends DocumentTypeDecoration<any, any>,
|
|
68
|
+
FT extends ResultOf<F>
|
|
69
|
+
>(data: FT, _fragment: F): FragmentType<F> {
|
|
70
|
+
return data as FragmentType<F>;
|
|
71
|
+
}
|
|
72
|
+
export function isFragmentReady<TQuery, TFrag>(
|
|
73
|
+
queryNode: DocumentTypeDecoration<TQuery, any>,
|
|
74
|
+
fragmentNode: TypedDocumentNode<TFrag>,
|
|
75
|
+
data: FragmentType<TypedDocumentNode<Incremental<TFrag>, any>> | null | undefined
|
|
76
|
+
): data is FragmentType<typeof fragmentNode> {
|
|
77
|
+
const deferredFields = (queryNode as { __meta__?: { deferredFields: Record<string, (keyof TFrag)[]> } }).__meta__
|
|
78
|
+
?.deferredFields;
|
|
79
|
+
|
|
80
|
+
if (!deferredFields) return true;
|
|
81
|
+
|
|
82
|
+
const fragDef = fragmentNode.definitions[0] as FragmentDefinitionNode | undefined;
|
|
83
|
+
const fragName = fragDef?.name?.value;
|
|
84
|
+
|
|
85
|
+
const fields = (fragName && deferredFields[fragName]) || [];
|
|
86
|
+
return fields.length > 0 && fields.every(field => data && field in data);
|
|
87
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import * as types from './graphql';
|
|
3
|
+
import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Map of all GraphQL operations in the project.
|
|
7
|
+
*
|
|
8
|
+
* This map has several performance disadvantages:
|
|
9
|
+
* 1. It is not tree-shakeable, so it will include all operations in the project.
|
|
10
|
+
* 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.
|
|
11
|
+
* 3. It does not support dead code elimination, so it will add unused operations.
|
|
12
|
+
*
|
|
13
|
+
* Therefore it is highly recommended to use the babel or swc plugin for production.
|
|
14
|
+
*/
|
|
15
|
+
const documents = {
|
|
16
|
+
"\n mutation generateCopilotResponse($data: GenerateCopilotResponseInput!, $properties: JSONObject) {\n generateCopilotResponse(data: $data, properties: $properties) {\n threadId\n runId\n ... on CopilotResponse @defer {\n status {\n ... on BaseResponseStatus {\n code\n }\n ... on FailedResponseStatus {\n reason\n details\n }\n }\n }\n messages @stream {\n __typename\n ... on BaseMessageOutput {\n id\n createdAt\n }\n ... on BaseMessageOutput @defer {\n status {\n ... on SuccessMessageStatus {\n code\n }\n ... on FailedMessageStatus {\n code\n reason\n }\n ... on PendingMessageStatus {\n code\n }\n }\n }\n ... on TextMessageOutput {\n content @stream\n role\n parentMessageId\n }\n ... on ActionExecutionMessageOutput {\n name\n arguments @stream\n parentMessageId\n }\n ... on ResultMessageOutput {\n result\n actionExecutionId\n actionName\n }\n ... on AgentStateMessageOutput {\n threadId\n state\n running\n agentName\n nodeName\n runId\n active\n role\n }\n }\n }\n }\n": types.GenerateCopilotResponseDocument,
|
|
17
|
+
"\n query availableAgents {\n availableAgents {\n agents {\n name\n id\n description\n }\n }\n }\n": types.AvailableAgentsDocument,
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
22
|
+
*
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* The query argument is unknown!
|
|
30
|
+
* Please regenerate the types.
|
|
31
|
+
*/
|
|
32
|
+
export function graphql(source: string): unknown;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
36
|
+
*/
|
|
37
|
+
export function graphql(source: "\n mutation generateCopilotResponse($data: GenerateCopilotResponseInput!, $properties: JSONObject) {\n generateCopilotResponse(data: $data, properties: $properties) {\n threadId\n runId\n ... on CopilotResponse @defer {\n status {\n ... on BaseResponseStatus {\n code\n }\n ... on FailedResponseStatus {\n reason\n details\n }\n }\n }\n messages @stream {\n __typename\n ... on BaseMessageOutput {\n id\n createdAt\n }\n ... on BaseMessageOutput @defer {\n status {\n ... on SuccessMessageStatus {\n code\n }\n ... on FailedMessageStatus {\n code\n reason\n }\n ... on PendingMessageStatus {\n code\n }\n }\n }\n ... on TextMessageOutput {\n content @stream\n role\n parentMessageId\n }\n ... on ActionExecutionMessageOutput {\n name\n arguments @stream\n parentMessageId\n }\n ... on ResultMessageOutput {\n result\n actionExecutionId\n actionName\n }\n ... on AgentStateMessageOutput {\n threadId\n state\n running\n agentName\n nodeName\n runId\n active\n role\n }\n }\n }\n }\n"): (typeof documents)["\n mutation generateCopilotResponse($data: GenerateCopilotResponseInput!, $properties: JSONObject) {\n generateCopilotResponse(data: $data, properties: $properties) {\n threadId\n runId\n ... on CopilotResponse @defer {\n status {\n ... on BaseResponseStatus {\n code\n }\n ... on FailedResponseStatus {\n reason\n details\n }\n }\n }\n messages @stream {\n __typename\n ... on BaseMessageOutput {\n id\n createdAt\n }\n ... on BaseMessageOutput @defer {\n status {\n ... on SuccessMessageStatus {\n code\n }\n ... on FailedMessageStatus {\n code\n reason\n }\n ... on PendingMessageStatus {\n code\n }\n }\n }\n ... on TextMessageOutput {\n content @stream\n role\n parentMessageId\n }\n ... on ActionExecutionMessageOutput {\n name\n arguments @stream\n parentMessageId\n }\n ... on ResultMessageOutput {\n result\n actionExecutionId\n actionName\n }\n ... on AgentStateMessageOutput {\n threadId\n state\n running\n agentName\n nodeName\n runId\n active\n role\n }\n }\n }\n }\n"];
|
|
38
|
+
/**
|
|
39
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
40
|
+
*/
|
|
41
|
+
export function graphql(source: "\n query availableAgents {\n availableAgents {\n agents {\n name\n id\n description\n }\n }\n }\n"): (typeof documents)["\n query availableAgents {\n availableAgents {\n agents {\n name\n id\n description\n }\n }\n }\n"];
|
|
42
|
+
|
|
43
|
+
export function graphql(source: string) {
|
|
44
|
+
return (documents as any)[source] ?? {};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode< infer TType, any> ? TType : never;
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
3
|
+
export type Maybe<T> = T | null;
|
|
4
|
+
export type InputMaybe<T> = Maybe<T>;
|
|
5
|
+
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
|
|
6
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
|
|
7
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
|
|
8
|
+
export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
|
|
9
|
+
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
|
|
10
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
11
|
+
export type Scalars = {
|
|
12
|
+
ID: { input: string; output: string; }
|
|
13
|
+
String: { input: string; output: string; }
|
|
14
|
+
Boolean: { input: boolean; output: boolean; }
|
|
15
|
+
Int: { input: number; output: number; }
|
|
16
|
+
Float: { input: number; output: number; }
|
|
17
|
+
/** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.This scalar is serialized to a string in ISO 8601 format and parsed from a string in ISO 8601 format. */
|
|
18
|
+
DateTimeISO: { input: any; output: any; }
|
|
19
|
+
/** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
|
|
20
|
+
JSON: { input: any; output: any; }
|
|
21
|
+
/** The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
|
|
22
|
+
JSONObject: { input: any; output: any; }
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export type ActionExecutionMessageInput = {
|
|
26
|
+
arguments: Scalars['String']['input'];
|
|
27
|
+
name: Scalars['String']['input'];
|
|
28
|
+
parentMessageId?: InputMaybe<Scalars['String']['input']>;
|
|
29
|
+
/** @deprecated This field will be removed in a future version */
|
|
30
|
+
scope?: InputMaybe<Scalars['String']['input']>;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export type ActionExecutionMessageOutput = BaseMessageOutput & {
|
|
34
|
+
__typename?: 'ActionExecutionMessageOutput';
|
|
35
|
+
arguments: Array<Scalars['String']['output']>;
|
|
36
|
+
createdAt: Scalars['DateTimeISO']['output'];
|
|
37
|
+
id: Scalars['String']['output'];
|
|
38
|
+
name: Scalars['String']['output'];
|
|
39
|
+
parentMessageId?: Maybe<Scalars['String']['output']>;
|
|
40
|
+
/** @deprecated This field will be removed in a future version */
|
|
41
|
+
scope?: Maybe<Scalars['String']['output']>;
|
|
42
|
+
status: MessageStatus;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export type ActionInput = {
|
|
46
|
+
available?: InputMaybe<ActionInputAvailability>;
|
|
47
|
+
description: Scalars['String']['input'];
|
|
48
|
+
jsonSchema: Scalars['String']['input'];
|
|
49
|
+
name: Scalars['String']['input'];
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** The availability of the frontend action */
|
|
53
|
+
export enum ActionInputAvailability {
|
|
54
|
+
Disabled = 'disabled',
|
|
55
|
+
Enabled = 'enabled',
|
|
56
|
+
Remote = 'remote'
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type Agent = {
|
|
60
|
+
__typename?: 'Agent';
|
|
61
|
+
description: Scalars['String']['output'];
|
|
62
|
+
id: Scalars['String']['output'];
|
|
63
|
+
name: Scalars['String']['output'];
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export type AgentSessionInput = {
|
|
67
|
+
agentName: Scalars['String']['input'];
|
|
68
|
+
nodeName?: InputMaybe<Scalars['String']['input']>;
|
|
69
|
+
threadId?: InputMaybe<Scalars['String']['input']>;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export type AgentStateInput = {
|
|
73
|
+
agentName: Scalars['String']['input'];
|
|
74
|
+
state: Scalars['String']['input'];
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export type AgentStateMessageInput = {
|
|
78
|
+
active: Scalars['Boolean']['input'];
|
|
79
|
+
agentName: Scalars['String']['input'];
|
|
80
|
+
nodeName: Scalars['String']['input'];
|
|
81
|
+
role: MessageRole;
|
|
82
|
+
runId: Scalars['String']['input'];
|
|
83
|
+
running: Scalars['Boolean']['input'];
|
|
84
|
+
state: Scalars['String']['input'];
|
|
85
|
+
threadId: Scalars['String']['input'];
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export type AgentStateMessageOutput = BaseMessageOutput & {
|
|
89
|
+
__typename?: 'AgentStateMessageOutput';
|
|
90
|
+
active: Scalars['Boolean']['output'];
|
|
91
|
+
agentName: Scalars['String']['output'];
|
|
92
|
+
createdAt: Scalars['DateTimeISO']['output'];
|
|
93
|
+
id: Scalars['String']['output'];
|
|
94
|
+
nodeName: Scalars['String']['output'];
|
|
95
|
+
role: MessageRole;
|
|
96
|
+
runId: Scalars['String']['output'];
|
|
97
|
+
running: Scalars['Boolean']['output'];
|
|
98
|
+
state: Scalars['String']['output'];
|
|
99
|
+
status: MessageStatus;
|
|
100
|
+
threadId: Scalars['String']['output'];
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
export type AgentsResponse = {
|
|
104
|
+
__typename?: 'AgentsResponse';
|
|
105
|
+
agents: Array<Agent>;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
export type BaseMessageOutput = {
|
|
109
|
+
createdAt: Scalars['DateTimeISO']['output'];
|
|
110
|
+
id: Scalars['String']['output'];
|
|
111
|
+
status: MessageStatus;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export type BaseResponseStatus = {
|
|
115
|
+
code: ResponseStatusCode;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
export type CloudInput = {
|
|
119
|
+
guardrails?: InputMaybe<GuardrailsInput>;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/** The type of Copilot request */
|
|
123
|
+
export enum CopilotRequestType {
|
|
124
|
+
Chat = 'Chat',
|
|
125
|
+
Suggestion = 'Suggestion',
|
|
126
|
+
Task = 'Task',
|
|
127
|
+
TextareaCompletion = 'TextareaCompletion',
|
|
128
|
+
TextareaPopover = 'TextareaPopover'
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export type CopilotResponse = {
|
|
132
|
+
__typename?: 'CopilotResponse';
|
|
133
|
+
messages: Array<BaseMessageOutput>;
|
|
134
|
+
runId?: Maybe<Scalars['String']['output']>;
|
|
135
|
+
status: ResponseStatus;
|
|
136
|
+
threadId: Scalars['String']['output'];
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
export type FailedMessageStatus = {
|
|
140
|
+
__typename?: 'FailedMessageStatus';
|
|
141
|
+
code: MessageStatusCode;
|
|
142
|
+
reason: Scalars['String']['output'];
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
export type FailedResponseStatus = BaseResponseStatus & {
|
|
146
|
+
__typename?: 'FailedResponseStatus';
|
|
147
|
+
code: ResponseStatusCode;
|
|
148
|
+
details?: Maybe<Scalars['JSON']['output']>;
|
|
149
|
+
reason: FailedResponseStatusReason;
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
export enum FailedResponseStatusReason {
|
|
153
|
+
GuardrailsValidationFailed = 'GUARDRAILS_VALIDATION_FAILED',
|
|
154
|
+
MessageStreamInterrupted = 'MESSAGE_STREAM_INTERRUPTED',
|
|
155
|
+
UnknownError = 'UNKNOWN_ERROR'
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export type ForwardedParametersInput = {
|
|
159
|
+
maxTokens?: InputMaybe<Scalars['Float']['input']>;
|
|
160
|
+
model?: InputMaybe<Scalars['String']['input']>;
|
|
161
|
+
stop?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
162
|
+
temperature?: InputMaybe<Scalars['Float']['input']>;
|
|
163
|
+
toolChoice?: InputMaybe<Scalars['String']['input']>;
|
|
164
|
+
toolChoiceFunctionName?: InputMaybe<Scalars['String']['input']>;
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
export type FrontendInput = {
|
|
168
|
+
actions: Array<ActionInput>;
|
|
169
|
+
toDeprecate_fullContext?: InputMaybe<Scalars['String']['input']>;
|
|
170
|
+
url?: InputMaybe<Scalars['String']['input']>;
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export type GenerateCopilotResponseInput = {
|
|
174
|
+
agentSession?: InputMaybe<AgentSessionInput>;
|
|
175
|
+
agentState?: InputMaybe<AgentStateInput>;
|
|
176
|
+
agentStates?: InputMaybe<Array<AgentStateInput>>;
|
|
177
|
+
cloud?: InputMaybe<CloudInput>;
|
|
178
|
+
forwardedParameters?: InputMaybe<ForwardedParametersInput>;
|
|
179
|
+
frontend: FrontendInput;
|
|
180
|
+
messages: Array<MessageInput>;
|
|
181
|
+
metadata: GenerateCopilotResponseMetadataInput;
|
|
182
|
+
runId?: InputMaybe<Scalars['String']['input']>;
|
|
183
|
+
threadId?: InputMaybe<Scalars['String']['input']>;
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
export type GenerateCopilotResponseMetadataInput = {
|
|
187
|
+
requestType?: InputMaybe<CopilotRequestType>;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
export type GuardrailsInput = {
|
|
191
|
+
inputValidationRules: GuardrailsRuleInput;
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
export type GuardrailsRuleInput = {
|
|
195
|
+
allowList?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
196
|
+
denyList?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
export type MessageInput = {
|
|
200
|
+
actionExecutionMessage?: InputMaybe<ActionExecutionMessageInput>;
|
|
201
|
+
agentStateMessage?: InputMaybe<AgentStateMessageInput>;
|
|
202
|
+
createdAt: Scalars['DateTimeISO']['input'];
|
|
203
|
+
id: Scalars['String']['input'];
|
|
204
|
+
resultMessage?: InputMaybe<ResultMessageInput>;
|
|
205
|
+
textMessage?: InputMaybe<TextMessageInput>;
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
/** The role of the message */
|
|
209
|
+
export enum MessageRole {
|
|
210
|
+
Assistant = 'assistant',
|
|
211
|
+
System = 'system',
|
|
212
|
+
Tool = 'tool',
|
|
213
|
+
User = 'user'
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export type MessageStatus = FailedMessageStatus | PendingMessageStatus | SuccessMessageStatus;
|
|
217
|
+
|
|
218
|
+
export enum MessageStatusCode {
|
|
219
|
+
Failed = 'Failed',
|
|
220
|
+
Pending = 'Pending',
|
|
221
|
+
Success = 'Success'
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export type Mutation = {
|
|
225
|
+
__typename?: 'Mutation';
|
|
226
|
+
generateCopilotResponse: CopilotResponse;
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
export type MutationGenerateCopilotResponseArgs = {
|
|
231
|
+
data: GenerateCopilotResponseInput;
|
|
232
|
+
properties?: InputMaybe<Scalars['JSONObject']['input']>;
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
export type PendingMessageStatus = {
|
|
236
|
+
__typename?: 'PendingMessageStatus';
|
|
237
|
+
code: MessageStatusCode;
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
export type PendingResponseStatus = BaseResponseStatus & {
|
|
241
|
+
__typename?: 'PendingResponseStatus';
|
|
242
|
+
code: ResponseStatusCode;
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
export type Query = {
|
|
246
|
+
__typename?: 'Query';
|
|
247
|
+
availableAgents: AgentsResponse;
|
|
248
|
+
hello: Scalars['String']['output'];
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
export type ResponseStatus = FailedResponseStatus | PendingResponseStatus | SuccessResponseStatus;
|
|
252
|
+
|
|
253
|
+
export enum ResponseStatusCode {
|
|
254
|
+
Failed = 'Failed',
|
|
255
|
+
Pending = 'Pending',
|
|
256
|
+
Success = 'Success'
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export type ResultMessageInput = {
|
|
260
|
+
actionExecutionId: Scalars['String']['input'];
|
|
261
|
+
actionName: Scalars['String']['input'];
|
|
262
|
+
parentMessageId?: InputMaybe<Scalars['String']['input']>;
|
|
263
|
+
result: Scalars['String']['input'];
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
export type ResultMessageOutput = BaseMessageOutput & {
|
|
267
|
+
__typename?: 'ResultMessageOutput';
|
|
268
|
+
actionExecutionId: Scalars['String']['output'];
|
|
269
|
+
actionName: Scalars['String']['output'];
|
|
270
|
+
createdAt: Scalars['DateTimeISO']['output'];
|
|
271
|
+
id: Scalars['String']['output'];
|
|
272
|
+
result: Scalars['String']['output'];
|
|
273
|
+
status: MessageStatus;
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
export type SuccessMessageStatus = {
|
|
277
|
+
__typename?: 'SuccessMessageStatus';
|
|
278
|
+
code: MessageStatusCode;
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
export type SuccessResponseStatus = BaseResponseStatus & {
|
|
282
|
+
__typename?: 'SuccessResponseStatus';
|
|
283
|
+
code: ResponseStatusCode;
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
export type TextMessageInput = {
|
|
287
|
+
content: Scalars['String']['input'];
|
|
288
|
+
parentMessageId?: InputMaybe<Scalars['String']['input']>;
|
|
289
|
+
role: MessageRole;
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
export type TextMessageOutput = BaseMessageOutput & {
|
|
293
|
+
__typename?: 'TextMessageOutput';
|
|
294
|
+
content: Array<Scalars['String']['output']>;
|
|
295
|
+
createdAt: Scalars['DateTimeISO']['output'];
|
|
296
|
+
id: Scalars['String']['output'];
|
|
297
|
+
parentMessageId?: Maybe<Scalars['String']['output']>;
|
|
298
|
+
role: MessageRole;
|
|
299
|
+
status: MessageStatus;
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
export type GenerateCopilotResponseMutationVariables = Exact<{
|
|
303
|
+
data: GenerateCopilotResponseInput;
|
|
304
|
+
properties?: InputMaybe<Scalars['JSONObject']['input']>;
|
|
305
|
+
}>;
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
export type GenerateCopilotResponseMutation = { __typename?: 'Mutation', generateCopilotResponse: { __typename?: 'CopilotResponse', threadId: string, runId?: string | null, messages: Array<{ __typename: 'ActionExecutionMessageOutput', id: string, createdAt: any, name: string, arguments: Array<string>, parentMessageId?: string | null, status: { __typename?: 'FailedMessageStatus', code: MessageStatusCode, reason: string } | { __typename?: 'PendingMessageStatus', code: MessageStatusCode } | { __typename?: 'SuccessMessageStatus', code: MessageStatusCode } } | { __typename: 'AgentStateMessageOutput', id: string, createdAt: any, threadId: string, state: string, running: boolean, agentName: string, nodeName: string, runId: string, active: boolean, role: MessageRole, status: { __typename?: 'FailedMessageStatus', code: MessageStatusCode, reason: string } | { __typename?: 'PendingMessageStatus', code: MessageStatusCode } | { __typename?: 'SuccessMessageStatus', code: MessageStatusCode } } | { __typename: 'ResultMessageOutput', id: string, createdAt: any, result: string, actionExecutionId: string, actionName: string, status: { __typename?: 'FailedMessageStatus', code: MessageStatusCode, reason: string } | { __typename?: 'PendingMessageStatus', code: MessageStatusCode } | { __typename?: 'SuccessMessageStatus', code: MessageStatusCode } } | { __typename: 'TextMessageOutput', id: string, createdAt: any, content: Array<string>, role: MessageRole, parentMessageId?: string | null, status: { __typename?: 'FailedMessageStatus', code: MessageStatusCode, reason: string } | { __typename?: 'PendingMessageStatus', code: MessageStatusCode } | { __typename?: 'SuccessMessageStatus', code: MessageStatusCode } }> } & ({ __typename?: 'CopilotResponse', status: { __typename?: 'FailedResponseStatus', code: ResponseStatusCode, reason: FailedResponseStatusReason, details?: any | null } | { __typename?: 'PendingResponseStatus', code: ResponseStatusCode } | { __typename?: 'SuccessResponseStatus', code: ResponseStatusCode } } | { __typename?: 'CopilotResponse', status?: never }) };
|
|
309
|
+
|
|
310
|
+
export type AvailableAgentsQueryVariables = Exact<{ [key: string]: never; }>;
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
export type AvailableAgentsQuery = { __typename?: 'Query', availableAgents: { __typename?: 'AgentsResponse', agents: Array<{ __typename?: 'Agent', name: string, id: string, description: string }> } };
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
export const GenerateCopilotResponseDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"generateCopilotResponse"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"data"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"GenerateCopilotResponseInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"properties"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"JSONObject"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"generateCopilotResponse"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data"},"value":{"kind":"Variable","name":{"kind":"Name","value":"data"}}},{"kind":"Argument","name":{"kind":"Name","value":"properties"},"value":{"kind":"Variable","name":{"kind":"Name","value":"properties"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"runId"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CopilotResponse"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BaseResponseStatus"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FailedResponseStatus"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"details"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"messages"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"stream"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BaseMessageOutput"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BaseMessageOutput"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SuccessMessageStatus"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FailedMessageStatus"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"reason"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PendingMessageStatus"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}}]}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TextMessageOutput"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"content"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"stream"}}]},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"parentMessageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ActionExecutionMessageOutput"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"arguments"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"stream"}}]},{"kind":"Field","name":{"kind":"Name","value":"parentMessageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ResultMessageOutput"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"result"}},{"kind":"Field","name":{"kind":"Name","value":"actionExecutionId"}},{"kind":"Field","name":{"kind":"Name","value":"actionName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AgentStateMessageOutput"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"state"}},{"kind":"Field","name":{"kind":"Name","value":"running"}},{"kind":"Field","name":{"kind":"Name","value":"agentName"}},{"kind":"Field","name":{"kind":"Name","value":"nodeName"}},{"kind":"Field","name":{"kind":"Name","value":"runId"}},{"kind":"Field","name":{"kind":"Name","value":"active"}},{"kind":"Field","name":{"kind":"Name","value":"role"}}]}}]}}]}}]}}]} as unknown as DocumentNode<GenerateCopilotResponseMutation, GenerateCopilotResponseMutationVariables>;
|
|
317
|
+
export const AvailableAgentsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"availableAgents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"availableAgents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"agents"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]}}]}}]} as unknown as DocumentNode<AvailableAgentsQuery, AvailableAgentsQueryVariables>;
|