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

[Feature Request] Workforce Refactor: Customize default toolkits for the new works #1684

Open
1 of 2 tasks
yiyiyi0817 opened this issue Mar 2, 2025 · 3 comments
Open
1 of 2 tasks
Assignees
Labels
Agent Related to camel agents enhancement New feature or request Refactor
Milestone

Comments

@yiyiyi0817
Copy link
Member

Required prerequisites

Motivation

_create_new_agent function in camel\societies\workforce\workforce.py must use these toolkits, we need to refactor it.

        # Default tools for a new agent
        function_list = [
            *SearchToolkit().get_tools(),
            *WeatherToolkit().get_tools(),
            *GoogleMapsToolkit().get_tools(),
        ]

Solution

No response

Alternatives

No response

Additional context

No response

@yiyiyi0817 yiyiyi0817 added the enhancement New feature or request label Mar 2, 2025
@yiyiyi0817 yiyiyi0817 self-assigned this Mar 2, 2025
@yiyiyi0817 yiyiyi0817 moved this to Backlog in Project Camel Mar 2, 2025
@yiyiyi0817 yiyiyi0817 added this to the Sprint 24 milestone Mar 2, 2025
@yiyiyi0817 yiyiyi0817 added Agent Related to camel agents Refactor labels Mar 2, 2025
@yiyiyi0817
Copy link
Member Author

It is already achieved, so close the issue.

math_toolkit = MathToolkit().get_tools()

new_worker_agent_kwargs = {
    "model": model,
    "tools": math_toolkit,
}


workforce = Workforce(
...
    new_worker_agent_kwargs=new_worker_agent_kwargs,  
)

@lightaime
Copy link
Member

Hi @yiyiyi0817 we can realize it by doing this. But it is not very straightforward. We should probably change the interface. Also we may need to only support tools that does not require API keys for the default tools of new agents

@yiyiyi0817
Copy link
Member Author

Hi @yiyiyi0817 we can realize it by doing this. But it is not very straightforward. We should probably change the interface. Also we may need to only support tools that does not require API keys for the default tools of new agents

I see. Reopened the issue.

@yiyiyi0817 yiyiyi0817 reopened this Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Agent Related to camel agents enhancement New feature or request Refactor
Projects
Status: Backlog
Development

No branches or pull requests

2 participants