eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
14 lines (13 loc) • 585 B
TypeScript
import type { SessionContext } from "#public/definitions/callback-context.js";
import type { ToolExecuteOptions } from "#shared/tool-definition.js";
/** Base context shared by tool executors. */
export type BaseToolContext = SessionContext & {
readonly abortSignal: AbortSignal;
readonly callId: string;
readonly toolName: string;
};
/** Builds the base context for one tool execution. */
export declare function buildBaseToolContext(input: {
readonly options: Pick<ToolExecuteOptions, "abortSignal" | "toolCallId">;
readonly toolName: string;
}): BaseToolContext;