-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from codefuse-ai/muagent_dev
add muagen sdk v0.1.0
- Loading branch information
Showing
105 changed files
with
13,656 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
# encoding: utf-8 | ||
''' | ||
@author: 温进 | ||
@file: __init__.py.py | ||
@time: 2023/11/9 下午4:01 | ||
@desc: | ||
''' | ||
from .ekg_project import EKG, get_ekg_project_config_from_env | ||
from .project_manager import get_project_config_from_env | ||
from .models import get_model | ||
from .agents import get_agent | ||
from .tools import get_tool | ||
|
||
__all__ = [ | ||
"EKG", "get_model", "get_agent", "get_tool", | ||
"get_ekg_project_config_from_env", | ||
"get_project_config_from_env" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
from .base_agent import BaseAgent | ||
from .single_agent import SingleAgent | ||
from .react_agent import ReactAgent | ||
from .task_agent import TaskAgent | ||
from .group_agent import GroupAgent | ||
from .user_agent import UserAgent | ||
from .functioncall_agent import FunctioncallAgent | ||
from ..schemas import AgentConfig | ||
|
||
__all__ = [ | ||
"BaseAgent", | ||
"SingleAgent", | ||
"ReactAgent", | ||
"TaskAgent", | ||
"GroupAgent", | ||
"UserAgent", | ||
"FunctioncallAgent" | ||
] | ||
|
||
|
||
def get_agent(agent_config: AgentConfig) -> BaseAgent: | ||
"""Get the agent by agent config | ||
Args: | ||
agent_config (`AgentConfig`): The agent config | ||
Returns: | ||
`BaseAgent`: The specific agent | ||
""" | ||
return BaseAgent.init_from_project_config(agent_config) |
Oops, something went wrong.