cr
This commit is contained in:
@@ -4,7 +4,10 @@ import { planner } from "./nodes/planner";
|
|||||||
import { interrupt } from "./nodes/interrupt";
|
import { interrupt } from "./nodes/interrupt";
|
||||||
import { executor } from "./nodes/executor";
|
import { executor } from "./nodes/executor";
|
||||||
|
|
||||||
function handleRoutingFromExecutor(state: OpenCodeState): "executor" | "interrupt" {}
|
function handleRoutingFromExecutor(state: OpenCodeState): "executor" | "interrupt" {
|
||||||
|
const lastAIMessage = state.messages.findLast((m) => m.getType() === "ai");
|
||||||
|
if (lastAIMessage)
|
||||||
|
}
|
||||||
|
|
||||||
function handleRoutingFromInterrupt(state: OpenCodeState): "executor" | typeof END {}
|
function handleRoutingFromInterrupt(state: OpenCodeState): "executor" | typeof END {}
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ export const OpenCodeAnnotation = Annotation.Root({
|
|||||||
messages: GenerativeUIAnnotation.spec.messages,
|
messages: GenerativeUIAnnotation.spec.messages,
|
||||||
ui: GenerativeUIAnnotation.spec.ui,
|
ui: GenerativeUIAnnotation.spec.ui,
|
||||||
timestamp: GenerativeUIAnnotation.spec.timestamp,
|
timestamp: GenerativeUIAnnotation.spec.timestamp,
|
||||||
|
next: Annotation<"executor" | "interrupt">
|
||||||
});
|
});
|
||||||
|
|
||||||
export type OpenCodeState = typeof OpenCodeAnnotation.State;
|
export type OpenCodeState = typeof OpenCodeAnnotation.State;
|
||||||
|
|||||||
Reference in New Issue
Block a user