@copilotkit/runtime 1.5.15-next.3 → 1.5.15-next.4
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 +10 -0
- package/__snapshots__/schema/schema.graphql +26 -0
- package/dist/{chunk-WPJHMQDF.mjs → chunk-6Z3DFNOC.mjs} +2 -2
- package/dist/{chunk-KPOZF6JI.mjs → chunk-EC2ZHPRU.mjs} +2 -2
- package/dist/{chunk-I2OII4XX.mjs → chunk-QDK4OP2Y.mjs} +2 -2
- package/dist/{chunk-EV3MMEAZ.mjs → chunk-W4G47FRC.mjs} +513 -295
- package/dist/chunk-W4G47FRC.mjs.map +1 -0
- package/dist/{copilot-runtime-e6c34790.d.ts → copilot-runtime-a113045f.d.ts} +13 -1
- package/dist/{groq-adapter-acb6ed0b.d.ts → groq-adapter-248058e8.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +787 -571
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/{langserve-9614171f.d.ts → langserve-9580bd66.d.ts} +16 -2
- package/dist/lib/index.d.ts +3 -3
- package/dist/lib/index.js +787 -571
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +4 -4
- package/dist/lib/integrations/index.d.ts +3 -3
- package/dist/lib/integrations/index.js +500 -319
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +4 -4
- package/dist/lib/integrations/nest/index.d.ts +2 -2
- package/dist/lib/integrations/nest/index.js +500 -319
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +2 -2
- package/dist/lib/integrations/node-express/index.d.ts +2 -2
- package/dist/lib/integrations/node-express/index.js +500 -319
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +2 -2
- package/dist/lib/integrations/node-http/index.d.ts +2 -2
- package/dist/lib/integrations/node-http/index.js +500 -319
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +1 -1
- package/dist/service-adapters/index.d.ts +3 -3
- package/package.json +3 -3
- package/src/agents/langgraph/event-source.ts +14 -2
- package/src/agents/langgraph/events.ts +12 -1
- package/src/graphql/inputs/generate-copilot-response.input.ts +4 -0
- package/src/graphql/inputs/meta-event.input.ts +17 -0
- package/src/graphql/resolvers/copilot.resolver.ts +67 -22
- package/src/graphql/types/copilot-response.type.ts +6 -0
- package/src/graphql/types/meta-events.type.ts +31 -0
- package/src/lib/runtime/copilot-runtime.ts +4 -0
- package/src/lib/runtime/remote-action-constructors.ts +5 -1
- package/src/lib/runtime/remote-actions.ts +2 -0
- package/src/lib/runtime/remote-lg-action.ts +35 -8
- package/src/service-adapters/events.ts +20 -1
- package/dist/chunk-EV3MMEAZ.mjs.map +0 -1
- /package/dist/{chunk-WPJHMQDF.mjs.map → chunk-6Z3DFNOC.mjs.map} +0 -0
- /package/dist/{chunk-KPOZF6JI.mjs.map → chunk-EC2ZHPRU.mjs.map} +0 -0
- /package/dist/{chunk-I2OII4XX.mjs.map → chunk-QDK4OP2Y.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-QDK4OP2Y.mjs";
|
|
7
7
|
import {
|
|
8
8
|
copilotRuntimeNestEndpoint
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6Z3DFNOC.mjs";
|
|
10
10
|
import {
|
|
11
11
|
copilotRuntimeNodeExpressEndpoint
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EC2ZHPRU.mjs";
|
|
13
13
|
import {
|
|
14
14
|
CopilotRuntime,
|
|
15
15
|
buildSchema,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
getCommonConfig,
|
|
21
21
|
langGraphPlatformEndpoint,
|
|
22
22
|
resolveEndpointType
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-W4G47FRC.mjs";
|
|
24
24
|
import {
|
|
25
25
|
AnthropicAdapter,
|
|
26
26
|
EmptyAdapter,
|
|
@@ -27,8 +27,22 @@ declare enum RuntimeEventTypes {
|
|
|
27
27
|
ActionExecutionArgs = "ActionExecutionArgs",
|
|
28
28
|
ActionExecutionEnd = "ActionExecutionEnd",
|
|
29
29
|
ActionExecutionResult = "ActionExecutionResult",
|
|
30
|
-
AgentStateMessage = "AgentStateMessage"
|
|
30
|
+
AgentStateMessage = "AgentStateMessage",
|
|
31
|
+
MetaEvent = "MetaEvent"
|
|
31
32
|
}
|
|
33
|
+
declare enum RuntimeMetaEventName {
|
|
34
|
+
LangGraphInterruptEvent = "LangGraphInterruptEvent",
|
|
35
|
+
LangGraphInterruptResumeEvent = "LangGraphInterruptResumeEvent"
|
|
36
|
+
}
|
|
37
|
+
type RunTimeMetaEvent = {
|
|
38
|
+
type: RuntimeEventTypes.MetaEvent;
|
|
39
|
+
name: RuntimeMetaEventName.LangGraphInterruptEvent;
|
|
40
|
+
value: string;
|
|
41
|
+
} | {
|
|
42
|
+
type: RuntimeEventTypes.MetaEvent;
|
|
43
|
+
name: RuntimeMetaEventName.LangGraphInterruptResumeEvent;
|
|
44
|
+
value: string;
|
|
45
|
+
};
|
|
32
46
|
type RuntimeEvent = {
|
|
33
47
|
type: RuntimeEventTypes.TextMessageStart;
|
|
34
48
|
messageId: string;
|
|
@@ -67,7 +81,7 @@ type RuntimeEvent = {
|
|
|
67
81
|
role: string;
|
|
68
82
|
state: string;
|
|
69
83
|
running: boolean;
|
|
70
|
-
};
|
|
84
|
+
} | RunTimeMetaEvent;
|
|
71
85
|
type EventSourceCallback = (eventStream$: RuntimeEventSubject) => Promise<void>;
|
|
72
86
|
declare class RuntimeEventSubject extends ReplaySubject<RuntimeEvent> {
|
|
73
87
|
constructor();
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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-a113045f.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-248058e8.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-
|
|
8
|
+
import '../langserve-9580bd66.js';
|
|
9
9
|
import '../index-a7f37670.js';
|
|
10
10
|
import '../graphql/types/base/index.js';
|
|
11
11
|
import 'rxjs';
|