@copilotkit/runtime 1.5.12-next.5 → 1.5.12-next.7
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 +17 -0
- package/__snapshots__/schema/schema.graphql +33 -0
- package/dist/{chunk-MFDRA3BJ.mjs → chunk-34276UUU.mjs} +652 -285
- package/dist/chunk-34276UUU.mjs.map +1 -0
- package/dist/{chunk-XRW7ZSWJ.mjs → chunk-DLESGNLO.mjs} +2 -2
- package/dist/{chunk-TPTCSIAR.mjs → chunk-S3KKBII4.mjs} +42 -30
- package/dist/chunk-S3KKBII4.mjs.map +1 -0
- package/dist/{chunk-QDMAQO2C.mjs → chunk-UBYSQI43.mjs} +2 -2
- package/dist/{chunk-NORCONUM.mjs → chunk-WTUPF3W3.mjs} +2 -2
- package/dist/{copilot-runtime-1a224a0f.d.ts → copilot-runtime-8c442d65.d.ts} +16 -3
- package/dist/graphql/types/converted/index.d.ts +1 -1
- package/dist/{groq-adapter-c35c5374.d.ts → groq-adapter-7a82cd22.d.ts} +21 -1
- package/dist/{index-24315d90.d.ts → index-a7f37670.d.ts} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +727 -348
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/{langserve-a16ef8f4.d.ts → langserve-e308c437.d.ts} +32 -3
- package/dist/lib/index.d.ts +4 -4
- package/dist/lib/index.js +725 -346
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +5 -5
- package/dist/lib/integrations/index.d.ts +4 -4
- package/dist/lib/integrations/index.js +504 -244
- 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 +3 -3
- package/dist/lib/integrations/nest/index.js +504 -244
- 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 +3 -3
- package/dist/lib/integrations/node-express/index.js +504 -244
- 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 +3 -3
- package/dist/lib/integrations/node-http/index.js +504 -244
- 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 +4 -4
- package/dist/service-adapters/index.js +23 -11
- package/dist/service-adapters/index.js.map +1 -1
- package/dist/service-adapters/index.mjs +1 -1
- package/package.json +2 -2
- package/src/graphql/inputs/extensions.input.ts +21 -0
- package/src/graphql/inputs/generate-copilot-response.input.ts +4 -0
- package/src/graphql/inputs/load-agent-state.input.ts +10 -0
- package/src/graphql/resolvers/copilot.resolver.ts +8 -3
- package/src/graphql/resolvers/state.resolver.ts +23 -0
- package/src/graphql/types/agents-response.type.ts +1 -4
- package/src/graphql/types/copilot-response.type.ts +5 -1
- package/src/graphql/types/extensions-response.type.ts +23 -0
- package/src/graphql/types/load-agent-state-response.type.ts +17 -0
- package/src/lib/integrations/shared.ts +2 -1
- package/src/lib/runtime/copilot-runtime.ts +155 -31
- package/src/lib/runtime/remote-action-constructors.ts +42 -33
- package/src/lib/runtime/remote-actions.ts +12 -7
- package/src/lib/runtime/remote-lg-action.ts +24 -12
- package/src/service-adapters/anthropic/anthropic-adapter.ts +2 -3
- package/src/service-adapters/empty/empty-adapter.ts +2 -2
- package/src/service-adapters/events.ts +5 -0
- package/src/service-adapters/experimental/ollama/ollama-adapter.ts +2 -2
- package/src/service-adapters/groq/groq-adapter.ts +2 -2
- package/src/service-adapters/langchain/langchain-adapter.ts +10 -3
- package/src/service-adapters/openai/openai-adapter.ts +4 -3
- package/src/service-adapters/openai/openai-assistant-adapter.ts +15 -4
- package/src/service-adapters/service-adapter.ts +4 -0
- package/src/service-adapters/unify/unify-adapter.ts +2 -3
- package/dist/chunk-MFDRA3BJ.mjs.map +0 -1
- package/dist/chunk-TPTCSIAR.mjs.map +0 -1
- /package/dist/{chunk-XRW7ZSWJ.mjs.map → chunk-DLESGNLO.mjs.map} +0 -0
- /package/dist/{chunk-QDMAQO2C.mjs.map → chunk-UBYSQI43.mjs.map} +0 -0
- /package/dist/{chunk-NORCONUM.mjs.map → chunk-WTUPF3W3.mjs.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @copilotkit/runtime
|
|
2
2
|
|
|
3
|
+
## 1.5.12-next.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 926499b: - Load the previous state of an agent if `threadId` is provided to CopilotKit, including all messages
|
|
8
|
+
- @copilotkit/shared@1.5.12-next.7
|
|
9
|
+
|
|
10
|
+
## 1.5.12-next.6
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 6136a57: - fix(errors): add custom error classes to better describe library errors
|
|
15
|
+
- fix(errors): use new errors in error handling
|
|
16
|
+
- chore: add documentation and links to respective errors
|
|
17
|
+
- Updated dependencies [6136a57]
|
|
18
|
+
- @copilotkit/shared@1.5.12-next.6
|
|
19
|
+
|
|
3
20
|
## 1.5.12-next.5
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -104,6 +104,7 @@ enum CopilotRequestType {
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
type CopilotResponse {
|
|
107
|
+
extensions: ExtensionsResponse
|
|
107
108
|
messages: [BaseMessageOutput!]!
|
|
108
109
|
runId: String
|
|
109
110
|
status: ResponseStatus!
|
|
@@ -115,6 +116,14 @@ A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `dat
|
|
|
115
116
|
"""
|
|
116
117
|
scalar DateTimeISO
|
|
117
118
|
|
|
119
|
+
input ExtensionsInput {
|
|
120
|
+
openaiAssistantAPI: OpenAIApiAssistantAPIInput
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
type ExtensionsResponse {
|
|
124
|
+
openaiAssistantAPI: OpenAIApiAssistantAPIResponse
|
|
125
|
+
}
|
|
126
|
+
|
|
118
127
|
type FailedMessageStatus {
|
|
119
128
|
code: MessageStatusCode!
|
|
120
129
|
reason: String!
|
|
@@ -152,6 +161,7 @@ input GenerateCopilotResponseInput {
|
|
|
152
161
|
agentState: AgentStateInput
|
|
153
162
|
agentStates: [AgentStateInput!]
|
|
154
163
|
cloud: CloudInput
|
|
164
|
+
extensions: ExtensionsInput
|
|
155
165
|
forwardedParameters: ForwardedParametersInput
|
|
156
166
|
frontend: FrontendInput!
|
|
157
167
|
messages: [MessageInput!]!
|
|
@@ -183,6 +193,18 @@ The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](
|
|
|
183
193
|
"""
|
|
184
194
|
scalar JSONObject @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf")
|
|
185
195
|
|
|
196
|
+
input LoadAgentStateInput {
|
|
197
|
+
agentName: String!
|
|
198
|
+
threadId: String!
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
type LoadAgentStateResponse {
|
|
202
|
+
messages: String!
|
|
203
|
+
state: String!
|
|
204
|
+
threadExists: Boolean!
|
|
205
|
+
threadId: String!
|
|
206
|
+
}
|
|
207
|
+
|
|
186
208
|
input MessageInput {
|
|
187
209
|
actionExecutionMessage: ActionExecutionMessageInput
|
|
188
210
|
agentStateMessage: AgentStateMessageInput
|
|
@@ -212,6 +234,16 @@ type Mutation {
|
|
|
212
234
|
generateCopilotResponse(data: GenerateCopilotResponseInput!, properties: JSONObject): CopilotResponse!
|
|
213
235
|
}
|
|
214
236
|
|
|
237
|
+
input OpenAIApiAssistantAPIInput {
|
|
238
|
+
runId: String
|
|
239
|
+
threadId: String
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
type OpenAIApiAssistantAPIResponse {
|
|
243
|
+
runId: String
|
|
244
|
+
threadId: String
|
|
245
|
+
}
|
|
246
|
+
|
|
215
247
|
type PendingMessageStatus {
|
|
216
248
|
code: MessageStatusCode!
|
|
217
249
|
}
|
|
@@ -223,6 +255,7 @@ type PendingResponseStatus implements BaseResponseStatus {
|
|
|
223
255
|
type Query {
|
|
224
256
|
availableAgents: AgentsResponse!
|
|
225
257
|
hello: String!
|
|
258
|
+
loadAgentState(data: LoadAgentStateInput!): LoadAgentStateResponse!
|
|
226
259
|
}
|
|
227
260
|
|
|
228
261
|
union ResponseStatus = FailedResponseStatus | PendingResponseStatus | SuccessResponseStatus
|