Runnable Microsoft AutoGen examples using the official capsolver-agent executor.
Examples only: no separately published
autogen-capsolverpackage or duplicated SDK.
The demo maps shared async CapSolver operations to AutoGen FunctionTool instances. AutoGen owns the agent loop; CapSolver Agent owns tool execution.
git clone https://github.com/capsolver-ai/autogen-capsolver.git
cd autogen-capsolver
python -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txtExport .env.example values and run python examples/quickstart.py.
from autogen_core.tools import FunctionTool
from capsolver_agent import create_executor
capsolver = create_executor()
async def get_capsolver_balance() -> str:
return str(await capsolver.execute("get_balance", {}))
tool = FunctionTool(get_capsolver_balance, description="Return the CapSolver balance.")See examples/quickstart.py for the complete AssistantAgent flow.
examples/quickstart.py AutoGen AssistantAgent and FunctionTools
requirements.txt Shared SDK repositories plus AutoGen
tests/test_demo.py Offline validation
.github/workflows/ci.yml Demo checks
Use the example only for lawful, user-authorized workflows that respect target-site terms. Never commit secrets or private target data.
See CONTRIBUTING.md, SUPPORT.md, and SECURITY.md. Licensed under the ISC License.
AutoGen is a third-party project. This repository is maintained by CapSolver and is not affiliated with or endorsed by Microsoft.