@gguf/claw
Version:
Multi-channel AI gateway with extensible messaging integrations
17 lines (16 loc) • 556 B
TypeScript
import type { AgentMessage, StreamFn } from "@mariozechner/pi-agent-core";
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;
}): AnthropicPayloadLogger | null;