openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
21 lines (20 loc) • 705 B
TypeScript
import type { AgentMessage, StreamFn } from "@mariozechner/pi-agent-core";
import { type QueuedFileWriter } from "./queued-file-writer.js";
type PayloadLogWriter = QueuedFileWriter;
export type AnthropicPayloadLogger = {
enabled: true;
wrapStreamFn: (streamFn: StreamFn) => StreamFn;
recordUsage: (messages: AgentMessage[], error?: unknown) => void;
};
export declare function createAnthropicPayloadLogger(params: {
env?: NodeJS.ProcessEnv;
runId?: string;
sessionId?: string;
sessionKey?: string;
provider?: string;
modelId?: string;
modelApi?: string | null;
workspaceDir?: string;
writer?: PayloadLogWriter;
}): AnthropicPayloadLogger | null;
export {};