Files
agent-chat-ui/agent/stockbroker/types.ts
bracesproul 3f4aad48e6 split up
2025-02-27 15:41:47 -08:00

12 lines
419 B
TypeScript

import { Annotation } from "@langchain/langgraph";
import { GenerativeUIAnnotation } from "../types";
export const StockbrokerAnnotation = Annotation.Root({
messages: GenerativeUIAnnotation.spec.messages,
ui: GenerativeUIAnnotation.spec.ui,
timestamp: GenerativeUIAnnotation.spec.timestamp,
next: Annotation<"stockbroker" | "weather">(),
});
export type StockbrokerState = typeof StockbrokerAnnotation.State;