eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
16 lines (15 loc) • 775 B
TypeScript
import type { ModelMessage, ToolSet, TypedToolResult } from "ai";
import { type AuthorizationSignal } from "#harness/authorization.js";
/** Returns whether an inline tool result represents a pending authorization interrupt. */
export declare function isInlineAuthorizationToolResult(toolResult: TypedToolResult<ToolSet>): boolean;
/**
* Resolves authorization interrupts and keeps only protocol-complete sibling
* calls from the response that produced them.
*/
export declare function resolveInlineAuthorizationInterrupt(input: {
readonly messages: readonly ModelMessage[];
readonly toolResults: readonly TypedToolResult<ToolSet>[] | undefined;
}): {
readonly challenges: AuthorizationSignal["challenges"];
readonly history: ModelMessage[];
} | undefined;