@copilotkit/runtime 1.5.1-next.2 → 1.5.1-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/__snapshots__/schema/schema.graphql +9 -19
- package/dist/{chunk-RFF5IIZJ.mjs → chunk-B74M7FXG.mjs} +2 -3
- package/dist/chunk-B74M7FXG.mjs.map +1 -0
- package/dist/{chunk-2FY7EQEE.mjs → chunk-M4QD67S3.mjs} +2 -2
- package/dist/{chunk-CLGKEUOA.mjs → chunk-OKQVDDJ2.mjs} +63 -298
- package/dist/chunk-OKQVDDJ2.mjs.map +1 -0
- package/dist/{chunk-2ZPE55QG.mjs → chunk-U3AYI5XZ.mjs} +2 -2
- package/dist/{chunk-W6E7AVR7.mjs → chunk-U75F2RAQ.mjs} +2 -2
- package/dist/{chunk-2V7BHSFE.mjs → chunk-ZSWCEADS.mjs} +331 -579
- package/dist/chunk-ZSWCEADS.mjs.map +1 -0
- package/dist/{copilot-runtime-36700e00.d.ts → copilot-runtime-12e7ac40.d.ts} +2 -9
- package/dist/graphql/types/converted/index.d.ts +1 -1
- package/dist/graphql/types/converted/index.js +1 -2
- package/dist/graphql/types/converted/index.js.map +1 -1
- package/dist/graphql/types/converted/index.mjs +1 -1
- package/dist/{groq-adapter-696b5d29.d.ts → groq-adapter-24abe931.d.ts} +1 -1
- package/dist/{index-cc2b17be.d.ts → index-10b1c870.d.ts} +9 -8
- package/dist/index.d.ts +5 -5
- package/dist/index.js +498 -984
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -15
- package/dist/index.mjs.map +1 -1
- package/dist/{langserve-9125a12e.d.ts → langserve-f021ab9c.d.ts} +14 -54
- package/dist/lib/index.d.ts +4 -4
- package/dist/lib/index.js +477 -886
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +7 -7
- package/dist/lib/integrations/index.d.ts +4 -4
- package/dist/lib/integrations/index.js +48 -171
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +6 -6
- package/dist/lib/integrations/nest/index.d.ts +3 -3
- package/dist/lib/integrations/nest/index.js +48 -171
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +4 -4
- package/dist/lib/integrations/node-express/index.d.ts +3 -3
- package/dist/lib/integrations/node-express/index.js +48 -171
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +4 -4
- package/dist/lib/integrations/node-http/index.d.ts +3 -3
- package/dist/lib/integrations/node-http/index.js +48 -171
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +3 -3
- package/dist/service-adapters/index.d.ts +5 -36
- package/dist/service-adapters/index.js +61 -298
- package/dist/service-adapters/index.js.map +1 -1
- package/dist/service-adapters/index.mjs +1 -5
- package/package.json +2 -2
- package/dist/chunk-2V7BHSFE.mjs.map +0 -1
- package/dist/chunk-CLGKEUOA.mjs.map +0 -1
- package/dist/chunk-RFF5IIZJ.mjs.map +0 -1
- /package/dist/{chunk-2FY7EQEE.mjs.map → chunk-M4QD67S3.mjs.map} +0 -0
- /package/dist/{chunk-2ZPE55QG.mjs.map → chunk-U3AYI5XZ.mjs.map} +0 -0
- /package/dist/{chunk-W6E7AVR7.mjs.map → chunk-U75F2RAQ.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
config,
|
|
4
4
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
5
5
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-M4QD67S3.mjs";
|
|
7
7
|
import {
|
|
8
8
|
copilotRuntimeNestEndpoint
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-U3AYI5XZ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
copilotRuntimeNodeExpressEndpoint
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-U75F2RAQ.mjs";
|
|
13
13
|
import {
|
|
14
14
|
CopilotRuntime,
|
|
15
15
|
buildSchema,
|
|
@@ -20,11 +20,14 @@ import {
|
|
|
20
20
|
getCommonConfig,
|
|
21
21
|
langGraphPlatformEndpoint,
|
|
22
22
|
resolveEndpointType
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ZSWCEADS.mjs";
|
|
24
|
+
import {
|
|
25
|
+
GuardrailsValidationFailureResponse,
|
|
26
|
+
MessageStreamInterruptedResponse,
|
|
27
|
+
UnknownErrorResponse
|
|
28
|
+
} from "./chunk-U3V2BCGI.mjs";
|
|
24
29
|
import {
|
|
25
30
|
AnthropicAdapter,
|
|
26
|
-
ExperimentalEmptyAdapter,
|
|
27
|
-
ExperimentalOllamaAdapter,
|
|
28
31
|
GoogleGenerativeAIAdapter,
|
|
29
32
|
GroqAdapter,
|
|
30
33
|
LangChainAdapter,
|
|
@@ -32,13 +35,8 @@ import {
|
|
|
32
35
|
OpenAIAssistantAdapter,
|
|
33
36
|
RemoteChain,
|
|
34
37
|
UnifyAdapter
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import
|
|
37
|
-
GuardrailsValidationFailureResponse,
|
|
38
|
-
MessageStreamInterruptedResponse,
|
|
39
|
-
UnknownErrorResponse
|
|
40
|
-
} from "./chunk-U3V2BCGI.mjs";
|
|
41
|
-
import "./chunk-RFF5IIZJ.mjs";
|
|
38
|
+
} from "./chunk-OKQVDDJ2.mjs";
|
|
39
|
+
import "./chunk-B74M7FXG.mjs";
|
|
42
40
|
import "./chunk-D2WLFQS6.mjs";
|
|
43
41
|
import "./chunk-44O2JGUY.mjs";
|
|
44
42
|
|
|
@@ -47,8 +45,6 @@ import "reflect-metadata";
|
|
|
47
45
|
export {
|
|
48
46
|
AnthropicAdapter,
|
|
49
47
|
CopilotRuntime,
|
|
50
|
-
ExperimentalEmptyAdapter,
|
|
51
|
-
ExperimentalOllamaAdapter,
|
|
52
48
|
GoogleGenerativeAIAdapter,
|
|
53
49
|
GroqAdapter,
|
|
54
50
|
GuardrailsValidationFailureResponse,
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import \"reflect-metadata\";\nexport * from \"./lib\";\nexport * from \"./utils\";\nexport * from \"./service-adapters\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import \"reflect-metadata\";\nexport * from \"./lib\";\nexport * from \"./utils\";\nexport * from \"./service-adapters\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO;","names":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ActionInputAvailability,
|
|
1
|
+
import { A as ActionInputAvailability, a as Message } from './index-10b1c870.js';
|
|
2
2
|
import * as rxjs from 'rxjs';
|
|
3
3
|
import { Subject, ReplaySubject } from 'rxjs';
|
|
4
4
|
import { Action, Parameter } from '@copilotkit/shared';
|
|
@@ -29,29 +29,25 @@ declare enum RuntimeEventTypes {
|
|
|
29
29
|
ActionExecutionResult = "ActionExecutionResult",
|
|
30
30
|
AgentStateMessage = "AgentStateMessage"
|
|
31
31
|
}
|
|
32
|
+
type FunctionCallScope = "client" | "server" | "passThrough";
|
|
32
33
|
type RuntimeEvent = {
|
|
33
34
|
type: RuntimeEventTypes.TextMessageStart;
|
|
34
35
|
messageId: string;
|
|
35
|
-
parentMessageId?: string;
|
|
36
36
|
} | {
|
|
37
37
|
type: RuntimeEventTypes.TextMessageContent;
|
|
38
|
-
messageId: string;
|
|
39
38
|
content: string;
|
|
40
39
|
} | {
|
|
41
40
|
type: RuntimeEventTypes.TextMessageEnd;
|
|
42
|
-
messageId: string;
|
|
43
41
|
} | {
|
|
44
42
|
type: RuntimeEventTypes.ActionExecutionStart;
|
|
45
43
|
actionExecutionId: string;
|
|
46
44
|
actionName: string;
|
|
47
|
-
|
|
45
|
+
scope?: FunctionCallScope;
|
|
48
46
|
} | {
|
|
49
47
|
type: RuntimeEventTypes.ActionExecutionArgs;
|
|
50
|
-
actionExecutionId: string;
|
|
51
48
|
args: string;
|
|
52
49
|
} | {
|
|
53
50
|
type: RuntimeEventTypes.ActionExecutionEnd;
|
|
54
|
-
actionExecutionId: string;
|
|
55
51
|
} | {
|
|
56
52
|
type: RuntimeEventTypes.ActionExecutionResult;
|
|
57
53
|
actionName: string;
|
|
@@ -71,57 +67,22 @@ type RuntimeEvent = {
|
|
|
71
67
|
type EventSourceCallback = (eventStream$: RuntimeEventSubject) => Promise<void>;
|
|
72
68
|
declare class RuntimeEventSubject extends ReplaySubject<RuntimeEvent> {
|
|
73
69
|
constructor();
|
|
74
|
-
sendTextMessageStart(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}): void;
|
|
78
|
-
sendTextMessageContent({ messageId, content }: {
|
|
79
|
-
messageId: string;
|
|
80
|
-
content: string;
|
|
81
|
-
}): void;
|
|
82
|
-
sendTextMessageEnd({ messageId }: {
|
|
83
|
-
messageId: string;
|
|
84
|
-
}): void;
|
|
70
|
+
sendTextMessageStart(messageId: string): void;
|
|
71
|
+
sendTextMessageContent(content: string): void;
|
|
72
|
+
sendTextMessageEnd(): void;
|
|
85
73
|
sendTextMessage(messageId: string, content: string): void;
|
|
86
|
-
sendActionExecutionStart(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
actionExecutionId: string;
|
|
93
|
-
args: string;
|
|
94
|
-
}): void;
|
|
95
|
-
sendActionExecutionEnd({ actionExecutionId }: {
|
|
96
|
-
actionExecutionId: string;
|
|
97
|
-
}): void;
|
|
98
|
-
sendActionExecution({ actionExecutionId, actionName, args, parentMessageId, }: {
|
|
99
|
-
actionExecutionId: string;
|
|
100
|
-
actionName: string;
|
|
101
|
-
args: string;
|
|
102
|
-
parentMessageId?: string;
|
|
103
|
-
}): void;
|
|
104
|
-
sendActionExecutionResult({ actionExecutionId, actionName, result, }: {
|
|
105
|
-
actionExecutionId: string;
|
|
106
|
-
actionName: string;
|
|
107
|
-
result: string;
|
|
108
|
-
}): void;
|
|
109
|
-
sendAgentStateMessage({ threadId, agentName, nodeName, runId, active, role, state, running, }: {
|
|
110
|
-
threadId: string;
|
|
111
|
-
agentName: string;
|
|
112
|
-
nodeName: string;
|
|
113
|
-
runId: string;
|
|
114
|
-
active: boolean;
|
|
115
|
-
role: string;
|
|
116
|
-
state: string;
|
|
117
|
-
running: boolean;
|
|
118
|
-
}): void;
|
|
74
|
+
sendActionExecutionStart(actionExecutionId: string, actionName: string): void;
|
|
75
|
+
sendActionExecutionArgs(args: string): void;
|
|
76
|
+
sendActionExecutionEnd(): void;
|
|
77
|
+
sendActionExecution(actionExecutionId: string, toolName: string, args: string): void;
|
|
78
|
+
sendActionExecutionResult(actionExecutionId: string, actionName: string, result: string): void;
|
|
79
|
+
sendAgentStateMessage(threadId: string, agentName: string, nodeName: string, runId: string, active: boolean, role: string, state: string, running: boolean): void;
|
|
119
80
|
}
|
|
120
81
|
declare class RuntimeEventSource {
|
|
121
82
|
private eventStream$;
|
|
122
83
|
private callback;
|
|
123
84
|
stream(callback: EventSourceCallback): Promise<void>;
|
|
124
|
-
sendErrorMessageToChat(
|
|
85
|
+
sendErrorMessageToChat(): void;
|
|
125
86
|
processRuntimeEvents({ serverSideActions, guardrailsResult$, actionInputsWithoutAgents, }: {
|
|
126
87
|
serverSideActions: Action<any>[];
|
|
127
88
|
guardrailsResult$?: Subject<GuardrailsResult>;
|
|
@@ -135,7 +96,6 @@ declare class ForwardedParametersInput {
|
|
|
135
96
|
stop?: string[];
|
|
136
97
|
toolChoice?: String;
|
|
137
98
|
toolChoiceFunctionName?: string;
|
|
138
|
-
temperature?: number;
|
|
139
99
|
}
|
|
140
100
|
|
|
141
101
|
interface CopilotRuntimeChatCompletionRequest {
|
|
@@ -173,4 +133,4 @@ declare class RemoteChain {
|
|
|
173
133
|
inferLangServeParameters(): Promise<void>;
|
|
174
134
|
}
|
|
175
135
|
|
|
176
|
-
export { ActionInput as A,
|
|
136
|
+
export { ActionInput as A, CopilotServiceAdapter as C, ForwardedParametersInput as F, RemoteChainParameters as R, RemoteChain as a, RuntimeEventSource as b, CopilotRuntimeChatCompletionRequest as c, CopilotRuntimeChatCompletionResponse as d };
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { h as CommonConfig, b as CopilotRequestContextProperties, a as CopilotRuntime, C as CopilotRuntimeConstructorParams, d as CreateCopilotRuntimeServerOptions, G as GraphQLContext, g as buildSchema, c as copilotKitEndpoint, e as createContext, f as flattenToolCallsNoDuplicates, i as getCommonConfig, l as langGraphPlatformEndpoint, r as resolveEndpointType } from '../copilot-runtime-
|
|
2
|
-
export { G as GoogleGenerativeAIAdapter, f as GroqAdapter, e as GroqAdapterParams, L as LangChainAdapter, a as OpenAIAdapter, O as OpenAIAdapterParams, c as OpenAIAssistantAdapter, b as OpenAIAssistantAdapterParams, d as UnifyAdapter, U as UnifyAdapterParams } from '../groq-adapter-
|
|
1
|
+
export { h as CommonConfig, b as CopilotRequestContextProperties, a as CopilotRuntime, C as CopilotRuntimeConstructorParams, d as CreateCopilotRuntimeServerOptions, G as GraphQLContext, g as buildSchema, c as copilotKitEndpoint, e as createContext, f as flattenToolCallsNoDuplicates, i as getCommonConfig, l as langGraphPlatformEndpoint, r as resolveEndpointType } from '../copilot-runtime-12e7ac40.js';
|
|
2
|
+
export { G as GoogleGenerativeAIAdapter, f as GroqAdapter, e as GroqAdapterParams, L as LangChainAdapter, a as OpenAIAdapter, O as OpenAIAdapterParams, c as OpenAIAssistantAdapter, b as OpenAIAssistantAdapterParams, d as UnifyAdapter, U as UnifyAdapterParams } from '../groq-adapter-24abe931.js';
|
|
3
3
|
export { CopilotRuntimeServerInstance, config, copilotRuntimeNextJSAppRouterEndpoint, copilotRuntimeNextJSPagesRouterEndpoint } from './integrations/index.js';
|
|
4
4
|
export { copilotRuntimeNodeHttpEndpoint } from './integrations/node-http/index.js';
|
|
5
5
|
export { copilotRuntimeNodeExpressEndpoint } from './integrations/node-express/index.js';
|
|
6
6
|
export { copilotRuntimeNestEndpoint } from './integrations/nest/index.js';
|
|
7
7
|
import '@copilotkit/shared';
|
|
8
|
-
import '../langserve-
|
|
9
|
-
import '../index-
|
|
8
|
+
import '../langserve-f021ab9c.js';
|
|
9
|
+
import '../index-10b1c870.js';
|
|
10
10
|
import '../graphql/types/base/index.js';
|
|
11
11
|
import 'rxjs';
|
|
12
12
|
import 'graphql';
|