/** * LLM output hooks — captures HTTP references from LLM reasoning text. * * When an LLM mentions URLs in its output (e.g., "I'll call the ClawTrail API at * https://sapi.clawtrail.ai/..."), this handler extracts and logs them as * LLM_HTTP_REFERENCE note events. These provide provenance narrative context * for HTTP calls that may be executed outside MCP tool calls. * * URLs are always hashed — raw URLs are never persisted. */ import type { ContextGraph } from "@clawtrail/context-graph"; import type { OpenClawSessionContext } from "./lifecycle.js"; export interface LlmHttpReference { urlHash: string; hostHash: string; method?: string; } /** * Extract HTTP references from LLM output text. * Returns deduplicated references with hashed URLs. */ export declare function extractHttpReferences(content: string): LlmHttpReference[]; /** * Create handlers for LLM output capture. */ export declare function createLlmOutputHandlers(cg: ContextGraph): { onLlmOutput(content: string, ctx: OpenClawSessionContext): Promise; }; //# sourceMappingURL=llmOutput.d.ts.map