/** * Submit result tool for structured subagent output. * * Subagents must call this tool to finish and return structured JSON output. */ import type { AgentTool, AgentToolContext, AgentToolResult, AgentToolUpdateCallback } from "@oh-my-pi/pi-agent-core"; import type { TSchema } from "@oh-my-pi/pi-ai/types"; import type { ToolSession } from "."; export interface YieldDetails { data: unknown; status: "success" | "aborted"; error?: string; } export declare class YieldTool implements AgentTool { #private; readonly name = "yield"; readonly label = "Submit Result"; readonly description: string; readonly parameters: TSchema; strict: boolean; readonly intent: "omit"; lenientArgValidation: boolean; constructor(session: ToolSession); execute(_toolCallId: string, params: unknown, _signal?: AbortSignal, _onUpdate?: AgentToolUpdateCallback, _context?: AgentToolContext): Promise>; }