Skip to content

v0.3.0 — streaming + typed AgentConfig

Choose a tag to compare

@bahattincinic bahattincinic released this 17 Apr 14:30
· 20 commits to main since this release

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