AutoGen
Integrate Spooled with Microsoft AutoGen using the auto-instrumentation hook.
Install
pip install spooled-ai[integrations]Setup
my_autogen_agent.py
import spooled from spooled.integrations.autogen import install_autogen_hook recorder = spooled.init(agent_id="my_autogen_agent") install_autogen_hook(recorder) # All ConversableAgent send/receive calls are now auto-captured assistant = autogen.AssistantAgent("assistant", llm_config=llm_config) user_proxy = autogen.UserProxyAgent("user") # Chat runs as normal user_proxy.initiate_chat(assistant, message="Analyze this data") spooled.shutdown(success=True)
Note
install_autogen_hook(recorder) monkey-patches ConversableAgent.send and .receive globally. All agents created after the hook is installed will be automatically traced.What's captured
- Agent messages (sender, receiver, message type)
- LLM calls (model, tokens, latency)
- Code execution events
- Function/tool calls
- Group chat agent selection decisions
Note
Content is stripped to hashes. Only structural metadata is recorded.