You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dual Summary Feature:
- Generate both short (1-2 sentence) and full summaries in a single LLM query
- Consistent field naming: ShortSummary and Summary across all structures
- Structured parsing with SHORT: and FULL: markers for reliability
- Graceful fallback: Auto-extracts short summary if parsing fails
- Summaries persisted in conversation state and bridge events
- New GetSummary() method on Orchestrator for programmatic access
Implementation:
- Updated SummaryMetadata (bridge events): short_summary + summary fields
- Updated StateMetadata (state files): short_summary + summary fields
- Added parseDualSummary() function with robust parsing logic
- Modified generateSummary() prompt to request both summaries
- Comprehensive tests (14 test cases) covering parsing edge cases
Benefits:
- Single API call generates both summaries (cost & time efficient)
- Easy parsing with structured markers
- Ready for AgentPipe Web UI integration
- Ideal for list views (short) and detail pages (full)
Documentation:
- Updated README with dual summary section
- Updated streaming section to highlight dual summaries in events
- Finalized CHANGELOG for v0.5.1 release
All tests passing. Ready for release.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
OpenRouter provides unified API access to 400+ models from multiple providers without requiring CLI installations. This is AgentPipe's first API-based agent type.
669
+
670
+
**Setup:**
671
+
672
+
1.**Get an API Key**: Sign up at [openrouter.ai](https://openrouter.ai) and obtain your API key
673
+
2.**Set Environment Variable**:
674
+
```bash
675
+
export OPENROUTER_API_KEY=your-api-key-here
676
+
```
677
+
3.**Create a Configuration**:
678
+
```yaml
679
+
version: "1.0"
680
+
681
+
agents:
682
+
- id: claude-agent
683
+
type: openrouter
684
+
name: "Claude via OpenRouter"
685
+
model: anthropic/claude-sonnet-4-5
686
+
prompt: "You are a helpful assistant"
687
+
temperature: 0.7
688
+
max_tokens: 1000
689
+
```
690
+
4. **Run**:
691
+
```bash
692
+
agentpipe run -c your-config.yaml
693
+
```
694
+
695
+
**Available Models** (examples):
696
+
-`anthropic/claude-sonnet-4-5` - Claude Sonnet 4.5
697
+
-`google/gemini-2.5-pro` - Gemini 2.5 Pro
698
+
-`openai/gpt-5` - GPT-5
699
+
-`deepseek/deepseek-r1` - DeepSeek R1
700
+
- And 400+ more - see [openrouter.ai/docs/models](https://openrouter.ai/docs/models)
701
+
702
+
**Features:**
703
+
- ✅ No CLI installation required
704
+
- ✅ Real-time token usage from API responses
705
+
- ✅ Accurate cost tracking via provider registry
706
+
- ✅ Streaming support for real-time responses
707
+
- ✅ Access to latest models without CLI updates
708
+
- ✅ Multi-provider conversations in a single config
0 commit comments