eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
151 lines (150 loc) • 6.88 kB
TypeScript
import { z } from "#compiled/zod/index.js";
/**
* Runtime-owned authored tool-call request surfaced by a harness and executed
* later by step-backed runtime code.
*/
export type RuntimeToolCallActionRequest = z.infer<typeof runtimeToolCallActionRequestSchema>;
/**
* Zod schema for one runtime-owned authored tool-call action request.
*/
export declare const runtimeToolCallActionRequestSchema: z.ZodObject<{
callId: z.ZodString;
input: z.ZodType<import("../../shared/json.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("../../shared/json.ts").JsonObject, unknown>>;
kind: z.ZodLiteral<"tool-call">;
toolName: z.ZodString;
}, z.core.$strict>;
/**
* Runtime-owned subagent-call request surfaced by a harness and executed later
* by workflow-backed runtime code.
*/
export type RuntimeSubagentCallActionRequest = z.infer<typeof runtimeSubagentCallActionRequestSchema>;
/**
* Zod schema for one runtime-owned subagent-call action request.
*/
declare const runtimeSubagentCallActionRequestSchema: z.ZodObject<{
callId: z.ZodString;
description: z.ZodString;
input: z.ZodType<import("../../shared/json.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("../../shared/json.ts").JsonObject, unknown>>;
kind: z.ZodLiteral<"subagent-call">;
name: z.ZodString;
nodeId: z.ZodString;
subagentName: z.ZodString;
}, z.core.$strict>;
/**
* Runtime-owned remote-agent-call request surfaced by a harness and executed
* later by workflow-backed runtime code.
*/
export type RuntimeRemoteAgentCallActionRequest = z.infer<typeof runtimeRemoteAgentCallActionRequestSchema>;
/**
* Zod schema for one runtime-owned remote-agent-call action request.
*/
export declare const runtimeRemoteAgentCallActionRequestSchema: z.ZodObject<{
callId: z.ZodString;
description: z.ZodString;
input: z.ZodType<import("../../shared/json.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("../../shared/json.ts").JsonObject, unknown>>;
kind: z.ZodLiteral<"remote-agent-call">;
name: z.ZodString;
nodeId: z.ZodString;
remoteAgentName: z.ZodString;
}, z.core.$strict>;
/**
* Runtime-owned action request surfaced by a harness.
*
* Harness-native capabilities such as `bash` do not cross the harness boundary
* as runtime actions. Only runtime-executed requests use this taxonomy.
*/
type RuntimeLoadSkillActionRequest = z.infer<typeof runtimeLoadSkillActionRequestSchema>;
/**
* Zod schema for one runtime-owned load-skill action request.
*/
declare const runtimeLoadSkillActionRequestSchema: z.ZodObject<{
callId: z.ZodString;
input: z.ZodType<import("../../shared/json.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("../../shared/json.ts").JsonObject, unknown>>;
kind: z.ZodLiteral<"load-skill">;
}, z.core.$strict>;
/**
* Runtime-owned action request surfaced by a harness.
*
* Harness-native capabilities such as `bash` do not cross the harness boundary
* as runtime actions. Only runtime-executed requests use this taxonomy.
*/
export type RuntimeActionRequest = RuntimeLoadSkillActionRequest | RuntimeRemoteAgentCallActionRequest | RuntimeSubagentCallActionRequest | RuntimeToolCallActionRequest;
/**
* Zod schema for one runtime action request.
*/
export declare const runtimeActionRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
callId: z.ZodString;
input: z.ZodType<import("../../shared/json.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("../../shared/json.ts").JsonObject, unknown>>;
kind: z.ZodLiteral<"load-skill">;
}, z.core.$strict>, z.ZodObject<{
callId: z.ZodString;
description: z.ZodString;
input: z.ZodType<import("../../shared/json.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("../../shared/json.ts").JsonObject, unknown>>;
kind: z.ZodLiteral<"remote-agent-call">;
name: z.ZodString;
nodeId: z.ZodString;
remoteAgentName: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
callId: z.ZodString;
description: z.ZodString;
input: z.ZodType<import("../../shared/json.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("../../shared/json.ts").JsonObject, unknown>>;
kind: z.ZodLiteral<"subagent-call">;
name: z.ZodString;
nodeId: z.ZodString;
subagentName: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
callId: z.ZodString;
input: z.ZodType<import("../../shared/json.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("../../shared/json.ts").JsonObject, unknown>>;
kind: z.ZodLiteral<"tool-call">;
toolName: z.ZodString;
}, z.core.$strict>], "kind">;
/**
* Runtime-owned authored tool-result projected back into a harness resume call.
*/
export type RuntimeToolResultActionResult = z.infer<typeof runtimeToolResultActionResultSchema>;
/**
* Zod schema for one runtime-owned authored tool-result action result.
*/
declare const runtimeToolResultActionResultSchema: z.ZodObject<{
callId: z.ZodString;
isError: z.ZodOptional<z.ZodBoolean>;
kind: z.ZodLiteral<"tool-result">;
output: z.ZodType<import("../../shared/json.ts").JsonValue, unknown, z.core.$ZodTypeInternals<import("../../shared/json.ts").JsonValue, unknown>>;
toolName: z.ZodString;
}, z.core.$strict>;
/**
* Runtime-owned subagent result projected back into a harness resume call.
*/
export type RuntimeSubagentResultActionResult = z.infer<typeof runtimeSubagentResultActionResultSchema>;
/**
* Zod schema for one runtime-owned subagent result action result.
*/
declare const runtimeSubagentResultActionResultSchema: z.ZodObject<{
callId: z.ZodString;
isError: z.ZodOptional<z.ZodBoolean>;
kind: z.ZodLiteral<"subagent-result">;
output: z.ZodType<import("../../shared/json.ts").JsonValue, unknown, z.core.$ZodTypeInternals<import("../../shared/json.ts").JsonValue, unknown>>;
subagentName: z.ZodString;
}, z.core.$strict>;
/**
* Runtime-owned action result produced by framework-owned loading code.
*/
type RuntimeLoadSkillActionResult = z.infer<typeof runtimeLoadSkillActionResultSchema>;
/**
* Zod schema for one runtime-owned load-skill action result.
*
* The result still reports whether a skill became active during the turn; the
* action name reflects how the model requests those instructions.
*/
declare const runtimeLoadSkillActionResultSchema: z.ZodObject<{
callId: z.ZodString;
isError: z.ZodOptional<z.ZodBoolean>;
kind: z.ZodLiteral<"load-skill-result">;
output: z.ZodType<import("../../shared/json.ts").JsonValue, unknown, z.core.$ZodTypeInternals<import("../../shared/json.ts").JsonValue, unknown>>;
name: z.ZodOptional<z.ZodString>;
}, z.core.$strict>;
/**
* Runtime-owned action result produced by framework-owned runtime code.
*/
export type RuntimeActionResult = RuntimeLoadSkillActionResult | RuntimeSubagentResultActionResult | RuntimeToolResultActionResult;
export {};