Skip to content

Conversation

@skcoirz
Copy link
Contributor

@skcoirz skcoirz commented May 3, 2023

This is a follow up of #3840

Question: Why do we allow None allowed_tools in Agent when there are tools provided in AgentExecutor?

AgentExecutor is able to fetch the allowed_tools from Agent directly. It doesn’t look like we need to provide tools again at AgentExecutor entry functions when Agent is already provided as a parameter.

I’m new to the logics. I could be wrong. Would like to get some help here. Thank you so much.

@skcoirz
Copy link
Contributor Author

skcoirz commented May 4, 2023 via email

@hwchase17
Copy link
Contributor

i also dont think this is neccessary. allowed_tools can be None for a myriad of reasons. if its None we should just ignore

@skcoirz
Copy link
Contributor Author

skcoirz commented May 4, 2023

@hwchase17 , @dev2049 , I’m okay with closing this PR, but when you have time, can you explain a bit when allowed_tools should be None? Ideally with a few real use cases? I have checked the logics of Agent and AgentExecutor, but I couldn’t understand why we allow it to be None. Would appreciate your context sharing. Thank you.

@skcoirz skcoirz closed this May 7, 2023
@skcoirz
Copy link
Contributor Author

skcoirz commented May 7, 2023

not hearing back from the core team. close for now.

@skcoirz skcoirz deleted the tooling_consistency_check branch May 9, 2023 18:56
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.

2 participants