Ag2 Testing

Test AG2 agents and tools without hitting a real LLM provider. Pass `TestConfig(...)` from `ag2.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 9f71a79 6.3 KB Updated

File contents

ag2ai/ag2-skills/tree/main/skills/ag2-testing commit 9f71a79b36

Frequently asked questions

npx skillmds@latest add ag2ai/ag2-testing