UNPKG

eve

Version:

Filesystem-first framework for durable backend AI agents that run anywhere.

159 lines (158 loc) 7.07 kB
import { z } from "#compiled/zod/index.js"; /** * Eve-owned `tool-call` action requested by the model. * * Depending on the tool definition, it can execute locally, be provider * executed, or be handled later by the runtime. */ export type RuntimeToolCallActionRequest = z.infer<typeof runtimeToolCallActionRequestSchema>; /** * Zod schema for one Eve-owned `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>; /** * Eve-owned `load-skill` action requested by the model. */ type RuntimeLoadSkillActionRequest = z.infer<typeof runtimeLoadSkillActionRequestSchema>; /** * Zod schema for one Eve-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>; /** * Eve-owned action request surfaced by the harness. * * A `tool-call` is one action kind, alongside control-plane work such as * `load-skill` and runtime-dispatched subagent calls. */ 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. * * `usage` carries the completed child session's token totals so the * caller can attribute the subagent's spend. */ 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; usage: z.ZodOptional<z.ZodObject<{ cacheReadTokens: z.ZodNumber; cacheWriteTokens: z.ZodNumber; inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; }, z.core.$strip>>; }, 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 {};