v0.3.0 — streaming + typed AgentConfig
New
- Streaming: `ChatResource.send_message_stream` and `ExecutionsResource.stream` yield typed events (`ExecutionEvent`, `ThinkingEvent`, `ToolStartEvent`, `ToolEndEvent`, `ContentEvent`, `DoneEvent`, `ErrorEvent`). Sync + async resources both support it.
- Typed AgentConfig: `AgentsResource.create_version(config=...)` now takes a typed `AgentConfig` — one of `SimpleAgentConfig`, `ChainAgentConfig`, `MultiAgentConfig`, `WorkflowAgentConfig`, `CompositeAgentConfig`. The SDK injects the `type` discriminator automatically.
- VERSION constant + User-Agent: `promptrails.VERSION` is available as an import and sent as `User-Agent: promptrails-python/` on every request.
Breaking
- `create_version(config=...)` now requires an `AgentConfig` instance, not a `dict`.
Install
pip install promptrails==0.3.0