eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
19 lines (18 loc) • 698 B
TypeScript
import { type WorkflowToolDefinition } from "#tools/workflow-definition.js";
import { type AskQuestionInput, type AskQuestionOutput } from "#execution/tools/ask-question.js";
export type { AskQuestionInput, AskQuestionOutput };
/**
* Defines the opt-in `ask_question` tool.
*
* Export it from `agent/tools/ask_question.ts`:
*
* ```ts
* import { askQuestion } from "eve/tools/ask_question";
*
* export default askQuestion();
* ```
*
* Each call runs as a durable workflow that asks through `ctx.ask()`, so the
* turn waits for the answer without holding an application runtime open.
*/
export declare function askQuestion(): WorkflowToolDefinition<AskQuestionInput, AskQuestionOutput>;