Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Occam AI Agent #784

Draft
wants to merge 22 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
9fd66ff
Occam Agent starting point
marklysze Feb 4, 2025
85346aa
Merge remote-tracking branch 'origin/main' into occamaiagents
marklysze Feb 6, 2025
a129b2d
Reply function example
marklysze Feb 6, 2025
36689d4
Merge branch 'main' into occamaiagents
marklysze Feb 17, 2025
f4fc8cb
Merge remote-tracking branch 'origin/main' into occamaiagents
marklysze Feb 24, 2025
cfa7c5e
Merge branch 'main' into occamaiagents
davorrunje Feb 25, 2025
61550c7
wip OccamAgent integration with Occam SDK
mohamedabdelbary Mar 4, 2025
0778c8c
Merge branch 'occamaiagents' of github.com:ag2ai/ag2 into occamaiagents
mohamedabdelbary Mar 4, 2025
67fbc54
some printing
mohamedabdelbary Mar 4, 2025
71bcabe
Reply function hook up fix
marklysze Mar 5, 2025
e342502
Merge remote-tracking branch 'origin/main' into occamaiagents
marklysze Mar 5, 2025
78f6c75
Tidy
marklysze Mar 5, 2025
6b166de
Updates
marklysze Mar 5, 2025
8eb5f18
remove main run from occam.py
mohamedabdelbary Mar 6, 2025
85e5f59
wip example init and run script for occam agent
mohamedabdelbary Mar 6, 2025
876f15f
tidy up script and args
mohamedabdelbary Mar 6, 2025
346a72d
Notebook
marklysze Mar 14, 2025
92b0a53
Notebook
marklysze Mar 14, 2025
4451c73
Merge remote-tracking branch 'origin/main' into occamaiagents
marklysze Mar 14, 2025
6dfbfce
pre-commit types and tidy
marklysze Mar 14, 2025
8a4a596
Merge remote-tracking branch 'origin/main' into occamaiagents
marklysze Mar 17, 2025
9592d19
Merge remote-tracking branch 'origin/main' into occamaiagents
marklysze Mar 20, 2025
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
Next Next commit
Occam Agent starting point
Signed-off-by: Mark Sze <[email protected]>
marklysze committed Feb 4, 2025
commit 9fd66ffe0ae36c13c286f53d336bbf8a57d9ea7c
7 changes: 7 additions & 0 deletions autogen/agents/experimental/occam/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (c) 2023 - 2025, AG2ai, Inc., AG2ai open-source projects maintainers and core contributors
#
# SPDX-License-Identifier: Apache-2.0

from .occam import OccamAgent

__all__ = ["OccamAgent"]
27 changes: 27 additions & 0 deletions autogen/agents/experimental/occam/occam.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright (c) 2023 - 2025, AG2ai, Inc., AG2ai open-source projects maintainers and core contributors
#
# SPDX-License-Identifier: Apache-2.0


from .... import ConversableAgent
from ....doc_utils import export_module

__all__ = ["OccamAgent"]


@export_module("autogen.agents")
class OccamAgent(ConversableAgent):
"""Occam.ai Agent"""

def __init__(
self,
*args,
**kwargs,
) -> None:
"""Initialize the WebSurferAgent.

Args:
llm_config (dict[str, Any]): The LLM configuration.
"""

super().__init__(*args, **kwargs)

Check warning on line 27 in autogen/agents/experimental/occam/occam.py

Codecov / codecov/patch

autogen/agents/experimental/occam/occam.py#L27

Added line #L27 was not covered by tests
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -190,6 +190,8 @@ cohere = ["cohere>=5.5.8"]
ollama = ["ollama>=0.4.5", "fix_busted_json>=0.0.18"]
bedrock = ["boto3>=1.34.149"]

agent-occam = ["occam-sdk>=0.1.0,<1.0"]

## dev dependencies

# test dependencies
1 change: 1 addition & 0 deletions setup_ag2.py
Original file line number Diff line number Diff line change
@@ -65,6 +65,7 @@
"cohere": ["pyautogen[cohere]==" + __version__],
"ollama": ["pyautogen[ollama]==" + __version__],
"bedrock": ["pyautogen[bedrock]==" + __version__],
"agent-occam": ["pyautogen[agent-occam]==" + __version__],
"test": ["pyautogen[test]==" + __version__],
"docs": ["pyautogen[docs]==" + __version__],
"types": ["pyautogen[types]==" + __version__],
1 change: 1 addition & 0 deletions setup_autogen.py
Original file line number Diff line number Diff line change
@@ -65,6 +65,7 @@
"cohere": ["pyautogen[cohere]==" + __version__],
"ollama": ["pyautogen[ollama]==" + __version__],
"bedrock": ["pyautogen[bedrock]==" + __version__],
"agent-occam": ["pyautogen[agent-occam]==" + __version__],
"test": ["pyautogen[test]==" + __version__],
"docs": ["pyautogen[docs]==" + __version__],
"types": ["pyautogen[types]==" + __version__],