@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
|
@@ -6,6 +6,11 @@ declare enum MessageRole {
|
|
|
6
6
|
system = "system",
|
|
7
7
|
tool = "tool"
|
|
8
8
|
}
|
|
9
|
+
declare enum ActionExecutionScope {
|
|
10
|
+
server = "server",
|
|
11
|
+
client = "client",
|
|
12
|
+
passThrough = "passThrough"
|
|
13
|
+
}
|
|
9
14
|
declare enum ActionInputAvailability {
|
|
10
15
|
disabled = "disabled",
|
|
11
16
|
enabled = "enabled",
|
|
@@ -20,19 +25,16 @@ declare class MessageInput extends BaseMessageInput {
|
|
|
20
25
|
}
|
|
21
26
|
declare class TextMessageInput {
|
|
22
27
|
content: string;
|
|
23
|
-
parentMessageId?: string;
|
|
24
28
|
role: MessageRole;
|
|
25
29
|
}
|
|
26
30
|
declare class ActionExecutionMessageInput {
|
|
27
31
|
name: string;
|
|
28
32
|
arguments: string;
|
|
29
|
-
|
|
30
|
-
scope?: String;
|
|
33
|
+
scope: ActionExecutionScope;
|
|
31
34
|
}
|
|
32
35
|
declare class ResultMessageInput {
|
|
33
36
|
actionExecutionId: string;
|
|
34
37
|
actionName: string;
|
|
35
|
-
parentMessageId?: string;
|
|
36
38
|
result: string;
|
|
37
39
|
}
|
|
38
40
|
declare class AgentStateMessageInput {
|
|
@@ -58,13 +60,12 @@ declare class TextMessage extends Message implements TextMessageInput {
|
|
|
58
60
|
type: MessageType;
|
|
59
61
|
content: string;
|
|
60
62
|
role: MessageRole;
|
|
61
|
-
parentMessageId?: string;
|
|
62
63
|
}
|
|
63
|
-
declare class ActionExecutionMessage extends Message implements Omit<ActionExecutionMessageInput, "arguments"
|
|
64
|
+
declare class ActionExecutionMessage extends Message implements Omit<ActionExecutionMessageInput, "arguments"> {
|
|
64
65
|
type: MessageType;
|
|
65
66
|
name: string;
|
|
66
67
|
arguments: Record<string, any>;
|
|
67
|
-
|
|
68
|
+
scope: ActionExecutionScope;
|
|
68
69
|
}
|
|
69
70
|
declare class ResultMessage extends Message implements ResultMessageInput {
|
|
70
71
|
type: MessageType;
|
|
@@ -84,4 +85,4 @@ declare class AgentStateMessage extends Message implements Omit<AgentStateMessag
|
|
|
84
85
|
running: boolean;
|
|
85
86
|
}
|
|
86
87
|
|
|
87
|
-
export { ActionInputAvailability as A,
|
|
88
|
+
export { ActionInputAvailability as A, MessageInput as M, ResultMessage as R, TextMessage as T, Message as a, MessageType as b, ActionExecutionMessage as c, AgentStateMessage as d };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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 './lib/integrations/index.js';
|
|
4
4
|
export { copilotRuntimeNodeHttpEndpoint } from './lib/integrations/node-http/index.js';
|
|
5
5
|
export { copilotRuntimeNodeExpressEndpoint } from './lib/integrations/node-express/index.js';
|
|
6
6
|
export { copilotRuntimeNestEndpoint } from './lib/integrations/nest/index.js';
|
|
7
7
|
export { GuardrailsValidationFailureResponse, MessageStreamInterruptedResponse, UnknownErrorResponse } from './utils/index.js';
|
|
8
|
-
export { C as
|
|
9
|
-
export { AnthropicAdapter, AnthropicAdapterParams
|
|
8
|
+
export { C as CopilotServiceAdapter, a as RemoteChain, R as RemoteChainParameters } from './langserve-f021ab9c.js';
|
|
9
|
+
export { AnthropicAdapter, AnthropicAdapterParams } from './service-adapters/index.js';
|
|
10
10
|
import '@copilotkit/shared';
|
|
11
|
-
import './index-
|
|
11
|
+
import './index-10b1c870.js';
|
|
12
12
|
import './graphql/types/base/index.js';
|
|
13
13
|
import 'graphql';
|
|
14
14
|
import 'pino';
|