Skip to content

Repository files navigation

Microsoft AutoGen + CapSolver Agent examples

Demo repository CI License: ISC

Runnable Microsoft AutoGen examples using the official capsolver-agent executor.

Examples only: no separately published autogen-capsolver package or duplicated SDK.

Repository scope

The demo maps shared async CapSolver operations to AutoGen FunctionTool instances. AutoGen owns the agent loop; CapSolver Agent owns tool execution.

Quick start

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.txt

Export .env.example values and run python examples/quickstart.py.

Key integration code

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.

Project layout

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

Documentation

Responsible use

Use the example only for lawful, user-authorized workflows that respect target-site terms. Never commit secrets or private target data.

Contributing, support, and license

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.

About

Runnable Microsoft AutoGen examples using the CapSolver Agent library.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages