eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
18 lines (17 loc) • 691 B
TypeScript
import type { ContentPart, ToolSet, TypedToolCall } from "ai";
import type { InputRequest } from "#runtime/input/types.js";
/**
* Extracts question input requests from tool calls that target the
* `ask_question` framework tool.
*/
export declare function extractQuestionInputRequests(input: {
readonly excludedCallIds: ReadonlySet<string>;
readonly toolCalls: readonly TypedToolCall<ToolSet>[];
}): InputRequest[];
/**
* Extracts tool approval input requests from AI SDK content parts that
* contain `tool-approval-request` entries.
*/
export declare function extractToolApprovalInputRequests(input: {
readonly content: readonly ContentPart<ToolSet>[];
}): InputRequest[];