@assistant-ui/react-edge
Advanced tools
Comparing version
@@ -36,2 +36,3 @@ // src/converters/fromCoreMessage.ts | ||
metadata: { | ||
unstable_state: null, | ||
unstable_annotations: [], | ||
@@ -38,0 +39,0 @@ unstable_data: [], |
@@ -71,3 +71,3 @@ // src/edge/createEdgeRuntimeAPI.ts | ||
stream = tees[0]; | ||
let serverStream = tees[1]; | ||
const serverStream = tees[1]; | ||
if (onFinish) { | ||
@@ -74,0 +74,0 @@ let lastChunk; |
@@ -62,2 +62,3 @@ // src/edge/EdgeModelAdapter.ts | ||
runConfig, | ||
state: unstable_getMessage().metadata.unstable_state, | ||
...context.callSettings, | ||
@@ -64,0 +65,0 @@ ...context.config, |
@@ -207,2 +207,3 @@ import { z } from "zod"; | ||
unstable_assistantMessageId: z.ZodOptional<z.ZodString>; | ||
state: z.ZodOptional<z.ZodUnknown>; | ||
} & { | ||
@@ -281,2 +282,3 @@ maxTokens: z.ZodOptional<z.ZodNumber>; | ||
unstable_assistantMessageId?: string | undefined; | ||
state?: unknown; | ||
}, { | ||
@@ -343,4 +345,5 @@ messages: readonly ({ | ||
unstable_assistantMessageId?: string | undefined; | ||
state?: unknown; | ||
}>; | ||
export type EdgeRuntimeRequestOptions = z.infer<typeof EdgeRuntimeRequestOptionsSchema>; | ||
//# sourceMappingURL=EdgeRuntimeRequestOptions.d.ts.map |
@@ -16,3 +16,4 @@ // src/edge/EdgeRuntimeRequestOptions.ts | ||
tools: z.array(LanguageModelV1FunctionToolSchema).readonly().optional(), | ||
unstable_assistantMessageId: z.string().optional() | ||
unstable_assistantMessageId: z.string().optional(), | ||
state: z.unknown().optional() | ||
}).merge(LanguageModelV1CallSettingsSchema).merge(LanguageModelConfigSchema); | ||
@@ -19,0 +20,0 @@ export { |
{ | ||
"name": "@assistant-ui/react-edge", | ||
"description": "The legacy edge runtime for assistant-ui", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"license": "MIT", | ||
@@ -29,3 +29,3 @@ "type": "module", | ||
"@ai-sdk/provider": "^1.1.3", | ||
"assistant-stream": "^0.2.6", | ||
"assistant-stream": "^0.2.7", | ||
"json-schema": "^0.4.0", | ||
@@ -59,3 +59,3 @@ "zod": "^3.24.4", | ||
"@assistant-ui/x-buildutils": "0.0.1", | ||
"@assistant-ui/react": "0.10.7" | ||
"@assistant-ui/react": "0.10.8" | ||
}, | ||
@@ -62,0 +62,0 @@ "publishConfig": { |
@@ -50,2 +50,3 @@ import { | ||
metadata: { | ||
unstable_state: null, | ||
unstable_annotations: [], | ||
@@ -52,0 +53,0 @@ unstable_data: [], |
@@ -138,3 +138,3 @@ import { | ||
stream = tees[0]; | ||
let serverStream = tees[1]; | ||
const serverStream = tees[1]; | ||
@@ -141,0 +141,0 @@ if (onFinish) { |
@@ -147,2 +147,5 @@ import { toCoreMessages } from "../converters/toCoreMessages"; | ||
runConfig, | ||
state: unstable_getMessage().metadata.unstable_state, | ||
...context.callSettings, | ||
@@ -149,0 +152,0 @@ ...context.config, |
@@ -20,2 +20,3 @@ import { z } from "zod"; | ||
unstable_assistantMessageId: z.string().optional(), | ||
state: z.unknown().optional(), | ||
}) | ||
@@ -22,0 +23,0 @@ .merge(LanguageModelV1CallSettingsSchema) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
164116
0.35%3031
0.3%Updated