@copilotkit/runtime-client-gql 0.0.0-main-20260403195251 → 0.0.0-main-20260407163127

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @copilotkit/runtime-client-gql
2
2
 
3
- ## 0.0.0-main-20260403195251
3
+ ## 0.0.0-main-20260407163127
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -10,7 +10,8 @@
10
10
 
11
11
  - Updated dependencies [1ceb963]
12
12
  - Updated dependencies [52a9322]
13
- - @copilotkit/shared@0.0.0-main-20260403195251
13
+ - Updated dependencies [5289791]
14
+ - @copilotkit/shared@0.0.0-main-20260407163127
14
15
 
15
16
  ## 1.55.0-next.8
16
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@copilotkit/runtime-client-gql",
3
- "version": "0.0.0-main-20260403195251",
3
+ "version": "0.0.0-main-20260407163127",
4
4
  "private": false,
5
5
  "keywords": [
6
6
  "ai",
@@ -40,7 +40,7 @@
40
40
  "@urql/core": "^5.0.3",
41
41
  "untruncate-json": "^0.0.1",
42
42
  "urql": "^4.1.0",
43
- "@copilotkit/shared": "0.0.0-main-20260403195251"
43
+ "@copilotkit/shared": "0.0.0-main-20260407163127"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@graphql-codegen/cli": "^5.0.2",
@@ -65,7 +65,7 @@
65
65
  "react": "^18 || ^19 || ^19.0.0-rc"
66
66
  },
