replay_session
Replays a recorded Session against a pipeline version, including a draft, into a new Session to test pipeline changes on real sessions without touching the source or deployed pipeline.
Instructions
Replays a recorded Session against a pipeline version, a draft included, into a new Session.
Use it to check a pipeline change on real Sessions: replay the Sessions behind the change
against the draft version, then try_evaluator the relevant Evaluators on each source
Session and on its replayed_session_id, and compare. Each replay runs the pipeline on the
customer's models, so say what it costs and get a yes before replaying. The source Session and
the deployed pipeline are untouched.
FIRST_USER_MESSAGE replays the first turn only; ALL_USER_MESSAGES replays every turn of a chat in
order. Leave it unset to use the server's default (the first turn), and say so when reporting.
If status is still CREATED or STARTED the wait ran out: poll get_session_replay.
:param pipeline_name: Name of the pipeline.
:param session_id: The Session to replay: a search_session_id, or a single-turn run's query_id.
:param pipeline_version_id: The pipeline version to replay against, e.g. the current draft's.
:param replay_mode: FIRST_USER_MESSAGE or ALL_USER_MESSAGES; unset uses the server's default.
:param wait_seconds: How long to wait for the replay before handing back the id to poll.
:returns: The replay report with the new Session's id, or an error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| replay_mode | No | ||
| wait_seconds | No | ||
| pipeline_name | Yes | ||
| pipeline_version_id | Yes |