Tags: babelcloud/general-agent-sdk
Tags
feat: add web_search tool (Brave Search API) Single-provider search. Returns null if BRAVE_SEARCH_API_KEY not set. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
feat: add SDK-native tool interface and result helpers OpenClawTool interface with Zod schemas. toAnthropicToolDef() converts to Anthropic API format. textResult/jsonResult/imageResult helpers for tool return values. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
test: fix session to only use explicitly configured API key API key from env var is handled by the Anthropic provider, not the session layer. Session falls back to stub behavior when no explicit anthropicApiKey is set in params or SDK options. This preserves all existing integration test behavior. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
chore: sync raw pi-mono source (21 files, unadapted) Raw TypeScript copies from pi-mono. These files will NOT compile (broken imports to @mariozechner/*, @sinclair/typebox, pi-tui). Subsequent commits adapt imports and schemas. Source: https://github.com/badlogic/pi-mono @ cb4e4d8c License: MIT (Mario Zechner) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
feat: vendor edit tool + fuzzy matching from pi-mono TypeBox→Zod, stripped TUI. Preserved: EditOperations, fuzzy matching (Unicode NFKC, smart quotes, trailing whitespace), uniqueness check, unified diff output via 'diff' package. Source: pi-mono @ cb4e4d8c (MIT) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
feat: vendor process tool for backgrounded session management Actions: list, poll, log, write, kill, remove. Shares process registry with exec tool. Source: openclaw @ edb5123f (MIT) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
chore: finalize provenance manifests Update provenance for all vendored files from pi-mono @ cb4e4d8c. Each entry now has specific adaptation notes instead of "pending". MIT licensed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
feat: vendor browser tool (host mode only) from openclaw Playwright-based browser automation stub. Removed sandbox/node modes and gateway dependency. Host-only execution. Full implementation pending browser lifecycle management. Source: openclaw @ edb5123f (MIT) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
feat: adapt anthropic streaming provider from pi-mono Streaming Messages API with extended thinking (adaptive Opus 4.6/ Sonnet 4.6, budget-based older models), cache control, streaming JSON tool call parsing. Removed: stealth mode, OAuth/Claude Code identity, GitHub Copilot. Source: pi-mono @ cb4e4d8c (MIT) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
feat: adapt agent loop core from pi-mono Agentic tool-dispatch loop with parallel/sequential execution, beforeToolCall/afterToolCall hooks, steering/follow-up messages, abort signal propagation. Source: pi-mono @ cb4e4d8c (MIT) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>