Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
python -m pip install --upgrade pip
pip install pytest pytest-asyncio pytest-aiohttp pytest-mock
pip install -e .
pip install -r workspace/backend/requirements.txt

- name: Test ONM primitives
run: pytest --tb=short -v tests/test_onm_addressing.py tests/test_onm_events.py tests/test_onm_pipeline.py
Expand Down
33 changes: 33 additions & 0 deletions docs/updates/2025-12-19-admin-dashboard.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,39 @@ if __name__ == "__main__":
main()
```

### AutoGen Integration

Wrap existing AutoGen agents or teams:

```python
from openagents.agents import AutoGenAgentRunner

def create_autogen_entity():
# Build or import your existing AutoGen agent or team here.
# The object should expose run() or run_stream().
from my_project.autogen_app import build_agent

return build_agent()

def main():
autogen_entity = create_autogen_entity()
runner = AutoGenAgentRunner(
autogen_entity=autogen_entity,
agent_id="autogen-assistant",
include_network_tools=True,
)
runner.start(network_id="your-network-id")
runner.wait_for_stop()

if __name__ == "__main__":
main()
```

Install the optional dependencies with `pip install "openagents[autogen]"`.
The AutoGen integration expects a live Python object that exposes `run()`
or `run_stream()`. It does not currently add YAML-based or factory-based
AutoGen loading.

### MCP Integration (Claude Desktop)

JSON configuration for Claude Desktop:
Expand Down
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ langchain = [
"langchain-openai>=0.1.0", # OpenAI integration for LangChain
]

# AutoGen integration (optional)
autogen = [
"autogen-core>=0.7.5",
"autogen-agentchat>=0.7.5",
]

# Claude Code adapter — no extra Python deps needed.
# Requires `claude` CLI: curl -fsSL https://claude.ai/install.sh | bash

Expand Down Expand Up @@ -113,7 +119,7 @@ docs = [

# All optional dependencies
all = [
"openagents[sdk,p2p,webrtc,langchain,dev,docs]",
"openagents[sdk,p2p,webrtc,langchain,autogen,claude,dev,docs]",
]

[project.urls]
Expand Down
11 changes: 11 additions & 0 deletions src/openagents/agents/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
openagents_tool_to_pydantic,
pydantic_tool_to_openagents,
)
from .autogen_agent import (
AutoGenAgentRunner,
create_autogen_runner,
openagents_tool_to_autogen,
autogen_tool_to_openagents,
)

__all__ = [
"AgentRunner",
Expand All @@ -54,4 +60,9 @@
"create_pydantic_runner",
"openagents_tool_to_pydantic",
"pydantic_tool_to_openagents",
# AutoGen integration
"AutoGenAgentRunner",
"create_autogen_runner",
"openagents_tool_to_autogen",
"autogen_tool_to_openagents",
]
Loading
Loading