eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
141 lines (140 loc) • 4.96 kB
TypeScript
import { z } from "#compiled/zod/index.js";
export declare const TASK_CANCEL_TOOL_NAME = "task_cancel";
/** Framework task-control tool names lowered by the runtime. */
export declare const TASK_TOOL_NAMES: ReadonlySet<string>;
export declare const TASK_CANCEL_INPUT_SCHEMA: z.ZodObject<{
taskIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>;
/** Strict model-visible task projection. */
export declare const TASK_VIEW_JSON_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
metadata: z.ZodObject<{
agentId: z.ZodOptional<z.ZodString>;
kind: z.ZodString;
mode: z.ZodOptional<z.ZodEnum<{
local: "local";
remote: "remote";
}>>;
name: z.ZodString;
}, z.core.$strip>;
taskId: z.ZodString;
status: z.ZodLiteral<"working">;
}, z.core.$strip>, z.ZodObject<{
metadata: z.ZodObject<{
agentId: z.ZodOptional<z.ZodString>;
kind: z.ZodString;
mode: z.ZodOptional<z.ZodEnum<{
local: "local";
remote: "remote";
}>>;
name: z.ZodString;
}, z.core.$strip>;
taskId: z.ZodString;
inputRequests: z.ZodReadonly<z.ZodArray<z.ZodType<import("../../shared/json.ts").JsonValue, unknown, z.core.$ZodTypeInternals<import("../../shared/json.ts").JsonValue, unknown>>>>;
status: z.ZodLiteral<"input_required">;
}, z.core.$strip>, z.ZodObject<{
metadata: z.ZodObject<{
agentId: z.ZodOptional<z.ZodString>;
kind: z.ZodString;
mode: z.ZodOptional<z.ZodEnum<{
local: "local";
remote: "remote";
}>>;
name: z.ZodString;
}, z.core.$strip>;
taskId: z.ZodString;
lastOutput: z.ZodObject<{
data: z.ZodType<import("../../shared/json.ts").JsonValue, unknown, z.core.$ZodTypeInternals<import("../../shared/json.ts").JsonValue, unknown>>;
type: z.ZodLiteral<"result">;
}, z.core.$strip>;
status: z.ZodLiteral<"completed">;
}, z.core.$strip>, z.ZodObject<{
metadata: z.ZodObject<{
agentId: z.ZodOptional<z.ZodString>;
kind: z.ZodString;
mode: z.ZodOptional<z.ZodEnum<{
local: "local";
remote: "remote";
}>>;
name: z.ZodString;
}, z.core.$strip>;
taskId: z.ZodString;
lastOutput: z.ZodObject<{
data: z.ZodType<import("../../shared/json.ts").JsonValue, unknown, z.core.$ZodTypeInternals<import("../../shared/json.ts").JsonValue, unknown>>;
type: z.ZodLiteral<"error">;
}, z.core.$strip>;
status: z.ZodLiteral<"failed">;
}, z.core.$strip>, z.ZodObject<{
metadata: z.ZodObject<{
agentId: z.ZodOptional<z.ZodString>;
kind: z.ZodString;
mode: z.ZodOptional<z.ZodEnum<{
local: "local";
remote: "remote";
}>>;
name: z.ZodString;
}, z.core.$strip>;
taskId: z.ZodString;
status: z.ZodLiteral<"cancelled">;
}, z.core.$strip>], "status">;
/** Broad schema advertised by task-control tool outputs. */
export declare const TASK_VIEW_OUTPUT_SCHEMA: z.ZodObject<{
inputRequests: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
lastOutput: z.ZodOptional<z.ZodObject<{
data: z.ZodUnknown;
type: z.ZodEnum<{
error: "error";
result: "result";
}>;
}, z.core.$strip>>;
metadata: z.ZodObject<{
agentId: z.ZodOptional<z.ZodString>;
kind: z.ZodString;
mode: z.ZodOptional<z.ZodEnum<{
local: "local";
remote: "remote";
}>>;
name: z.ZodString;
}, z.core.$strip>;
status: z.ZodEnum<{
cancelled: "cancelled";
completed: "completed";
failed: "failed";
input_required: "input_required";
working: "working";
}>;
taskId: z.ZodString;
}, z.core.$strip>;
export declare const TASK_VIEWS_OUTPUT_SCHEMA: z.ZodObject<{
tasks: z.ZodArray<z.ZodObject<{
inputRequests: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
lastOutput: z.ZodOptional<z.ZodObject<{
data: z.ZodUnknown;
type: z.ZodEnum<{
error: "error";
result: "result";
}>;
}, z.core.$strip>>;
metadata: z.ZodObject<{
agentId: z.ZodOptional<z.ZodString>;
kind: z.ZodString;
mode: z.ZodOptional<z.ZodEnum<{
local: "local";
remote: "remote";
}>>;
name: z.ZodString;
}, z.core.$strip>;
status: z.ZodEnum<{
cancelled: "cancelled";
completed: "completed";
failed: "failed";
input_required: "input_required";
working: "working";
}>;
taskId: z.ZodString;
}, z.core.$strip>>;
}, z.core.$strip>;
export declare const SUBAGENT_TASK_RECEIPT_OUTPUT_SCHEMA: z.ZodObject<{
agentId: z.ZodString;
status: z.ZodLiteral<"working">;
taskId: z.ZodString;
}, z.core.$strict>;