openclaw/extensions/weave/clawdbot.plugin.json
Wolfram Ravenwolf 25afb60ece feat: Add W&B Weave plugin for LLM observability and tracing
Adds a new plugin that integrates with Weights & Biases Weave for
comprehensive LLM tracing and observability.

Plugin features:
- Full system prompt capture via new llm_request hook
- Multi-turn conversation tracing (all LLM requests)
- Tool call spans with inputs, outputs, duration
- Session lifecycle tracking
- Support for all LLM providers (Claude, GPT, Gemini, Bedrock, etc.)
- Self-hosted W&B instance support via baseUrl config
- Automatic project creation with RESTRICTED visibility
- Graceful degradation when core llm_request hook unavailable

Core changes:
- Add llm_request hook to plugin system for LLM payload observability
- Wrap streamFn in agent runner to capture requests to all providers

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 00:14:16 +01:00

93 lines
2.4 KiB
JSON

{
"id": "weave",
"name": "W&B Weave",
"description": "Weights & Biases Weave integration for LLM observability and tracing",
"version": "0.1.0",
"configSchema": {
"type": "object",
"properties": {
"apiKey": {
"type": "string",
"description": "W&B API key for authentication",
"uiHints": {
"label": "API Key",
"sensitive": true,
"help": "Get your API key from wandb.ai/settings"
}
},
"entity": {
"type": "string",
"description": "W&B entity (username or team name)",
"uiHints": {
"label": "Entity",
"placeholder": "your-username"
}
},
"project": {
"type": "string",
"description": "Default W&B project name for traces",
"default": "clawdbot",
"uiHints": {
"label": "Project",
"placeholder": "clawdbot"
}
},
"autoTrace": {
"type": "boolean",
"description": "Automatically trace all agent runs",
"default": true,
"uiHints": {
"label": "Auto-trace Agent Runs"
}
},
"traceToolCalls": {
"type": "boolean",
"description": "Log tool calls as child spans",
"default": true,
"uiHints": {
"label": "Trace Tool Calls"
}
},
"traceSessions": {
"type": "boolean",
"description": "Track session lifecycle",
"default": true,
"uiHints": {
"label": "Trace Sessions"
}
},
"baseUrl": {
"type": "string",
"description": "Custom W&B server URL (leave empty for default)",
"uiHints": {
"label": "Base URL",
"advanced": true,
"placeholder": "https://api.wandb.ai"
}
},
"sampleRate": {
"type": "number",
"description": "Trace sampling rate (0.0 to 1.0)",
"default": 1.0,
"minimum": 0,
"maximum": 1,
"uiHints": {
"label": "Sample Rate",
"advanced": true,
"help": "Set to less than 1.0 to sample traces"
}
},
"debug": {
"type": "boolean",
"description": "Enable verbose debug logging",
"default": false,
"uiHints": {
"label": "Debug Mode",
"advanced": true
}
}
},
"required": ["apiKey", "entity"]
}
}