eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
35 lines (34 loc) • 1.48 kB
TypeScript
import type { ToolSet } from "ai";
import type { HarnessToolDefinition } from "#harness/execute-tool.js";
import type { HarnessSession, HarnessToolMap } from "#harness/types.js";
import type { WorkflowSandboxLifecycle } from "#shared/workflow-sandbox.js";
type AdvertisedToolSession = Pick<HarnessSession, "rootSessionId" | "subagentDepth">;
type AdvertisedToolMapInput = {
readonly session: AdvertisedToolSession;
readonly tools: HarnessToolMap;
};
type AdvertisedToolDefinitionsInput = {
readonly session: AdvertisedToolSession;
readonly tools: readonly HarnessToolDefinition[];
};
type AdvertisedModelToolsInput = {
readonly modelTools: ToolSet;
readonly session: HarnessSession;
readonly tools: HarnessToolMap;
readonly workflow?: {
readonly lifecycle?: (input: {
readonly session: HarnessSession;
readonly tools: HarnessToolMap;
}) => WorkflowSandboxLifecycle | undefined;
readonly maxSubagents?: number;
};
};
type AdvertisedModelTools = {
readonly harnessTools: HarnessToolMap;
readonly modelTools: ToolSet;
readonly session: HarnessSession;
};
export declare function getAdvertisedTools(input: AdvertisedModelToolsInput): Promise<AdvertisedModelTools>;
export declare function getAdvertisedTools(input: AdvertisedToolMapInput): HarnessToolMap;
export declare function getAdvertisedTools(input: AdvertisedToolDefinitionsInput): readonly HarnessToolDefinition[];
export {};