glia v0.2.0
Refinements that deepen the glass-box thesis — every new capability is visible in the event stream and off by default.
Added
- Streaming output —
Agent(stream=True)re-emits provider text deltas asModelDeltaevents; newStreamChunktype and optionalStreamingLLMprotocol (ClaudeLLMviamessages.stream,EchoLLMdeterministic). Auto-falls back togeneratewhen a provider can't stream. - Parallel tool execution — a turn's tool calls run concurrently (
asyncio.gather, default on), withToolCalled/ToolReturnedevents and results kept in call order. - Human-in-the-loop approval —
approval=<policy>gates every tool behind an inspectable verdict (ApprovalRequested/ApprovalResolved). Denied calls never execute and return an error result the model can react to. Policies:approve_all,deny_all,allow_only,deny,prompt_in_terminal.
32 offline tests, green CI, new example (07_streaming_and_approval.py).
Install/upgrade: pip install -U glia-agents