Ag2 Testing

Test AG2 beta agents and tools without hitting a real LLM provider. Pass `TestConfig(...)` from `autogen.beta.testing` as the agent's config (or per-`ask`) to mock LLM responses, inject `ToolCallEvent`s to simulate tool execution, and assert success / error paths. Use when the user is writing pytest tests for an Agent or Tool.

ag2ai Updated

File contents

ag2ai/build-with-ag2/tree/main/.agents/skills/ag2-testing commit 3494adf45a

Frequently asked questions

npx skillmds@latest add ag2ai/ag2-testing-2