import type { ToolPlugin } from "../tools/types.js"; declare const STRUCTURED_OUTPUT_TOOL_NAME = "StructuredOutput"; /** * Creates a system prompt addition that instructs the agent to use structured output */ export declare function createStructuredOutputPrompt(schema: object): string; /** * Creates a StructuredOutput ToolPlugin that enforces the given schema */ export declare function createStructuredOutputTool(schema: object): ToolPlugin; /** * Extract structured result from a completed subagent's messages. * Looks for StructuredOutput tool calls in the messages. * Falls back to JSON.parse on the last assistant message text. */ export declare function extractStructuredResult(messages: Array<{ role: string; content?: string; tool_calls?: Array<{ function: { name: string; arguments: string; }; }>; }>, schema: object): unknown | null; export { STRUCTURED_OUTPUT_TOOL_NAME };