@copilotkit/runtime-client-gql 1.53.1-next.0 → 1.53.1-next.2
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 +12 -0
- package/dist/index.umd.js +1 -1
- package/dist/package.cjs +1 -1
- package/dist/package.mjs +1 -1
- package/package.json +2 -2
- package/src/graphql/@generated/fragment-masking.ts +87 -0
- package/src/graphql/@generated/gql.ts +58 -0
- package/src/graphql/@generated/graphql.ts +435 -0
- package/src/graphql/@generated/index.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @copilotkit/runtime-client-gql
|
|
2
2
|
|
|
3
|
+
## 1.53.1-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @copilotkit/shared@1.53.1-next.2
|
|
8
|
+
|
|
9
|
+
## 1.53.1-next.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- @copilotkit/shared@1.53.1-next.1
|
|
14
|
+
|
|
3
15
|
## 1.53.1-next.0
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.umd.js
CHANGED
|
@@ -34,7 +34,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
34
34
|
untruncate_json = __toESM(untruncate_json);
|
|
35
35
|
|
|
36
36
|
//#region package.json
|
|
37
|
-
var version = "1.53.1-next.
|
|
37
|
+
var version = "1.53.1-next.2";
|
|
38
38
|
|
|
39
39
|
//#endregion
|
|
40
40
|
//#region src/graphql/@generated/graphql.ts
|
package/dist/package.cjs
CHANGED
package/dist/package.mjs
CHANGED
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
|
-
"version": "1.53.1-next.
|
|
12
|
+
"version": "1.53.1-next.2",
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"main": "./dist/index.cjs",
|
|
15
15
|
"module": "./dist/index.mjs",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@urql/core": "^5.0.3",
|
|
51
51
|
"untruncate-json": "^0.0.1",
|
|
52
52
|
"urql": "^4.1.0",
|
|
53
|
-
"@copilotkit/shared": "1.53.1-next.
|
|
53
|
+
"@copilotkit/shared": "1.53.1-next.2"
|
|
54
54
|
},
|
|
55
55
|
"keywords": [
|
|
56
56
|
"copilotkit",
|
|
@@ -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,58 @@
|
|
|
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
|
+
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
|
|
15
|
+
*/
|
|
16
|
+
type Documents = {
|
|
17
|
+
"\n mutation generateCopilotResponse(\n $data: GenerateCopilotResponseInput!\n $properties: JSONObject\n ) {\n generateCopilotResponse(data: $data, properties: $properties) {\n threadId\n runId\n extensions {\n openaiAssistantAPI {\n runId\n threadId\n }\n }\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 ImageMessageOutput {\n format\n bytes\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 metaEvents @stream {\n ... on LangGraphInterruptEvent {\n type\n name\n value\n }\n\n ... on CopilotKitLangGraphInterruptEvent {\n type\n name\n data {\n messages {\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\n role\n parentMessageId\n }\n ... on ActionExecutionMessageOutput {\n name\n arguments\n parentMessageId\n }\n ... on ResultMessageOutput {\n result\n actionExecutionId\n actionName\n }\n }\n value\n }\n }\n }\n }\n }\n": typeof types.GenerateCopilotResponseDocument,
|
|
18
|
+
"\n query availableAgents {\n availableAgents {\n agents {\n name\n id\n description\n }\n }\n }\n": typeof types.AvailableAgentsDocument,
|
|
19
|
+
"\n query loadAgentState($data: LoadAgentStateInput!) {\n loadAgentState(data: $data) {\n threadId\n threadExists\n state\n messages\n }\n }\n": typeof types.LoadAgentStateDocument,
|
|
20
|
+
};
|
|
21
|
+
const documents: Documents = {
|
|
22
|
+
"\n mutation generateCopilotResponse(\n $data: GenerateCopilotResponseInput!\n $properties: JSONObject\n ) {\n generateCopilotResponse(data: $data, properties: $properties) {\n threadId\n runId\n extensions {\n openaiAssistantAPI {\n runId\n threadId\n }\n }\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 ImageMessageOutput {\n format\n bytes\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 metaEvents @stream {\n ... on LangGraphInterruptEvent {\n type\n name\n value\n }\n\n ... on CopilotKitLangGraphInterruptEvent {\n type\n name\n data {\n messages {\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\n role\n parentMessageId\n }\n ... on ActionExecutionMessageOutput {\n name\n arguments\n parentMessageId\n }\n ... on ResultMessageOutput {\n result\n actionExecutionId\n actionName\n }\n }\n value\n }\n }\n }\n }\n }\n": types.GenerateCopilotResponseDocument,
|
|
23
|
+
"\n query availableAgents {\n availableAgents {\n agents {\n name\n id\n description\n }\n }\n }\n": types.AvailableAgentsDocument,
|
|
24
|
+
"\n query loadAgentState($data: LoadAgentStateInput!) {\n loadAgentState(data: $data) {\n threadId\n threadExists\n state\n messages\n }\n }\n": types.LoadAgentStateDocument,
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
29
|
+
*
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* The query argument is unknown!
|
|
37
|
+
* Please regenerate the types.
|
|
38
|
+
*/
|
|
39
|
+
export function graphql(source: string): unknown;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
43
|
+
*/
|
|
44
|
+
export function graphql(source: "\n mutation generateCopilotResponse(\n $data: GenerateCopilotResponseInput!\n $properties: JSONObject\n ) {\n generateCopilotResponse(data: $data, properties: $properties) {\n threadId\n runId\n extensions {\n openaiAssistantAPI {\n runId\n threadId\n }\n }\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 ImageMessageOutput {\n format\n bytes\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 metaEvents @stream {\n ... on LangGraphInterruptEvent {\n type\n name\n value\n }\n\n ... on CopilotKitLangGraphInterruptEvent {\n type\n name\n data {\n messages {\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\n role\n parentMessageId\n }\n ... on ActionExecutionMessageOutput {\n name\n arguments\n parentMessageId\n }\n ... on ResultMessageOutput {\n result\n actionExecutionId\n actionName\n }\n }\n value\n }\n }\n }\n }\n }\n"): (typeof documents)["\n mutation generateCopilotResponse(\n $data: GenerateCopilotResponseInput!\n $properties: JSONObject\n ) {\n generateCopilotResponse(data: $data, properties: $properties) {\n threadId\n runId\n extensions {\n openaiAssistantAPI {\n runId\n threadId\n }\n }\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 ImageMessageOutput {\n format\n bytes\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 metaEvents @stream {\n ... on LangGraphInterruptEvent {\n type\n name\n value\n }\n\n ... on CopilotKitLangGraphInterruptEvent {\n type\n name\n data {\n messages {\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\n role\n parentMessageId\n }\n ... on ActionExecutionMessageOutput {\n name\n arguments\n parentMessageId\n }\n ... on ResultMessageOutput {\n result\n actionExecutionId\n actionName\n }\n }\n value\n }\n }\n }\n }\n }\n"];
|
|
45
|
+
/**
|
|
46
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
47
|
+
*/
|
|
48
|
+
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"];
|
|
49
|
+
/**
|
|
50
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
51
|
+
*/
|
|
52
|
+
export function graphql(source: "\n query loadAgentState($data: LoadAgentStateInput!) {\n loadAgentState(data: $data) {\n threadId\n threadExists\n state\n messages\n }\n }\n"): (typeof documents)["\n query loadAgentState($data: LoadAgentStateInput!) {\n loadAgentState(data: $data) {\n threadId\n threadExists\n state\n messages\n }\n }\n"];
|
|
53
|
+
|
|
54
|
+
export function graphql(source: string) {
|
|
55
|
+
return (documents as any)[source] ?? {};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode< infer TType, any> ? TType : never;
|
|
@@ -0,0 +1,435 @@
|
|
|
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
|
+
config?: InputMaybe<Scalars['String']['input']>;
|
|
75
|
+
state: Scalars['String']['input'];
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export type AgentStateMessageInput = {
|
|
79
|
+
active: Scalars['Boolean']['input'];
|
|
80
|
+
agentName: Scalars['String']['input'];
|
|
81
|
+
nodeName: Scalars['String']['input'];
|
|
82
|
+
role: MessageRole;
|
|
83
|
+
runId: Scalars['String']['input'];
|
|
84
|
+
running: Scalars['Boolean']['input'];
|
|
85
|
+
state: Scalars['String']['input'];
|
|
86
|
+
threadId: Scalars['String']['input'];
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export type AgentStateMessageOutput = BaseMessageOutput & {
|
|
90
|
+
__typename?: 'AgentStateMessageOutput';
|
|
91
|
+
active: Scalars['Boolean']['output'];
|
|
92
|
+
agentName: Scalars['String']['output'];
|
|
93
|
+
createdAt: Scalars['DateTimeISO']['output'];
|
|
94
|
+
id: Scalars['String']['output'];
|
|
95
|
+
nodeName: Scalars['String']['output'];
|
|
96
|
+
role: MessageRole;
|
|
97
|
+
runId: Scalars['String']['output'];
|
|
98
|
+
running: Scalars['Boolean']['output'];
|
|
99
|
+
state: Scalars['String']['output'];
|
|
100
|
+
status: MessageStatus;
|
|
101
|
+
threadId: Scalars['String']['output'];
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export type AgentsResponse = {
|
|
105
|
+
__typename?: 'AgentsResponse';
|
|
106
|
+
agents: Array<Agent>;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export type BaseMessageOutput = {
|
|
110
|
+
createdAt: Scalars['DateTimeISO']['output'];
|
|
111
|
+
id: Scalars['String']['output'];
|
|
112
|
+
status: MessageStatus;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
export type BaseMetaEvent = {
|
|
116
|
+
name: MetaEventName;
|
|
117
|
+
type: Scalars['String']['output'];
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
export type BaseResponseStatus = {
|
|
121
|
+
code: ResponseStatusCode;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export type CloudInput = {
|
|
125
|
+
guardrails?: InputMaybe<GuardrailsInput>;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export type CopilotContextInput = {
|
|
129
|
+
description: Scalars['String']['input'];
|
|
130
|
+
value: Scalars['String']['input'];
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
export type CopilotKitLangGraphInterruptEvent = BaseMetaEvent & {
|
|
134
|
+
__typename?: 'CopilotKitLangGraphInterruptEvent';
|
|
135
|
+
data: CopilotKitLangGraphInterruptEventData;
|
|
136
|
+
name: MetaEventName;
|
|
137
|
+
response?: Maybe<Scalars['String']['output']>;
|
|
138
|
+
type: Scalars['String']['output'];
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
export type CopilotKitLangGraphInterruptEventData = {
|
|
142
|
+
__typename?: 'CopilotKitLangGraphInterruptEventData';
|
|
143
|
+
messages: Array<BaseMessageOutput>;
|
|
144
|
+
value: Scalars['String']['output'];
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
/** The type of Copilot request */
|
|
148
|
+
export enum CopilotRequestType {
|
|
149
|
+
Chat = 'Chat',
|
|
150
|
+
Suggestion = 'Suggestion',
|
|
151
|
+
Task = 'Task',
|
|
152
|
+
TextareaCompletion = 'TextareaCompletion',
|
|
153
|
+
TextareaPopover = 'TextareaPopover'
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export type CopilotResponse = {
|
|
157
|
+
__typename?: 'CopilotResponse';
|
|
158
|
+
extensions?: Maybe<ExtensionsResponse>;
|
|
159
|
+
messages: Array<BaseMessageOutput>;
|
|
160
|
+
metaEvents?: Maybe<Array<BaseMetaEvent>>;
|
|
161
|
+
runId?: Maybe<Scalars['String']['output']>;
|
|
162
|
+
status: ResponseStatus;
|
|
163
|
+
threadId: Scalars['String']['output'];
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
export type ExtensionsInput = {
|
|
167
|
+
openaiAssistantAPI?: InputMaybe<OpenAiApiAssistantApiInput>;
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
export type ExtensionsResponse = {
|
|
171
|
+
__typename?: 'ExtensionsResponse';
|
|
172
|
+
openaiAssistantAPI?: Maybe<OpenAiApiAssistantApiResponse>;
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
export type FailedMessageStatus = {
|
|
176
|
+
__typename?: 'FailedMessageStatus';
|
|
177
|
+
code: MessageStatusCode;
|
|
178
|
+
reason: Scalars['String']['output'];
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
export type FailedResponseStatus = BaseResponseStatus & {
|
|
182
|
+
__typename?: 'FailedResponseStatus';
|
|
183
|
+
code: ResponseStatusCode;
|
|
184
|
+
details?: Maybe<Scalars['JSON']['output']>;
|
|
185
|
+
reason: FailedResponseStatusReason;
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
export enum FailedResponseStatusReason {
|
|
189
|
+
GuardrailsValidationFailed = 'GUARDRAILS_VALIDATION_FAILED',
|
|
190
|
+
MessageStreamInterrupted = 'MESSAGE_STREAM_INTERRUPTED',
|
|
191
|
+
UnknownError = 'UNKNOWN_ERROR'
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export type ForwardedParametersInput = {
|
|
195
|
+
maxTokens?: InputMaybe<Scalars['Float']['input']>;
|
|
196
|
+
model?: InputMaybe<Scalars['String']['input']>;
|
|
197
|
+
stop?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
198
|
+
temperature?: InputMaybe<Scalars['Float']['input']>;
|
|
199
|
+
toolChoice?: InputMaybe<Scalars['String']['input']>;
|
|
200
|
+
toolChoiceFunctionName?: InputMaybe<Scalars['String']['input']>;
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
export type FrontendInput = {
|
|
204
|
+
actions: Array<ActionInput>;
|
|
205
|
+
toDeprecate_fullContext?: InputMaybe<Scalars['String']['input']>;
|
|
206
|
+
url?: InputMaybe<Scalars['String']['input']>;
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
export type GenerateCopilotResponseInput = {
|
|
210
|
+
agentSession?: InputMaybe<AgentSessionInput>;
|
|
211
|
+
agentState?: InputMaybe<AgentStateInput>;
|
|
212
|
+
agentStates?: InputMaybe<Array<AgentStateInput>>;
|
|
213
|
+
cloud?: InputMaybe<CloudInput>;
|
|
214
|
+
context?: InputMaybe<Array<CopilotContextInput>>;
|
|
215
|
+
extensions?: InputMaybe<ExtensionsInput>;
|
|
216
|
+
forwardedParameters?: InputMaybe<ForwardedParametersInput>;
|
|
217
|
+
frontend: FrontendInput;
|
|
218
|
+
messages: Array<MessageInput>;
|
|
219
|
+
metaEvents?: InputMaybe<Array<MetaEventInput>>;
|
|
220
|
+
metadata: GenerateCopilotResponseMetadataInput;
|
|
221
|
+
runId?: InputMaybe<Scalars['String']['input']>;
|
|
222
|
+
threadId?: InputMaybe<Scalars['String']['input']>;
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
export type GenerateCopilotResponseMetadataInput = {
|
|
226
|
+
requestType?: InputMaybe<CopilotRequestType>;
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
export type GuardrailsInput = {
|
|
230
|
+
inputValidationRules: GuardrailsRuleInput;
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
export type GuardrailsRuleInput = {
|
|
234
|
+
allowList?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
235
|
+
denyList?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
export type ImageMessageInput = {
|
|
239
|
+
bytes: Scalars['String']['input'];
|
|
240
|
+
format: Scalars['String']['input'];
|
|
241
|
+
parentMessageId?: InputMaybe<Scalars['String']['input']>;
|
|
242
|
+
role: MessageRole;
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
export type ImageMessageOutput = BaseMessageOutput & {
|
|
246
|
+
__typename?: 'ImageMessageOutput';
|
|
247
|
+
bytes: Scalars['String']['output'];
|
|
248
|
+
createdAt: Scalars['DateTimeISO']['output'];
|
|
249
|
+
format: Scalars['String']['output'];
|
|
250
|
+
id: Scalars['String']['output'];
|
|
251
|
+
parentMessageId?: Maybe<Scalars['String']['output']>;
|
|
252
|
+
role: MessageRole;
|
|
253
|
+
status: MessageStatus;
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
export type LangGraphInterruptEvent = BaseMetaEvent & {
|
|
257
|
+
__typename?: 'LangGraphInterruptEvent';
|
|
258
|
+
name: MetaEventName;
|
|
259
|
+
response?: Maybe<Scalars['String']['output']>;
|
|
260
|
+
type: Scalars['String']['output'];
|
|
261
|
+
value: Scalars['String']['output'];
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
export type LoadAgentStateInput = {
|
|
265
|
+
agentName: Scalars['String']['input'];
|
|
266
|
+
threadId: Scalars['String']['input'];
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
export type LoadAgentStateResponse = {
|
|
270
|
+
__typename?: 'LoadAgentStateResponse';
|
|
271
|
+
messages: Scalars['String']['output'];
|
|
272
|
+
state: Scalars['String']['output'];
|
|
273
|
+
threadExists: Scalars['Boolean']['output'];
|
|
274
|
+
threadId: Scalars['String']['output'];
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
export type MessageInput = {
|
|
278
|
+
actionExecutionMessage?: InputMaybe<ActionExecutionMessageInput>;
|
|
279
|
+
agentStateMessage?: InputMaybe<AgentStateMessageInput>;
|
|
280
|
+
createdAt: Scalars['DateTimeISO']['input'];
|
|
281
|
+
id: Scalars['String']['input'];
|
|
282
|
+
imageMessage?: InputMaybe<ImageMessageInput>;
|
|
283
|
+
resultMessage?: InputMaybe<ResultMessageInput>;
|
|
284
|
+
textMessage?: InputMaybe<TextMessageInput>;
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
/** The role of the message */
|
|
288
|
+
export enum MessageRole {
|
|
289
|
+
Assistant = 'assistant',
|
|
290
|
+
Developer = 'developer',
|
|
291
|
+
System = 'system',
|
|
292
|
+
Tool = 'tool',
|
|
293
|
+
User = 'user'
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export type MessageStatus = FailedMessageStatus | PendingMessageStatus | SuccessMessageStatus;
|
|
297
|
+
|
|
298
|
+
export enum MessageStatusCode {
|
|
299
|
+
Failed = 'Failed',
|
|
300
|
+
Pending = 'Pending',
|
|
301
|
+
Success = 'Success'
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export type MetaEventInput = {
|
|
305
|
+
messages?: InputMaybe<Array<MessageInput>>;
|
|
306
|
+
name: MetaEventName;
|
|
307
|
+
response?: InputMaybe<Scalars['String']['input']>;
|
|
308
|
+
value: Scalars['String']['input'];
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
/** Meta event types */
|
|
312
|
+
export enum MetaEventName {
|
|
313
|
+
CopilotKitLangGraphInterruptEvent = 'CopilotKitLangGraphInterruptEvent',
|
|
314
|
+
LangGraphInterruptEvent = 'LangGraphInterruptEvent'
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export type Mutation = {
|
|
318
|
+
__typename?: 'Mutation';
|
|
319
|
+
generateCopilotResponse: CopilotResponse;
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
export type MutationGenerateCopilotResponseArgs = {
|
|
324
|
+
data: GenerateCopilotResponseInput;
|
|
325
|
+
properties?: InputMaybe<Scalars['JSONObject']['input']>;
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
export type OpenAiApiAssistantApiInput = {
|
|
329
|
+
runId?: InputMaybe<Scalars['String']['input']>;
|
|
330
|
+
threadId?: InputMaybe<Scalars['String']['input']>;
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
export type OpenAiApiAssistantApiResponse = {
|
|
334
|
+
__typename?: 'OpenAIApiAssistantAPIResponse';
|
|
335
|
+
runId?: Maybe<Scalars['String']['output']>;
|
|
336
|
+
threadId?: Maybe<Scalars['String']['output']>;
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
export type PendingMessageStatus = {
|
|
340
|
+
__typename?: 'PendingMessageStatus';
|
|
341
|
+
code: MessageStatusCode;
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
export type PendingResponseStatus = BaseResponseStatus & {
|
|
345
|
+
__typename?: 'PendingResponseStatus';
|
|
346
|
+
code: ResponseStatusCode;
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
export type Query = {
|
|
350
|
+
__typename?: 'Query';
|
|
351
|
+
availableAgents: AgentsResponse;
|
|
352
|
+
hello: Scalars['String']['output'];
|
|
353
|
+
loadAgentState: LoadAgentStateResponse;
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
export type QueryLoadAgentStateArgs = {
|
|
358
|
+
data: LoadAgentStateInput;
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
export type ResponseStatus = FailedResponseStatus | PendingResponseStatus | SuccessResponseStatus;
|
|
362
|
+
|
|
363
|
+
export enum ResponseStatusCode {
|
|
364
|
+
Failed = 'Failed',
|
|
365
|
+
Pending = 'Pending',
|
|
366
|
+
Success = 'Success'
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export type ResultMessageInput = {
|
|
370
|
+
actionExecutionId: Scalars['String']['input'];
|
|
371
|
+
actionName: Scalars['String']['input'];
|
|
372
|
+
parentMessageId?: InputMaybe<Scalars['String']['input']>;
|
|
373
|
+
result: Scalars['String']['input'];
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
export type ResultMessageOutput = BaseMessageOutput & {
|
|
377
|
+
__typename?: 'ResultMessageOutput';
|
|
378
|
+
actionExecutionId: Scalars['String']['output'];
|
|
379
|
+
actionName: Scalars['String']['output'];
|
|
380
|
+
createdAt: Scalars['DateTimeISO']['output'];
|
|
381
|
+
id: Scalars['String']['output'];
|
|
382
|
+
result: Scalars['String']['output'];
|
|
383
|
+
status: MessageStatus;
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
export type SuccessMessageStatus = {
|
|
387
|
+
__typename?: 'SuccessMessageStatus';
|
|
388
|
+
code: MessageStatusCode;
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
export type SuccessResponseStatus = BaseResponseStatus & {
|
|
392
|
+
__typename?: 'SuccessResponseStatus';
|
|
393
|
+
code: ResponseStatusCode;
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
export type TextMessageInput = {
|
|
397
|
+
content: Scalars['String']['input'];
|
|
398
|
+
parentMessageId?: InputMaybe<Scalars['String']['input']>;
|
|
399
|
+
role: MessageRole;
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
export type TextMessageOutput = BaseMessageOutput & {
|
|
403
|
+
__typename?: 'TextMessageOutput';
|
|
404
|
+
content: Array<Scalars['String']['output']>;
|
|
405
|
+
createdAt: Scalars['DateTimeISO']['output'];
|
|
406
|
+
id: Scalars['String']['output'];
|
|
407
|
+
parentMessageId?: Maybe<Scalars['String']['output']>;
|
|
408
|
+
role: MessageRole;
|
|
409
|
+
status: MessageStatus;
|
|
410
|
+
};
|
|
411
|
+
|
|
412
|
+
export type GenerateCopilotResponseMutationVariables = Exact<{
|
|
413
|
+
data: GenerateCopilotResponseInput;
|
|
414
|
+
properties?: InputMaybe<Scalars['JSONObject']['input']>;
|
|
415
|
+
}>;
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
export type GenerateCopilotResponseMutation = { __typename?: 'Mutation', generateCopilotResponse: { __typename?: 'CopilotResponse', threadId: string, runId?: string | null, extensions?: { __typename?: 'ExtensionsResponse', openaiAssistantAPI?: { __typename?: 'OpenAIApiAssistantAPIResponse', runId?: string | null, threadId?: string | null } | null } | 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: 'ImageMessageOutput', id: string, createdAt: any, format: string, bytes: string, role: MessageRole, parentMessageId?: string | null, 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 } }>, metaEvents?: Array<{ __typename?: 'CopilotKitLangGraphInterruptEvent', type: string, name: MetaEventName, data: { __typename?: 'CopilotKitLangGraphInterruptEventData', value: string, 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, status: { __typename?: 'FailedMessageStatus', code: MessageStatusCode, reason: string } | { __typename?: 'PendingMessageStatus', code: MessageStatusCode } | { __typename?: 'SuccessMessageStatus', code: MessageStatusCode } } | { __typename: 'ImageMessageOutput', id: string, createdAt: any, 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?: 'LangGraphInterruptEvent', type: string, name: MetaEventName, value: string }> | null } & ({ __typename?: 'CopilotResponse', status: { __typename?: 'FailedResponseStatus', code: ResponseStatusCode, reason: FailedResponseStatusReason, details?: any | null } | { __typename?: 'PendingResponseStatus', code: ResponseStatusCode } | { __typename?: 'SuccessResponseStatus', code: ResponseStatusCode } } | { __typename?: 'CopilotResponse', status?: never }) };
|
|
419
|
+
|
|
420
|
+
export type AvailableAgentsQueryVariables = Exact<{ [key: string]: never; }>;
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
export type AvailableAgentsQuery = { __typename?: 'Query', availableAgents: { __typename?: 'AgentsResponse', agents: Array<{ __typename?: 'Agent', name: string, id: string, description: string }> } };
|
|
424
|
+
|
|
425
|
+
export type LoadAgentStateQueryVariables = Exact<{
|
|
426
|
+
data: LoadAgentStateInput;
|
|
427
|
+
}>;
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
export type LoadAgentStateQuery = { __typename?: 'Query', loadAgentState: { __typename?: 'LoadAgentStateResponse', threadId: string, threadExists: boolean, state: string, messages: string } };
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
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":"Field","name":{"kind":"Name","value":"extensions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"openaiAssistantAPI"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"runId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}}]}}]}},{"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":"ImageMessageOutput"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"format"}},{"kind":"Field","name":{"kind":"Name","value":"bytes"}},{"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"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"metaEvents"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"stream"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LangGraphInterruptEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CopilotKitLangGraphInterruptEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"messages"},"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"}},{"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"}},{"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":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<GenerateCopilotResponseMutation, GenerateCopilotResponseMutationVariables>;
|
|
434
|
+
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>;
|
|
435
|
+
export const LoadAgentStateDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"loadAgentState"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"data"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"LoadAgentStateInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"loadAgentState"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data"},"value":{"kind":"Variable","name":{"kind":"Name","value":"data"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"threadExists"}},{"kind":"Field","name":{"kind":"Name","value":"state"}},{"kind":"Field","name":{"kind":"Name","value":"messages"}}]}}]}}]} as unknown as DocumentNode<LoadAgentStateQuery, LoadAgentStateQueryVariables>;
|