67
67
  "scripts": {
68
- "build": "pnpm run graphql-codegen && tsdown && node ../../scripts/copy-dts.mjs",
68
+ "build": "pnpm run graphql-codegen && tsdown",
69
69
  "dev": "concurrently \"pnpm run graphql-codegen:watch\" \"tsdown --watch\"",
70
70
  "test": "vitest run",
71
71
  "test:watch": "vitest",
@@ -1,44 +0,0 @@
1
- import { AvailableAgentsQuery, Exact, GenerateCopilotResponseInput, GenerateCopilotResponseMutation, GenerateCopilotResponseMutationVariables, InputMaybe, LoadAgentStateQuery, Scalars } from "../graphql/@generated/graphql.cjs";
2
- import * as urql from "urql";
3
- import { OperationResult, OperationResultSource } from "urql";
4
- import { Client } from "@urql/core";
5
-
6
- //#region src/client/CopilotRuntimeClient.d.ts
7
- interface CopilotRuntimeClientOptions {
8
- url: string;
9
- publicApiKey?: string;
10
- headers?: Record<string, string>;
11
- credentials?: RequestCredentials;
12
- handleGQLErrors?: (error: Error) => void;
13
- handleGQLWarning?: (warning: string) => void;
14
- }
15
- declare class CopilotRuntimeClient {
16
- client: Client;
17
- handleGQLErrors?: (error: Error) => void;
18
- handleGQLWarning?: (warning: string) => void;
19
- constructor(options: CopilotRuntimeClientOptions);
20
- generateCopilotResponse({
21
- data,
22
- properties,
23
- signal
24
- }: {
25
- data: GenerateCopilotResponseMutationVariables["data"];
26
- properties?: GenerateCopilotResponseMutationVariables["properties"];
27
- signal?: AbortSignal;
28
- }): OperationResultSource<OperationResult<GenerateCopilotResponseMutation, Exact<{
29
- data: GenerateCopilotResponseInput;
30
- properties?: InputMaybe<Scalars["JSONObject"]["input"]>;
31
- }>>>;
32
- asStream<S, T>(source: OperationResultSource<OperationResult<S, {
33
- data: T;
34
- }>>): ReadableStream<S>;
35
- availableAgents(): OperationResultSource<OperationResult<AvailableAgentsQuery, urql.AnyVariables>>;
36
- loadAgentState(data: {
37
- threadId: string;
38
- agentName: string;
39
- }): OperationResultSource<OperationResult<LoadAgentStateQuery, urql.AnyVariables>>;
40
- static removeGraphQLTypename(data: any): any;
41
- }
42
- //#endregion
43
- export { CopilotRuntimeClient, CopilotRuntimeClientOptions };
44
- //# sourceMappingURL=CopilotRuntimeClient.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CopilotRuntimeClient.d.cts","names":[],"sources":["../../src/client/CopilotRuntimeClient.ts"],"mappings":";;;;;;UAsEiB,2BAAA;EACf,GAAA;EACA,YAAA;EACA,OAAA,GAAU,MAAA;EACV,WAAA,GAAc,kBAAA;EACd,eAAA,IAAmB,KAAA,EAAO,KAAA;EAC1B,gBAAA,IAAoB,OAAA;AAAA;AAAA,cAGT,oBAAA;EACX,MAAA,EAAQ,MAAA;EACD,eAAA,IAAmB,KAAA,EAAO,KAAA;EAC1B,gBAAA,IAAoB,OAAA;cAEf,OAAA,EAAS,2BAAA;EA2BrB,uBAAA,CAAA;IACE,IAAA;IACA,UAAA;IACA;EAAA;IAEA,IAAA,EAAM,wCAAA;IACN,UAAA,GAAa,wCAAA;IACb,MAAA,GAAS,WAAA;EAAA,IACV,qBAAA,CAAA,eAAA,CAAA,+BAAA;UAAA,4BAAA;iBAgHujM,UAAA;;EAlGjjM,QAAA,MAAA,CACL,MAAA,EAAQ,qBAAA,CAAsB,eAAA,CAAgB,CAAA;IAAK,IAAA,EAAM,CAAA;EAAA,MAAK,cAAA,CAAA,CAAA;EAqDhE,eAAA,CAAA,GAAe,qBAAA,CAAA,eAAA,CAAA,oBAAA,EAAA,IAAA,CAAA,YAAA;EASf,cAAA,CAAe,IAAA;IAAQ,QAAA;IAAkB,SAAA;EAAA,IAAmB,qBAAA,CAAA,eAAA,CAAA,mBAAA,EAAA,IAAA,CAAA,YAAA;EAAA,OAqBrD,qBAAA,CAAsB,IAAA;AAAA"}
@@ -1,12 +0,0 @@
1
- import { GenerateCopilotResponseMutation, MessageInput } from "../graphql/@generated/graphql.cjs";
2
- import { Message } from "./types.cjs";
3
-
4
- //#region src/client/conversion.d.ts
5
- declare function filterAgentStateMessages(messages: Message[]): Message[];
6
- declare function convertMessagesToGqlInput(messages: Message[]): MessageInput[];
7
- declare function filterAdjacentAgentStateMessages(messages: GenerateCopilotResponseMutation["generateCopilotResponse"]["messages"]): GenerateCopilotResponseMutation["generateCopilotResponse"]["messages"];
8
- declare function convertGqlOutputToMessages(messages: GenerateCopilotResponseMutation["generateCopilotResponse"]["messages"]): Message[];
9
- declare function loadMessagesFromJsonRepresentation(json: any[]): Message[];
10
- //#endregion
11
- export { convertGqlOutputToMessages, convertMessagesToGqlInput, filterAdjacentAgentStateMessages, filterAgentStateMessages, loadMessagesFromJsonRepresentation };
12
- //# sourceMappingURL=conversion.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"conversion.d.cts","names":[],"sources":["../../src/client/conversion.ts"],"mappings":";;;;iBAiBgB,wBAAA,CAAyB,QAAA,EAAU,OAAA,KAAY,OAAA;AAAA,iBAI/C,yBAAA,CAA0B,QAAA,EAAU,OAAA,KAAY,YAAA;AAAA,iBAgEhD,gCAAA,CACd,QAAA,EAAU,+BAAA,0CACT,+BAAA;AAAA,iBA0Ba,0BAAA,CACd,QAAA,EAAU,+BAAA,0CACT,OAAA;AAAA,iBA0Da,kCAAA,CAAmC,IAAA,UAAc,OAAA"}
@@ -1,5 +0,0 @@
1
- import { CopilotRuntimeClient, CopilotRuntimeClientOptions } from "./CopilotRuntimeClient.cjs";
2
- import { ActionExecutionMessage, AgentStateMessage, ImageMessage, LangGraphInterruptEvent, Message, MetaEvent, ResultMessage, Role, TextMessage, langGraphInterruptEvent } from "./types.cjs";
3
- import { convertGqlOutputToMessages, convertMessagesToGqlInput, filterAdjacentAgentStateMessages, filterAgentStateMessages, loadMessagesFromJsonRepresentation } from "./conversion.cjs";
4
- import { GraphQLError } from "graphql";
5
- export { type GraphQLError };
@@ -1,76 +0,0 @@
1
- import { ActionExecutionMessageInput, AgentStateMessageInput, BaseMessageOutput, CopilotKitLangGraphInterruptEvent as CopilotKitLangGraphInterruptEvent$1, ImageMessageInput, LangGraphInterruptEvent as LangGraphInterruptEvent$1, MessageRole, MessageStatus, ResultMessageInput, TextMessageInput } from "../graphql/@generated/graphql.cjs";
2
-
3
- //#region src/client/types.d.ts
4
- type MessageType = "TextMessage" | "ActionExecutionMessage" | "ResultMessage" | "AgentStateMessage" | "ImageMessage";
5
- declare class Message {
6
- type: MessageType;
7
- id: BaseMessageOutput["id"];
8
- createdAt: BaseMessageOutput["createdAt"];
9
- status: MessageStatus;
10
- constructor(props: any);
11
- isTextMessage(): this is TextMessage;
12
- isActionExecutionMessage(): this is ActionExecutionMessage;
13
- isResultMessage(): this is ResultMessage;
14
- isAgentStateMessage(): this is AgentStateMessage;
15
- isImageMessage(): this is ImageMessage;
16
- }
17
- declare const Role: typeof MessageRole;
18
- type MessageConstructorOptions = Partial<Message>;
19
- type TextMessageConstructorOptions = MessageConstructorOptions & TextMessageInput;
20
- declare class TextMessage extends Message implements TextMessageConstructorOptions {
21
- content: TextMessageInput["content"];
22
- parentMessageId: TextMessageInput["parentMessageId"];
23
- role: TextMessageInput["role"];
24
- type: "TextMessage";
25
- constructor(props: TextMessageConstructorOptions);
26
- }
27
- type ActionExecutionMessageConstructorOptions = MessageConstructorOptions & Omit<ActionExecutionMessageInput, "arguments"> & {
28
- arguments: Record<string, any>;
29
- };
30
- declare class ActionExecutionMessage extends Message implements Omit<ActionExecutionMessageInput, "arguments" | "scope"> {
31
- name: ActionExecutionMessageInput["name"];
32
- arguments: Record<string, any>;
33
- parentMessageId: ActionExecutionMessageInput["parentMessageId"];
34
- constructor(props: ActionExecutionMessageConstructorOptions);
35
- }
36
- type ResultMessageConstructorOptions = MessageConstructorOptions & ResultMessageInput;
37
- declare class ResultMessage extends Message implements ResultMessageConstructorOptions {
38
- actionExecutionId: ResultMessageInput["actionExecutionId"];
39
- actionName: ResultMessageInput["actionName"];
40
- result: ResultMessageInput["result"];
41
- constructor(props: ResultMessageConstructorOptions);
42
- static decodeResult(result: string): any;
43
- static encodeResult(result: any): string;
44
- }
45
- declare class AgentStateMessage extends Message implements Omit<AgentStateMessageInput, "state"> {
46
- agentName: AgentStateMessageInput["agentName"];
47
- state: any;
48
- running: AgentStateMessageInput["running"];
49
- threadId: AgentStateMessageInput["threadId"];
50
- role: AgentStateMessageInput["role"];
51
- nodeName: AgentStateMessageInput["nodeName"];
52
- runId: AgentStateMessageInput["runId"];
53
- active: AgentStateMessageInput["active"];
54
- constructor(props: any);
55
- }
56
- type ImageMessageConstructorOptions = MessageConstructorOptions & ImageMessageInput;
57
- declare class ImageMessage extends Message implements ImageMessageConstructorOptions {
58
- format: ImageMessageInput["format"];
59
- bytes: ImageMessageInput["bytes"];
60
- role: ImageMessageInput["role"];
61
- parentMessageId: ImageMessageInput["parentMessageId"];
62
- constructor(props: ImageMessageConstructorOptions);
63
- }
64
- declare function langGraphInterruptEvent(eventProps: Omit<LangGraphInterruptEvent, "name" | "type" | "__typename">): LangGraphInterruptEvent;
65
- type LangGraphInterruptEvent<TValue extends any = any> = LangGraphInterruptEvent$1 & {
66
- value: TValue;
67
- };
68
- type CopilotKitLangGraphInterruptEvent<TValue extends any = any> = CopilotKitLangGraphInterruptEvent$1 & {
69
- data: CopilotKitLangGraphInterruptEvent$1["data"] & {
70
- value: TValue;
71
- };
72
- };
73
- type MetaEvent = LangGraphInterruptEvent | CopilotKitLangGraphInterruptEvent;
74
- //#endregion
75
- export { ActionExecutionMessage, AgentStateMessage, ImageMessage, LangGraphInterruptEvent, Message, MetaEvent, ResultMessage, Role, TextMessage, langGraphInterruptEvent };
76
- //# sourceMappingURL=types.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.cts","names":[],"sources":["../../src/client/types.ts"],"mappings":";;;KAiBK,WAAA;AAAA,cAOQ,OAAA;EACX,IAAA,EAAM,WAAA;EACN,EAAA,EAAI,iBAAA;EACJ,SAAA,EAAW,iBAAA;EACX,MAAA,EAAQ,aAAA;cAEI,KAAA;EAOZ,aAAA,CAAA,WAAyB,WAAA;EAIzB,wBAAA,CAAA,WAAoC,sBAAA;EAIpC,eAAA,CAAA,WAA2B,aAAA;EAI3B,mBAAA,CAAA,WAA+B,iBAAA;EAI/B,cAAA,CAAA,WAA0B,YAAA;AAAA;AAAA,cAMf,IAAA,SAAI,WAAA;AAAA,KAGZ,yBAAA,GAA4B,OAAA,CAAQ,OAAA;AAAA,KAEpC,6BAAA,GAAgC,yBAAA,GACnC,gBAAA;AAAA,cAEW,WAAA,SACH,OAAA,YACG,6BAAA;EAEX,OAAA,EAAS,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A,6BACH,mCAAA;EACE,IAAA,EAAM,mCAAA;IAAiD,KAAA,EAAO,MAAA;EAAA;AAAA;AAAA,KAGtD,SAAA,GACR,uBAAA,GACA,iCAAA"}
@@ -1,642 +0,0 @@
1
- import { TypedDocumentNode } from "@graphql-typed-document-node/core";
2
-
3
- //#region src/graphql/@generated/graphql.d.ts
4
- type Maybe<T> = T | null;
5
- type InputMaybe<T> = Maybe<T>;
6
- type Exact<T extends {
7
- [key: string]: unknown;
8
- }> = { [K in keyof T]: T[K] };
9
- type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
10
- type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
11
- type MakeEmpty<T extends {
12
- [key: string]: unknown;
13
- }, K extends keyof T> = { [_ in K]?: never };
14
- type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
15
- /** All built-in and custom scalars, mapped to their actual values */
16
- type Scalars = {
17
- ID: {
18
- input: string;
19
- output: string;
20
- };
21
- String: {
22
- input: string;
23
- output: string;
24
- };
25
- Boolean: {
26
- input: boolean;
27
- output: boolean;
28
- };
29
- Int: {
30
- input: number;
31
- output: number;
32
- };
33
- Float: {
34
- input: number;
35
- output: number;
36
- }; /** 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. */
37
- DateTimeISO: {
38
- input: any;
39
- output: any;
40
- }; /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
41
- JSON: {
42
- input: any;
43
- output: any;
44
- }; /** The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
45
- JSONObject: {
46
- input: any;
47
- output: any;
48
- };
49
- };
50
- type ActionExecutionMessageInput = {
51
- arguments: Scalars['String']['input'];
52
- name: Scalars['String']['input'];
53
- parentMessageId?: InputMaybe<Scalars['String']['input']>; /** @deprecated This field will be removed in a future version */
54
- scope?: InputMaybe<Scalars['String']['input']>;
55
- };
56
- type ActionExecutionMessageOutput = BaseMessageOutput & {
57
- __typename?: 'ActionExecutionMessageOutput';
58
- arguments: Array<Scalars['String']['output']>;
59
- createdAt: Scalars['DateTimeISO']['output'];
60
- id: Scalars['String']['output'];
61
- name: Scalars['String']['output'];
62
- parentMessageId?: Maybe<Scalars['String']['output']>; /** @deprecated This field will be removed in a future version */
63
- scope?: Maybe<Scalars['String']['output']>;
64
- status: MessageStatus;
65
- };
66
- type ActionInput = {
67
- available?: InputMaybe<ActionInputAvailability>;
68
- description: Scalars['String']['input'];
69
- jsonSchema: Scalars['String']['input'];
70
- name: Scalars['String']['input'];
71
- };
72
- /** The availability of the frontend action */
73
- declare enum ActionInputAvailability {
74
- Disabled = "disabled",
75
- Enabled = "enabled",
76
- Remote = "remote"
77
- }
78
- type Agent = {
79
- __typename?: 'Agent';
80
- description: Scalars['String']['output'];
81
- id: Scalars['String']['output'];
82
- name: Scalars['String']['output'];
83
- };
84
- type AgentSessionInput = {
85
- agentName: Scalars['String']['input'];
86
- nodeName?: InputMaybe<Scalars['String']['input']>;
87
- threadId?: InputMaybe<Scalars['String']['input']>;
88
- };
89
- type AgentStateInput = {
90
- agentName: Scalars['String']['input'];
91
- config?: InputMaybe<Scalars['String']['input']>;
92
- state: Scalars['String']['input'];
93
- };
94
- type AgentStateMessageInput = {
95
- active: Scalars['Boolean']['input'];
96
- agentName: Scalars['String']['input'];
97
- nodeName: Scalars['String']['input'];
98
- role: MessageRole;
99
- runId: Scalars['String']['input'];
100
- running: Scalars['Boolean']['input'];
101
- state: Scalars['String']['input'];
102
- threadId: Scalars['String']['input'];
103
- };
104
- type AgentStateMessageOutput = BaseMessageOutput & {
105
- __typename?: 'AgentStateMessageOutput';
106
- active: Scalars['Boolean']['output'];
107
- agentName: Scalars['String']['output'];
108
- createdAt: Scalars['DateTimeISO']['output'];
109
- id: Scalars['String']['output'];
110
- nodeName: Scalars['String']['output'];
111
- role: MessageRole;
112
- runId: Scalars['String']['output'];
113
- running: Scalars['Boolean']['output'];
114
- state: Scalars['String']['output'];
115
- status: MessageStatus;
116
- threadId: Scalars['String']['output'];
117
- };
118
- type AgentsResponse = {
119
- __typename?: 'AgentsResponse';
120
- agents: Array<Agent>;
121
- };
122
- type BaseMessageOutput = {
123
- createdAt: Scalars['DateTimeISO']['output'];
124
- id: Scalars['String']['output'];
125
- status: MessageStatus;
126
- };
127
- type BaseMetaEvent = {
128
- name: MetaEventName;
129
- type: Scalars['String']['output'];
130
- };
131
- type BaseResponseStatus = {
132
- code: ResponseStatusCode;
133
- };
134
- type CloudInput = {
135
- guardrails?: InputMaybe<GuardrailsInput>;
136
- };
137
- type CopilotContextInput = {
138
- description: Scalars['String']['input'];
139
- value: Scalars['String']['input'];
140
- };
141
- type CopilotKitLangGraphInterruptEvent = BaseMetaEvent & {
142
- __typename?: 'CopilotKitLangGraphInterruptEvent';
143
- data: CopilotKitLangGraphInterruptEventData;
144
- name: MetaEventName;
145
- response?: Maybe<Scalars['String']['output']>;
146
- type: Scalars['String']['output'];
147
- };
148
- type CopilotKitLangGraphInterruptEventData = {
149
- __typename?: 'CopilotKitLangGraphInterruptEventData';
150
- messages: Array<BaseMessageOutput>;
151
- value: Scalars['String']['output'];
152
- };
153
- /** The type of Copilot request */
154
- declare enum CopilotRequestType {
155
- Chat = "Chat",
156
- Suggestion = "Suggestion",
157
- Task = "Task",
158
- TextareaCompletion = "TextareaCompletion",
159
- TextareaPopover = "TextareaPopover"
160
- }
161
- type CopilotResponse = {
162
- __typename?: 'CopilotResponse';
163
- extensions?: Maybe<ExtensionsResponse>;
164
- messages: Array<BaseMessageOutput>;
165
- metaEvents?: Maybe<Array<BaseMetaEvent>>;
166
- runId?: Maybe<Scalars['String']['output']>;
167
- status: ResponseStatus;
168
- threadId: Scalars['String']['output'];
169
- };
170
- type ExtensionsInput = {
171
- openaiAssistantAPI?: InputMaybe<OpenAiApiAssistantApiInput>;
172
- };
173
- type ExtensionsResponse = {
174
- __typename?: 'ExtensionsResponse';
175
- openaiAssistantAPI?: Maybe<OpenAiApiAssistantApiResponse>;
176
- };
177
- type FailedMessageStatus = {
178
- __typename?: 'FailedMessageStatus';
179
- code: MessageStatusCode;
180
- reason: Scalars['String']['output'];
181
- };
182
- type FailedResponseStatus = BaseResponseStatus & {
183
- __typename?: 'FailedResponseStatus';
184
- code: ResponseStatusCode;
185
- details?: Maybe<Scalars['JSON']['output']>;
186
- reason: FailedResponseStatusReason;
187
- };
188
- declare enum FailedResponseStatusReason {
189
- GuardrailsValidationFailed = "GUARDRAILS_VALIDATION_FAILED",
190
- MessageStreamInterrupted = "MESSAGE_STREAM_INTERRUPTED",
191
- UnknownError = "UNKNOWN_ERROR"
192
- }
193
- type ForwardedParametersInput = {
194
- maxTokens?: InputMaybe<Scalars['Float']['input']>;
195
- model?: InputMaybe<Scalars['String']['input']>;
196
- stop?: InputMaybe<Array<Scalars['String']['input']>>;
197
- temperature?: InputMaybe<Scalars['Float']['input']>;
198
- toolChoice?: InputMaybe<Scalars['String']['input']>;
199
- toolChoiceFunctionName?: InputMaybe<Scalars['String']['input']>;
200
- };
201
- type FrontendInput = {
202
- actions: Array<ActionInput>;
203
- toDeprecate_fullContext?: InputMaybe<Scalars['String']['input']>;
204
- url?: InputMaybe<Scalars['String']['input']>;
205
- };
206
- type GenerateCopilotResponseInput = {
207
- agentSession?: InputMaybe<AgentSessionInput>;
208
- agentState?: InputMaybe<AgentStateInput>;
209
- agentStates?: InputMaybe<Array<AgentStateInput>>;
210
- cloud?: InputMaybe<CloudInput>;
211
- context?: InputMaybe<Array<CopilotContextInput>>;
212
- extensions?: InputMaybe<ExtensionsInput>;
213
- forwardedParameters?: InputMaybe<ForwardedParametersInput>;
214
- frontend: FrontendInput;
215
- messages: Array<MessageInput>;
216
- metaEvents?: InputMaybe<Array<MetaEventInput>>;
217
- metadata: GenerateCopilotResponseMetadataInput;
218
- runId?: InputMaybe<Scalars['String']['input']>;
219
- threadId?: InputMaybe<Scalars['String']['input']>;
220
- };
221
- type GenerateCopilotResponseMetadataInput = {
222
- requestType?: InputMaybe<CopilotRequestType>;
223
- };
224
- type GuardrailsInput = {
225
- inputValidationRules: GuardrailsRuleInput;
226
- };
227
- type GuardrailsRuleInput = {
228
- allowList?: InputMaybe<Array<Scalars['String']['input']>>;
229
- denyList?: InputMaybe<Array<Scalars['String']['input']>>;
230
- };
231
- type ImageMessageInput = {
232
- bytes: Scalars['String']['input'];
233
- format: Scalars['String']['input'];
234
- parentMessageId?: InputMaybe<Scalars['String']['input']>;
235
- role: MessageRole;
236
- };
237
- type ImageMessageOutput = BaseMessageOutput & {
238
- __typename?: 'ImageMessageOutput';
239
- bytes: Scalars['String']['output'];
240
- createdAt: Scalars['DateTimeISO']['output'];
241
- format: Scalars['String']['output'];
242
- id: Scalars['String']['output'];
243
- parentMessageId?: Maybe<Scalars['String']['output']>;
244
- role: MessageRole;
245
- status: MessageStatus;
246
- };
247
- type LangGraphInterruptEvent = BaseMetaEvent & {
248
- __typename?: 'LangGraphInterruptEvent';
249
- name: MetaEventName;
250
- response?: Maybe<Scalars['String']['output']>;
251
- type: Scalars['String']['output'];
252
- value: Scalars['String']['output'];
253
- };
254
- type LoadAgentStateInput = {
255
- agentName: Scalars['String']['input'];
256
- threadId: Scalars['String']['input'];
257
- };
258
- type LoadAgentStateResponse = {
259
- __typename?: 'LoadAgentStateResponse';
260
- messages: Scalars['String']['output'];
261
- state: Scalars['String']['output'];
262
- threadExists: Scalars['Boolean']['output'];
263
- threadId: Scalars['String']['output'];
264
- };
265
- type MessageInput = {
266
- actionExecutionMessage?: InputMaybe<ActionExecutionMessageInput>;
267
- agentStateMessage?: InputMaybe<AgentStateMessageInput>;
268
- createdAt: Scalars['DateTimeISO']['input'];
269
- id: Scalars['String']['input'];
270
- imageMessage?: InputMaybe<ImageMessageInput>;
271
- resultMessage?: InputMaybe<ResultMessageInput>;
272
- textMessage?: InputMaybe<TextMessageInput>;
273
- };
274
- /** The role of the message */
275
- declare enum MessageRole {
276
- Assistant = "assistant",
277
- Developer = "developer",
278
- System = "system",
279
- Tool = "tool",
280
- User = "user"
281
- }
282
- type MessageStatus = FailedMessageStatus | PendingMessageStatus | SuccessMessageStatus;
283
- declare enum MessageStatusCode {
284
- Failed = "Failed",
285
- Pending = "Pending",
286
- Success = "Success"
287
- }
288
- type MetaEventInput = {
289
- messages?: InputMaybe<Array<MessageInput>>;
290
- name: MetaEventName;
291
- response?: InputMaybe<Scalars['String']['input']>;
292
- value: Scalars['String']['input'];
293
- };
294
- /** Meta event types */
295
- declare enum MetaEventName {
296
- CopilotKitLangGraphInterruptEvent = "CopilotKitLangGraphInterruptEvent",
297
- LangGraphInterruptEvent = "LangGraphInterruptEvent"
298
- }
299
- type Mutation = {
300
- __typename?: 'Mutation';
301
- generateCopilotResponse: CopilotResponse;
302
- };
303
- type MutationGenerateCopilotResponseArgs = {
304
- data: GenerateCopilotResponseInput;
305
- properties?: InputMaybe<Scalars['JSONObject']['input']>;
306
- };
307
- type OpenAiApiAssistantApiInput = {
308
- runId?: InputMaybe<Scalars['String']['input']>;
309
- threadId?: InputMaybe<Scalars['String']['input']>;
310
- };
311
- type OpenAiApiAssistantApiResponse = {
312
- __typename?: 'OpenAIApiAssistantAPIResponse';
313
- runId?: Maybe<Scalars['String']['output']>;
314
- threadId?: Maybe<Scalars['String']['output']>;
315
- };
316
- type PendingMessageStatus = {
317
- __typename?: 'PendingMessageStatus';
318
- code: MessageStatusCode;
319
- };
320
- type PendingResponseStatus = BaseResponseStatus & {
321
- __typename?: 'PendingResponseStatus';
322
- code: ResponseStatusCode;
323
- };
324
- type Query = {
325
- __typename?: 'Query';
326
- availableAgents: AgentsResponse;
327
- hello: Scalars['String']['output'];
328
- loadAgentState: LoadAgentStateResponse;
329
- };
330
- type QueryLoadAgentStateArgs = {
331
- data: LoadAgentStateInput;
332
- };
333
- type ResponseStatus = FailedResponseStatus | PendingResponseStatus | SuccessResponseStatus;
334
- declare enum ResponseStatusCode {
335
- Failed = "Failed",
336
- Pending = "Pending",
337
- Success = "Success"
338
- }
339
- type ResultMessageInput = {
340
- actionExecutionId: Scalars['String']['input'];
341
- actionName: Scalars['String']['input'];
342
- parentMessageId?: InputMaybe<Scalars['String']['input']>;
343
- result: Scalars['String']['input'];
344
- };
345
- type ResultMessageOutput = BaseMessageOutput & {
346
- __typename?: 'ResultMessageOutput';
347
- actionExecutionId: Scalars['String']['output'];
348
- actionName: Scalars['String']['output'];
349
- createdAt: Scalars['DateTimeISO']['output'];
350
- id: Scalars['String']['output'];
351
- result: Scalars['String']['output'];
352
- status: MessageStatus;
353
- };
354
- type SuccessMessageStatus = {
355
- __typename?: 'SuccessMessageStatus';
356
- code: MessageStatusCode;
357
- };
358
- type SuccessResponseStatus = BaseResponseStatus & {
359
- __typename?: 'SuccessResponseStatus';
360
- code: ResponseStatusCode;
361
- };
362
- type TextMessageInput = {
363
- content: Scalars['String']['input'];
364
- parentMessageId?: InputMaybe<Scalars['String']['input']>;
365
- role: MessageRole;
366
- };
367
- type TextMessageOutput = BaseMessageOutput & {
368
- __typename?: 'TextMessageOutput';
369
- content: Array<Scalars['String']['output']>;
370
- createdAt: Scalars['DateTimeISO']['output'];
371
- id: Scalars['String']['output'];
372
- parentMessageId?: Maybe<Scalars['String']['output']>;
373
- role: MessageRole;
374
- status: MessageStatus;
375
- };
376
- type GenerateCopilotResponseMutationVariables = Exact<{
377
- data: GenerateCopilotResponseInput;
378
- properties?: InputMaybe<Scalars['JSONObject']['input']>;
379
- }>;
380
- type GenerateCopilotResponseMutation = {
381
- __typename?: 'Mutation';
382
- generateCopilotResponse: {
383
- __typename?: 'CopilotResponse';
384
- threadId: string;
385
- runId?: string | null;
386
- extensions?: {
387
- __typename?: 'ExtensionsResponse';
388
- openaiAssistantAPI?: {
389
- __typename?: 'OpenAIApiAssistantAPIResponse';
390
- runId?: string | null;
391
- threadId?: string | null;
392
- } | null;
393
- } | null;
394
- messages: Array<{
395
- __typename: 'ActionExecutionMessageOutput';
396
- id: string;
397
- createdAt: any;
398
- name: string;
399
- arguments: Array<string>;
400
- parentMessageId?: string | null;
401
- status: {
402
- __typename?: 'FailedMessageStatus';
403
- code: MessageStatusCode;
404
- reason: string;
405
- } | {
406
- __typename?: 'PendingMessageStatus';
407
- code: MessageStatusCode;
408
- } | {
409
- __typename?: 'SuccessMessageStatus';
410
- code: MessageStatusCode;
411
- };
412
- } | {
413
- __typename: 'AgentStateMessageOutput';
414
- id: string;
415
- createdAt: any;
416
- threadId: string;
417
- state: string;
418
- running: boolean;
419
- agentName: string;
420
- nodeName: string;
421
- runId: string;
422
- active: boolean;
423
- role: MessageRole;
424
- status: {
425
- __typename?: 'FailedMessageStatus';
426
- code: MessageStatusCode;
427
- reason: string;
428
- } | {
429
- __typename?: 'PendingMessageStatus';
430
- code: MessageStatusCode;
431
- } | {
432
- __typename?: 'SuccessMessageStatus';
433
- code: MessageStatusCode;
434
- };
435
- } | {
436
- __typename: 'ImageMessageOutput';
437
- id: string;
438
- createdAt: any;
439
- format: string;
440
- bytes: string;
441
- role: MessageRole;
442
- parentMessageId?: string | null;
443
- status: {
444
- __typename?: 'FailedMessageStatus';
445
- code: MessageStatusCode;
446
- reason: string;
447
- } | {
448
- __typename?: 'PendingMessageStatus';
449
- code: MessageStatusCode;
450
- } | {
451
- __typename?: 'SuccessMessageStatus';
452
- code: MessageStatusCode;
453
- };
454
- } | {
455
- __typename: 'ResultMessageOutput';
456
- id: string;
457
- createdAt: any;
458
- result: string;
459
- actionExecutionId: string;
460
- actionName: string;
461
- status: {
462
- __typename?: 'FailedMessageStatus';
463
- code: MessageStatusCode;
464
- reason: string;
465
- } | {
466
- __typename?: 'PendingMessageStatus';
467
- code: MessageStatusCode;
468
- } | {
469
- __typename?: 'SuccessMessageStatus';
470
- code: MessageStatusCode;
471
- };
472
- } | {
473
- __typename: 'TextMessageOutput';
474
- id: string;
475
- createdAt: any;
476
- content: Array<string>;
477
- role: MessageRole;
478
- parentMessageId?: string | null;
479
- status: {
480
- __typename?: 'FailedMessageStatus';
481
- code: MessageStatusCode;
482
- reason: string;
483
- } | {
484
- __typename?: 'PendingMessageStatus';
485
- code: MessageStatusCode;
486
- } | {
487
- __typename?: 'SuccessMessageStatus';
488
- code: MessageStatusCode;
489
- };
490
- }>;
491
- metaEvents?: Array<{
492
- __typename?: 'CopilotKitLangGraphInterruptEvent';
493
- type: string;
494
- name: MetaEventName;
495
- data: {
496
- __typename?: 'CopilotKitLangGraphInterruptEventData';
497
- value: string;
498
- messages: Array<{
499
- __typename: 'ActionExecutionMessageOutput';
500
- id: string;
501
- createdAt: any;
502
- name: string;
503
- arguments: Array<string>;
504
- parentMessageId?: string | null;
505
- status: {
506
- __typename?: 'FailedMessageStatus';
507
- code: MessageStatusCode;
508
- reason: string;
509
- } | {
510
- __typename?: 'PendingMessageStatus';
511
- code: MessageStatusCode;
512
- } | {
513
- __typename?: 'SuccessMessageStatus';
514
- code: MessageStatusCode;
515
- };
516
- } | {
517
- __typename: 'AgentStateMessageOutput';
518
- id: string;
519
- createdAt: any;
520
- status: {
521
- __typename?: 'FailedMessageStatus';
522
- code: MessageStatusCode;
523
- reason: string;
524
- } | {
525
- __typename?: 'PendingMessageStatus';
526
- code: MessageStatusCode;
527
- } | {
528
- __typename?: 'SuccessMessageStatus';
529
- code: MessageStatusCode;
530
- };
531
- } | {
532
- __typename: 'ImageMessageOutput';
533
- id: string;
534
- createdAt: any;
535
- status: {
536
- __typename?: 'FailedMessageStatus';
537
- code: MessageStatusCode;
538
- reason: string;
539
- } | {
540
- __typename?: 'PendingMessageStatus';
541
- code: MessageStatusCode;
542
- } | {
543
- __typename?: 'SuccessMessageStatus';
544
- code: MessageStatusCode;
545
- };
546
- } | {
547
- __typename: 'ResultMessageOutput';
548
- id: string;
549
- createdAt: any;
550
- result: string;
551
- actionExecutionId: string;
552
- actionName: string;
553
- status: {
554
- __typename?: 'FailedMessageStatus';
555
- code: MessageStatusCode;
556
- reason: string;
557
- } | {
558
- __typename?: 'PendingMessageStatus';
559
- code: MessageStatusCode;
560
- } | {
561
- __typename?: 'SuccessMessageStatus';
562
- code: MessageStatusCode;
563
- };
564
- } | {
565
- __typename: 'TextMessageOutput';
566
- id: string;
567
- createdAt: any;
568
- content: Array<string>;
569
- role: MessageRole;
570
- parentMessageId?: string | null;
571
- status: {
572
- __typename?: 'FailedMessageStatus';
573
- code: MessageStatusCode;
574
- reason: string;
575
- } | {
576
- __typename?: 'PendingMessageStatus';
577
- code: MessageStatusCode;
578
- } | {
579
- __typename?: 'SuccessMessageStatus';
580
- code: MessageStatusCode;
581
- };
582
- }>;
583
- };
584
- } | {
585
- __typename?: 'LangGraphInterruptEvent';
586
- type: string;
587
- name: MetaEventName;
588
- value: string;
589
- }> | null;
590
- } & ({
591
- __typename?: 'CopilotResponse';
592
- status: {
593
- __typename?: 'FailedResponseStatus';
594
- code: ResponseStatusCode;
595
- reason: FailedResponseStatusReason;
596
- details?: any | null;
597
- } | {
598
- __typename?: 'PendingResponseStatus';
599
- code: ResponseStatusCode;
600
- } | {
601
- __typename?: 'SuccessResponseStatus';
602
- code: ResponseStatusCode;
603
- };
604
- } | {
605
- __typename?: 'CopilotResponse';
606
- status?: never;
607
- });
608
- };
609
- type AvailableAgentsQueryVariables = Exact<{
610
- [key: string]: never;
611
- }>;
612
- type AvailableAgentsQuery = {
613
- __typename?: 'Query';
614
- availableAgents: {
615
- __typename?: 'AgentsResponse';
616
- agents: Array<{
617
- __typename?: 'Agent';
618
- name: string;
619
- id: string;
620
- description: string;
621
- }>;
622
- };
623
- };
624
- type LoadAgentStateQueryVariables = Exact<{
625
- data: LoadAgentStateInput;
626
- }>;
627
- type LoadAgentStateQuery = {
628
- __typename?: 'Query';
629
- loadAgentState: {
630
- __typename?: 'LoadAgentStateResponse';
631
- threadId: string;
632
- threadExists: boolean;
633
- state: string;
634
- messages: string;
635
- };
636
- };
637
- declare const GenerateCopilotResponseDocument: TypedDocumentNode<GenerateCopilotResponseMutation, GenerateCopilotResponseMutationVariables>;
638
- declare const AvailableAgentsDocument: TypedDocumentNode<AvailableAgentsQuery, AvailableAgentsQueryVariables>;
639
- declare const LoadAgentStateDocument: TypedDocumentNode<LoadAgentStateQuery, LoadAgentStateQueryVariables>;
640
- //#endregion
641
- export { ActionExecutionMessageInput, ActionExecutionMessageOutput, ActionInput, ActionInputAvailability, Agent, AgentSessionInput, AgentStateInput, AgentStateMessageInput, AgentStateMessageOutput, AgentsResponse, AvailableAgentsDocument, AvailableAgentsQuery, AvailableAgentsQueryVariables, BaseMessageOutput, BaseMetaEvent, BaseResponseStatus, CloudInput, CopilotContextInput, CopilotKitLangGraphInterruptEvent, CopilotKitLangGraphInterruptEventData, CopilotRequestType, CopilotResponse, Exact, ExtensionsInput, ExtensionsResponse, FailedMessageStatus, FailedResponseStatus, FailedResponseStatusReason, ForwardedParametersInput, FrontendInput, GenerateCopilotResponseDocument, GenerateCopilotResponseInput, GenerateCopilotResponseMetadataInput, GenerateCopilotResponseMutation, GenerateCopilotResponseMutationVariables, GuardrailsInput, GuardrailsRuleInput, ImageMessageInput, ImageMessageOutput, Incremental, InputMaybe, LangGraphInterruptEvent, LoadAgentStateDocument, LoadAgentStateInput, LoadAgentStateQuery, LoadAgentStateQueryVariables, LoadAgentStateResponse, MakeEmpty, MakeMaybe, MakeOptional, Maybe, MessageInput, MessageRole, MessageStatus, MessageStatusCode, MetaEventInput, MetaEventName, Mutation, MutationGenerateCopilotResponseArgs, OpenAiApiAssistantApiInput, OpenAiApiAssistantApiResponse, PendingMessageStatus, PendingResponseStatus, Query, QueryLoadAgentStateArgs, ResponseStatus, ResponseStatusCode, ResultMessageInput, ResultMessageOutput, Scalars, SuccessMessageStatus, SuccessResponseStatus, TextMessageInput, TextMessageOutput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gC,MAAA;MAAU,UAAA;MAAqC,IAAA,EAAM,kBAAA;MAAoB,MAAA,EAAQ,0BAAA;MAA4B,OAAA;IAAA;MAA2B,UAAA;MAAsC,IAAA,EAAM,kBAAA;IAAA;MAAyB,UAAA;MAAsC,IAAA,EAAM,kBAAA;IAAA;EAAA;IAA2B,UAAA;IAAgC,MAAA;EAAA;AAAA;AAAA,KAE/+I,6BAAA,GAAgC,KAAA;EAAA,CAAS,GAAA;AAAA;AAAA,KAGzC,oBAAA;EAAyB,UAAA;EAAsB,eAAA;IAAmB,UAAA;IAA+B,MAAA,EAAQ,KAAA;MAAQ,UAAA;MAAsB,IAAA;MAAc,EAAA;MAAY,WAAA;IAAA;EAAA;AAAA;AAAA,KAEjK,4BAAA,GAA+B,KAAA;EACzC,IAAA,EAAM,mBAAA;AAAA;AAAA,KAII,mBAAA;EAAwB,UAAA;EAAsB,cAAA;IAAkB,UAAA;IAAuC,QAAA;IAAkB,YAAA;IAAuB,KAAA;IAAe,QAAA;EAAA;AAAA;AAAA,cAG9J,+BAAA,EAA4oT,iBAAA,CAAa,+BAAA,EAAiC,wCAAA;AAAA,cAC1rT,uBAAA,EAAunB,iBAAA,CAAa,oBAAA,EAAsB,6BAAA;AAAA,cAC1pB,sBAAA,EAA47B,iBAAA,CAAa,mBAAA,EAAqB,4BAAA"}
package/dist/index.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import { ActionExecutionMessageInput, ActionExecutionMessageOutput, ActionInput, ActionInputAvailability, Agent, AgentSessionInput, AgentStateInput, AgentStateMessageInput, AgentStateMessageOutput, AgentsResponse, AvailableAgentsDocument, AvailableAgentsQuery, AvailableAgentsQueryVariables, BaseMessageOutput, BaseMetaEvent, BaseResponseStatus, CloudInput, CopilotContextInput, CopilotKitLangGraphInterruptEvent, CopilotKitLangGraphInterruptEventData, CopilotRequestType, CopilotResponse, Exact, ExtensionsInput, ExtensionsResponse, FailedMessageStatus, FailedResponseStatus, FailedResponseStatusReason, ForwardedParametersInput, FrontendInput, GenerateCopilotResponseDocument, GenerateCopilotResponseInput, GenerateCopilotResponseMetadataInput, GenerateCopilotResponseMutation, GenerateCopilotResponseMutationVariables, GuardrailsInput, GuardrailsRuleInput, ImageMessageInput, ImageMessageOutput, Incremental, InputMaybe, LoadAgentStateDocument, LoadAgentStateInput, LoadAgentStateQuery, LoadAgentStateQueryVariables, LoadAgentStateResponse, MakeEmpty, MakeMaybe, MakeOptional, Maybe, MessageInput, MessageRole, MessageStatus, MessageStatusCode, MetaEventInput, MetaEventName, Mutation, MutationGenerateCopilotResponseArgs, OpenAiApiAssistantApiInput, OpenAiApiAssistantApiResponse, PendingMessageStatus, PendingResponseStatus, Query, QueryLoadAgentStateArgs, ResponseStatus, ResponseStatusCode, ResultMessageInput, ResultMessageOutput, Scalars, SuccessMessageStatus, SuccessResponseStatus, TextMessageInput, TextMessageOutput } from "./graphql/@generated/graphql.cjs";
2
- import { CopilotRuntimeClient, CopilotRuntimeClientOptions } from "./client/CopilotRuntimeClient.cjs";
3
- import { ActionExecutionMessage, AgentStateMessage, ImageMessage, LangGraphInterruptEvent, Message, MetaEvent, ResultMessage, Role, TextMessage, langGraphInterruptEvent } from "./client/types.cjs";
4
- import { convertGqlOutputToMessages, convertMessagesToGqlInput, filterAdjacentAgentStateMessages, filterAgentStateMessages, loadMessagesFromJsonRepresentation } from "./client/conversion.cjs";
5
- import { GraphQLError } from "./client/index.cjs";
6
- import { aguiMessageWithImageToGQLMessage, aguiMessageWithRenderToGQL, aguiTextMessageToGQLMessage, aguiToGQL, aguiToolCallToGQLActionExecution, aguiToolMessageToGQLResultMessage } from "./message-conversion/agui-to-gql.cjs";
7
- import { gqlActionExecutionMessageToAGUIMessage, gqlImageMessageToAGUIMessage, gqlResultMessageToAGUIMessage, gqlTextMessageToAGUIMessage, gqlToAGUI } from "./message-conversion/gql-to-agui.cjs";
8
- import "./message-conversion/index.cjs";
9
- export { ActionExecutionMessage, ActionExecutionMessageInput, ActionExecutionMessageOutput, ActionInput, ActionInputAvailability, Agent, AgentSessionInput, AgentStateInput, AgentStateMessage, AgentStateMessageInput, AgentStateMessageOutput, AgentsResponse, AvailableAgentsDocument, AvailableAgentsQuery, AvailableAgentsQueryVariables, BaseMessageOutput, BaseMetaEvent, BaseResponseStatus, CloudInput, CopilotContextInput, CopilotKitLangGraphInterruptEvent, CopilotKitLangGraphInterruptEventData, CopilotRequestType, CopilotResponse, CopilotRuntimeClient, CopilotRuntimeClientOptions, Exact, ExtensionsInput, ExtensionsResponse, FailedMessageStatus, FailedResponseStatus, FailedResponseStatusReason, ForwardedParametersInput, FrontendInput, GenerateCopilotResponseDocument, GenerateCopilotResponseInput, GenerateCopilotResponseMetadataInput, GenerateCopilotResponseMutation, GenerateCopilotResponseMutationVariables, GraphQLError, GuardrailsInput, GuardrailsRuleInput, ImageMessage, ImageMessageInput, ImageMessageOutput, Incremental, InputMaybe, type LangGraphInterruptEvent, LoadAgentStateDocument, LoadAgentStateInput, LoadAgentStateQuery, LoadAgentStateQueryVariables, LoadAgentStateResponse, MakeEmpty, MakeMaybe, MakeOptional, Maybe, Message, MessageInput, MessageRole, MessageStatus, MessageStatusCode, MetaEvent, MetaEventInput, MetaEventName, Mutation, MutationGenerateCopilotResponseArgs, OpenAiApiAssistantApiInput, OpenAiApiAssistantApiResponse, PendingMessageStatus, PendingResponseStatus, Query, QueryLoadAgentStateArgs, ResponseStatus, ResponseStatusCode, ResultMessage, ResultMessageInput, ResultMessageOutput, Role, Scalars, SuccessMessageStatus, SuccessResponseStatus, TextMessage, TextMessageInput, TextMessageOutput, aguiMessageWithImageToGQLMessage, aguiMessageWithRenderToGQL, aguiTextMessageToGQLMessage, aguiToGQL, aguiToolCallToGQLActionExecution, aguiToolMessageToGQLResultMessage, convertGqlOutputToMessages, convertMessagesToGqlInput, filterAdjacentAgentStateMessages, filterAgentStateMessages, gqlActionExecutionMessageToAGUIMessage, gqlImageMessageToAGUIMessage, gqlResultMessageToAGUIMessage, gqlTextMessageToAGUIMessage, gqlToAGUI, langGraphInterruptEvent, loadMessagesFromJsonRepresentation };
@@ -1,14 +0,0 @@
1
- import { ActionExecutionMessage, ImageMessage, Message, ResultMessage, TextMessage } from "../client/types.cjs";
2
- import "../client/index.cjs";
3
- import * as agui from "@copilotkit/shared";
4
-
5
- //#region src/message-conversion/agui-to-gql.d.ts
6
- declare function aguiToGQL(messages: agui.Message[] | agui.Message, actions?: Record<string, any>, coAgentStateRenders?: Record<string, any>): Message[];
7
- declare function aguiTextMessageToGQLMessage(message: agui.Message): TextMessage;
8
- declare function aguiToolCallToGQLActionExecution(toolCall: agui.ToolCall, parentMessageId: string): ActionExecutionMessage;
9
- declare function aguiToolMessageToGQLResultMessage(message: agui.Message, toolCallNames: Record<string, string>): ResultMessage;
10
- declare function aguiMessageWithRenderToGQL(message: agui.Message, actions?: Record<string, any>, coAgentStateRenders?: Record<string, any>): Message[];
11
- declare function aguiMessageWithImageToGQLMessage(message: agui.Message): ImageMessage;
12
- //#endregion
13
- export { aguiMessageWithImageToGQLMessage, aguiMessageWithRenderToGQL, aguiTextMessageToGQLMessage, aguiToGQL, aguiToolCallToGQLActionExecution, aguiToolMessageToGQLResultMessage };
14
- //# sourceMappingURL=agui-to-gql.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agui-to-gql.d.cts","names":[],"sources":["../../src/message-conversion/agui-to-gql.ts"],"mappings":";;;;;iBA4CgB,SAAA,CACd,QAAA,EAAU,IAAA,CAAK,OAAA,KAAY,IAAA,CAAK,OAAA,EAChC,OAAA,GAAU,MAAA,eACV,mBAAA,GAAsB,MAAA,gBACrB,OAAA;AAAA,iBAqGa,2BAAA,CACd,OAAA,EAAS,IAAA,CAAK,OAAA,GACb,WAAA;AAAA,iBA+Ba,gCAAA,CACd,QAAA,EAAU,IAAA,CAAK,QAAA,EACf,eAAA,WACC,sBAAA;AAAA,iBAuDa,iCAAA,CACd,OAAA,EAAS,IAAA,CAAK,OAAA,EACd,aAAA,EAAe,MAAA,mBACd,aAAA;AAAA,iBA0Ca,0BAAA,CACd,OAAA,EAAS,IAAA,CAAK,OAAA,EACd,OAAA,GAAU,MAAA,eACV,mBAAA,GAAsB,MAAA,gBACrB,OAAA;AAAA,iBA8Ba,gCAAA,CACd,OAAA,EAAS,IAAA,CAAK,OAAA,GACb,YAAA"}
@@ -1,13 +0,0 @@
1
- import { ActionExecutionMessage, ImageMessage, Message, ResultMessage, TextMessage } from "../client/types.cjs";
2
- import "../client/index.cjs";
3
- import * as agui from "@copilotkit/shared";
4
-
5
- //#region src/message-conversion/gql-to-agui.d.ts
6
- declare function gqlToAGUI(messages: Message[] | Message, actions?: Record<string, any>, coAgentStateRenders?: Record<string, any>): agui.Message[];
7
- declare function gqlActionExecutionMessageToAGUIMessage(message: ActionExecutionMessage, actions?: Record<string, any>, actionResults?: Map<string, string>): agui.Message;
8
- declare function gqlTextMessageToAGUIMessage(message: TextMessage): agui.Message;
9
- declare function gqlResultMessageToAGUIMessage(message: ResultMessage): agui.Message;
10
- declare function gqlImageMessageToAGUIMessage(message: ImageMessage): agui.Message;
11
- //#endregion
12
- export { gqlActionExecutionMessageToAGUIMessage, gqlImageMessageToAGUIMessage, gqlResultMessageToAGUIMessage, gqlTextMessageToAGUIMessage, gqlToAGUI };
13
- //# sourceMappingURL=gql-to-agui.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gql-to-agui.d.cts","names":[],"sources":["../../src/message-conversion/gql-to-agui.ts"],"mappings":";;;;;iBAkBgB,SAAA,CACd,QAAA,EAAU,OAAA,KAAgB,OAAA,EAC1B,OAAA,GAAU,MAAA,eACV,mBAAA,GAAsB,MAAA,gBACrB,IAAA,CAAK,OAAA;AAAA,iBAmCQ,sCAAA,CACd,OAAA,EAAS,sBAAA,EACT,OAAA,GAAU,MAAA,eACV,aAAA,GAAgB,GAAA,mBACf,IAAA,CAAK,OAAA;AAAA,iBA4JQ,2BAAA,CACd,OAAA,EAAS,WAAA,GACR,IAAA,CAAK,OAAA;AAAA,iBA+BQ,6BAAA,CACd,OAAA,EAAS,aAAA,GACR,IAAA,CAAK,OAAA;AAAA,iBAUQ,4BAAA,CACd,OAAA,EAAS,YAAA,GACR,IAAA,CAAK,OAAA"}
@@ -1,2 +0,0 @@
1
- import { aguiMessageWithImageToGQLMessage, aguiMessageWithRenderToGQL, aguiTextMessageToGQLMessage, aguiToGQL, aguiToolCallToGQLActionExecution, aguiToolMessageToGQLResultMessage } from "./agui-to-gql.cjs";
2
- import { gqlActionExecutionMessageToAGUIMessage, gqlImageMessageToAGUIMessage, gqlResultMessageToAGUIMessage, gqlTextMessageToAGUIMessage, gqlToAGUI } from "./gql-to-agui.cjs";