PhoenixAI.Providers.TestProvider (PhoenixAI v0.1.0)

Copy Markdown View Source

Test provider for offline testing. Returns scripted responses without network calls.

Supports two modes:

  • Queue (FIFO): Pre-defined responses consumed in order
  • Handler: Custom function receives messages and opts

State is per-process (keyed by PID) for async test isolation.

Summary

Functions

get_calls(pid)

put_handler(pid, handler)

put_responses(pid, responses)

start_state(pid)

stop_state(pid)