eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
15 lines (14 loc) • 915 B
TypeScript
import type { EveAgentReducer } from "#client/reducer.js";
import type { EveMessageData } from "#client/message-reducer-types.js";
export type { EveMessageData, EveDynamicToolPart, EveMessageInputRequest, EveMessage, EveMessageMetadata, EveMessagePart, EveMessageToolMetadata, } from "#client/message-reducer-types.js";
/**
* Creates a UIMessage-compatible eve reducer for chat and agent UIs.
*
* The returned projection keeps eve-owned types while following the AI SDK
* `messages[].parts[]` rendering convention used by AI Elements. It projects
* text, reasoning, tool calls, tool results, tool approvals, and submitted
* HITL responses. Connection authorization stream events remain available to
* custom reducers through the reducer event contract until eve has a dedicated
* message-part shape for authorization UI.
*/
export declare function defaultMessageReducer(): EveAgentReducer<EveMessageData>;