docmd-assistant v0.1.10 introduces multi-turn autonomous tool execution loops with real-time streaming capabilities, robust tool argument normalization, and concurrency locks to prevent state race conditions.
Key Features & Enhancements
Autonomous Tool Execution & Live Streaming
- Multi-Turn Tool Execution: Implemented multi-turn execution loops across both direct
aiplugand custom relay modes, allowing the engine to run registered tools (e.g. documentation search) and feed results back to the LLM automatically. - Real-Time Stream Support: Enabled
sendMessageStreamand streaming relay adapters to support tool-driven responses with real-time status callbacks.
Robust Tool Argument Normalization
- Flexible Parsing: Standardized parsing of tool arguments to handle varied model outputs—supporting raw JSON strings, nested
arguments/inputobjects, and direct parameter key-value pairs seamlessly. - Resilient Error Handling: Wrapped tool execution in safety boundaries to return structured error messages back to the model without crashing the conversation loop.
Concurrency Protection & UI Status Events
- Concurrency Locks: Added operational locks to
sendMessageandsendMessageStreamto prevent race conditions when multiple queries are submitted in rapid succession. - Status Events & Badges: Emits granular
statusevents (e.g.,"Searching documentation...","Thinking...") to give users immediate feedback during multi-step tool execution.
Upgrade
npm
pnpm
npm install docmd-assistant@0.1.10
pnpm add docmd-assistant@0.1.10