Replaying an AgentChat run with the model server switched off (verified on autogen-agentchat 0.7.5) #8217
xizhuomengcontin
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Verified against autogen-agentchat 0.7.5 today: an AgentChat run can be recorded from outside the process and then re-run with no model server present.
Disclosure: I work on the tool (OrcaReplay, Apache-2.0, no paid tier).
Why AutoGen needs no special support
OpenAIChatCompletionClientwith nobase_urlargument falls through to the OpenAI SDK's ownOPENAI_BASE_URL. I checked rather than assumed:So a recording proxy only has to set that variable for the child process. Nothing is installed into AutoGen β no callback, no wrapper, no change to your agent code.
The run
A real
AssistantAgentwithagent.run(task=β¦), not a bare SDK call.What it is useful for
Re-running an agent while you change the system message, the tools, or the termination condition β the model responses stay fixed, so you see what your change did rather than what the sampler did. Also useful in CI, and for chasing one bad answer without paying for it each time.
From a checkpoint the run can instead continue live on a different model, which is the honest way to compare two models on the same task.
Two limits worth stating
egress=blockedon replay means model-provider egress. Recorded tool calls still execute for real, so a recorded shell or HTTP tool runs again. It is not a sandbox.Happy to be told
OpenAIChatCompletionClienthas other origin paths I have not exercised β I would rather fix the assumption than ship it.All reactions