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

add tool choices for agent. #1126

Merged
merged 2 commits into from
Jan 13, 2025
Merged

add tool choices for agent. #1126

merged 2 commits into from
Jan 13, 2025

Conversation

lkk12014402
Copy link
Collaborator

@lkk12014402 lkk12014402 commented Jan 8, 2025

Description

rewrite tool_choice for using the subset of tools in this turn of conversation in ReActAgentLlama planner.

comps/agent/src/agent.py Fixed Show fixed Hide fixed
@lkk12014402
Copy link
Collaborator Author

lkk12014402 commented Jan 9, 2025

curl http://localhost:9091/v1/chat/completions -X POST -H "Content-Type: application/json" -d '{
     "messages": "What is OPEA project?","tool_choice": ["search_weather"]
    }'

image

curl http://localhost:9091/v1/chat/completions -X POST -H "Content-Type: application/json" -d '{
     "messages": "What is OPEA project?","tool_choice": ["search_knowledge_base"]
    }

image

@lkk12014402 lkk12014402 marked this pull request as ready for review January 9, 2025 06:55
comps/agent/src/agent.py Dismissed Show dismissed Hide dismissed
@lkk12014402 lkk12014402 removed the request for review from ftian1 January 9, 2025 06:58
@lkk12014402 lkk12014402 dismissed minmin-intel’s stale review January 13, 2025 06:40

fixed by new commit

@chensuyue chensuyue merged commit 3a7ccb0 into main Jan 13, 2025
14 checks passed
@chensuyue chensuyue deleted the agent_tools_setting branch January 13, 2025 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants