How should enforce governance in calling custom function in Autogen #7154
Unanswered
hariumeshuk
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
May be the question is already being answered somewhere. As a beginner in the autogen i would need to clarify certain topic related to the governance in the autogen.
if i have registered a custom function(python function) in the agent, how should decide calling this function based on certain criteria/parameters
for eg:
i have a function
get_weather() --> to return the weather if user query related to weather . then only the agent should call the registered function.
if query related to something else, then it should not call the function so that it make sure certain governance are enforced.
however as i tried applying this logic in the system message(inside AssistantAgent), its not working as expected and agent still calling the registered function.
so instead of asking - " what is weather in France", the query i asked "hi how are you", but the chat still responded with the weather of france
below is the complete code
Beta Was this translation helpful? Give feedback.
All reactions