#Updated Function Calling feature Doesn't Work.(0.2.2 Decorator)

1 messages · Page 1 of 1 (latest)

karmic socket
#

I cloned and run the Github example for function calling.
https://github.com/microsoft/autogen/blob/main/notebook/agentchat_function_call.ipynb

I got this error.

Traceback (most recent call last):
  File "template_agents/policy_manager.py", line 37, in <module>
    @user_proxy.register_for_execution()
AttributeError: 'UserProxyAgent' object has no attribute 'register_for_execution'. Did you mean: 'register_function'?

How can I solve this problem?

GitHub

Enable Next-Gen Large Language Model Applications. Join our Discord: https://discord.gg/pAbnFJrkgZ - microsoft/autogen

charred sun
#

Same here... I let you know if I can find a solution

charred sun
#

@karmic socket apparently, this decoration is not implemented in UserProxyAgent inside main branch of autogen...

#

maybe this notebook is using a dev version ?

thorn stratus
#

Right, the decorators were just added to the main branch and there hasn't been an updated pip release yet. It should work if you clone the repo then install it from the autogen dir with pip install -e .

karmic socket
#

👍

fierce prawn
#

@thorn stratus I tried using pip install -e .
But I'm getting the following error with 'jinja2'

Any thoughts?

thorn stratus
#

@steady granite might have an idea.