/** * log_usage tool — Record token usage and cost for an agent operation. * * Usage records are markdown notes in the Usage/ folder with structured * YAML frontmatter. They track input/output tokens, model, cost, and * duration for individual agent operations. If a task_id is provided, * a summary is also appended to that task's Agent Log. */ import { z } from "zod"; import { Vault } from "../vault.js"; import { Config } from "../config.js"; export declare const logUsageSchema: { agent_id: z.ZodString; task_id: z.ZodOptional; project_id: z.ZodOptional; input_tokens: z.ZodNumber; output_tokens: z.ZodNumber; model: z.ZodOptional; cost_usd: z.ZodOptional; duration_seconds: z.ZodOptional; notes: z.ZodOptional; }; export declare const logUsageHandler: (vault: Vault, config: Config) => (input: { agent_id: string; task_id?: string; project_id?: string; input_tokens: number; output_tokens: number; model?: string; cost_usd?: number; duration_seconds?: number; notes?: string; }) => Promise<{ content: { type: "text"; text: string; }[]; isError?: boolean; }>; //# sourceMappingURL=log-usage.d.ts.map