@copilotkit/runtime 1.4.0-pre-1-4-0-alpha.10 → 1.4.0-pre-1-4-0.14
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 +160 -24
- package/dist/{chunk-YUJSVJWS.mjs → chunk-6H45CJUK.mjs} +2 -2
- package/dist/{chunk-SBWLAAB3.mjs → chunk-N4ROMSZN.mjs} +2 -2
- package/dist/{chunk-SVL5LEKB.mjs → chunk-NFMXFL2C.mjs} +2 -2
- package/dist/{chunk-56IQ6PGC.mjs → chunk-WHJ3DAYL.mjs} +56 -213
- package/dist/chunk-WHJ3DAYL.mjs.map +1 -0
- package/dist/{chunk-RDHJQVWH.mjs → chunk-X4FFTYTH.mjs} +49 -92
- package/dist/chunk-X4FFTYTH.mjs.map +1 -0
- package/dist/{copilot-runtime-dbe5fa02.d.ts → copilot-runtime-335a610d.d.ts} +8 -8
- package/dist/{groq-adapter-192d2413.d.ts → groq-adapter-2f8fd767.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +103 -303
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/{langserve-878c62b9.d.ts → langserve-cc06e76e.d.ts} +9 -45
- package/dist/lib/index.d.ts +3 -3
- package/dist/lib/index.js +97 -282
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +7 -7
- package/dist/lib/integrations/index.d.ts +3 -3
- package/dist/lib/integrations/index.js +6 -14
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +5 -5
- package/dist/lib/integrations/nest/index.d.ts +2 -2
- package/dist/lib/integrations/nest/index.js +6 -14
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +3 -3
- package/dist/lib/integrations/node-express/index.d.ts +2 -2
- package/dist/lib/integrations/node-express/index.js +6 -14
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +3 -3
- package/dist/lib/integrations/node-http/index.d.ts +2 -2
- package/dist/lib/integrations/node-http/index.js +6 -14
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +2 -2
- package/dist/service-adapters/index.d.ts +3 -3
- package/dist/service-adapters/index.js +55 -212
- package/dist/service-adapters/index.js.map +1 -1
- package/dist/service-adapters/index.mjs +1 -1
- package/package.json +4 -4
- package/src/agents/langgraph/event-source.ts +2 -14
- package/src/graphql/resolvers/copilot.resolver.ts +2 -28
- package/src/lib/runtime/copilot-runtime.ts +6 -6
- package/src/lib/runtime/remote-action-constructors.ts +7 -7
- package/src/lib/runtime/remote-actions.ts +9 -9
- package/src/lib/runtime/{remote-lg-cloud-action.ts → remote-lg-action.ts} +18 -18
- package/src/lib/telemetry-client.ts +3 -3
- package/src/service-adapters/anthropic/anthropic-adapter.ts +6 -15
- package/src/service-adapters/events.ts +35 -73
- package/src/service-adapters/experimental/ollama/ollama-adapter.ts +3 -7
- package/src/service-adapters/groq/groq-adapter.ts +8 -22
- package/src/service-adapters/langchain/utils.ts +31 -47
- package/src/service-adapters/openai/openai-adapter.ts +9 -21
- package/src/service-adapters/openai/openai-assistant-adapter.ts +8 -21
- package/src/service-adapters/unify/unify-adapter.ts +11 -28
- package/dist/chunk-56IQ6PGC.mjs.map +0 -1
- package/dist/chunk-RDHJQVWH.mjs.map +0 -1
- /package/dist/{chunk-YUJSVJWS.mjs.map → chunk-6H45CJUK.mjs.map} +0 -0
- /package/dist/{chunk-SBWLAAB3.mjs.map → chunk-N4ROMSZN.mjs.map} +0 -0
- /package/dist/{chunk-SVL5LEKB.mjs.map → chunk-NFMXFL2C.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-6H45CJUK.mjs";
|
|
7
7
|
import {
|
|
8
8
|
copilotRuntimeNestEndpoint
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NFMXFL2C.mjs";
|
|
10
10
|
import {
|
|
11
11
|
copilotRuntimeNodeExpressEndpoint
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-N4ROMSZN.mjs";
|
|
13
13
|
import {
|
|
14
14
|
CopilotRuntime,
|
|
15
15
|
buildSchema,
|
|
@@ -18,9 +18,9 @@ import {
|
|
|
18
18
|
createContext,
|
|
19
19
|
flattenToolCallsNoDuplicates,
|
|
20
20
|
getCommonConfig,
|
|
21
|
-
|
|
21
|
+
langGraphPlatformEndpoint,
|
|
22
22
|
resolveEndpointType
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-X4FFTYTH.mjs";
|
|
24
24
|
import {
|
|
25
25
|
AnthropicAdapter,
|
|
26
26
|
GoogleGenerativeAIAdapter,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
OpenAIAssistantAdapter,
|
|
31
31
|
RemoteChain,
|
|
32
32
|
UnifyAdapter
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-WHJ3DAYL.mjs";
|
|
34
34
|
import {
|
|
35
35
|
GuardrailsValidationFailureResponse,
|
|
36
36
|
MessageStreamInterruptedResponse,
|
|
@@ -66,7 +66,7 @@ export {
|
|
|
66
66
|
createContext,
|
|
67
67
|
flattenToolCallsNoDuplicates,
|
|
68
68
|
getCommonConfig,
|
|
69
|
-
|
|
69
|
+
langGraphPlatformEndpoint,
|
|
70
70
|
resolveEndpointType
|
|
71
71
|
};
|
|
72
72
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -34,11 +34,9 @@ type RuntimeEvent = {
|
|
|
34
34
|
messageId: string;
|
|
35
35
|
} | {
|
|
36
36
|
type: RuntimeEventTypes.TextMessageContent;
|
|
37
|
-
messageId: string;
|
|
38
37
|
content: string;
|
|
39
38
|
} | {
|
|
40
39
|
type: RuntimeEventTypes.TextMessageEnd;
|
|
41
|
-
messageId: string;
|
|
42
40
|
} | {
|
|
43
41
|
type: RuntimeEventTypes.ActionExecutionStart;
|
|
44
42
|
actionExecutionId: string;
|
|
@@ -46,11 +44,9 @@ type RuntimeEvent = {
|
|
|
46
44
|
scope?: FunctionCallScope;
|
|
47
45
|
} | {
|
|
48
46
|
type: RuntimeEventTypes.ActionExecutionArgs;
|
|
49
|
-
actionExecutionId: string;
|
|
50
47
|
args: string;
|
|
51
48
|
} | {
|
|
52
49
|
type: RuntimeEventTypes.ActionExecutionEnd;
|
|
53
|
-
actionExecutionId: string;
|
|
54
50
|
} | {
|
|
55
51
|
type: RuntimeEventTypes.ActionExecutionResult;
|
|
56
52
|
actionName: string;
|
|
@@ -70,48 +66,16 @@ type RuntimeEvent = {
|
|
|
70
66
|
type EventSourceCallback = (eventStream$: RuntimeEventSubject) => Promise<void>;
|
|
71
67
|
declare class RuntimeEventSubject extends ReplaySubject<RuntimeEvent> {
|
|
72
68
|
constructor();
|
|
73
|
-
sendTextMessageStart(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
sendTextMessageContent({ messageId, content }: {
|
|
77
|
-
messageId: string;
|
|
78
|
-
content: string;
|
|
79
|
-
}): void;
|
|
80
|
-
sendTextMessageEnd({ messageId }: {
|
|
81
|
-
messageId: string;
|
|
82
|
-
}): void;
|
|
69
|
+
sendTextMessageStart(messageId: string): void;
|
|
70
|
+
sendTextMessageContent(content: string): void;
|
|
71
|
+
sendTextMessageEnd(): void;
|
|
83
72
|
sendTextMessage(messageId: string, content: string): void;
|
|
84
|
-
sendActionExecutionStart(
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
args: string;
|
|
91
|
-
}): void;
|
|
92
|
-
sendActionExecutionEnd({ actionExecutionId }: {
|
|
93
|
-
actionExecutionId: string;
|
|
94
|
-
}): void;
|
|
95
|
-
sendActionExecution({ actionExecutionId, actionName, args, }: {
|
|
96
|
-
actionExecutionId: string;
|
|
97
|
-
actionName: string;
|
|
98
|
-
args: string;
|
|
99
|
-
}): void;
|
|
100
|
-
sendActionExecutionResult({ actionExecutionId, actionName, result, }: {
|
|
101
|
-
actionExecutionId: string;
|
|
102
|
-
actionName: string;
|
|
103
|
-
result: string;
|
|
104
|
-
}): void;
|
|
105
|
-
sendAgentStateMessage({ threadId, agentName, nodeName, runId, active, role, state, running, }: {
|
|
106
|
-
threadId: string;
|
|
107
|
-
agentName: string;
|
|
108
|
-
nodeName: string;
|
|
109
|
-
runId: string;
|
|
110
|
-
active: boolean;
|
|
111
|
-
role: string;
|
|
112
|
-
state: string;
|
|
113
|
-
running: boolean;
|
|
114
|
-
}): void;
|
|
73
|
+
sendActionExecutionStart(actionExecutionId: string, actionName: string): void;
|
|
74
|
+
sendActionExecutionArgs(args: string): void;
|
|
75
|
+
sendActionExecutionEnd(): void;
|
|
76
|
+
sendActionExecution(actionExecutionId: string, toolName: string, args: string): void;
|
|
77
|
+
sendActionExecutionResult(actionExecutionId: string, actionName: string, result: string): void;
|
|
78
|
+
sendAgentStateMessage(threadId: string, agentName: string, nodeName: string, runId: string, active: boolean, role: string, state: string, running: boolean): void;
|
|
115
79
|
}
|
|
116
80
|
declare class RuntimeEventSource {
|
|
117
81
|
private eventStream$;
|
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
|
|
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-335a610d.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-2f8fd767.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-cc06e76e.js';
|
|
9
9
|
import '../index-83ee522f.js';
|
|
10
10
|
import '../graphql/types/base/index.js';
|
|
11
11
|
import 'rxjs';
|