You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to register function to LLM using autogen.register_function with some methods from a instance of a class:
autogen.register_function(
data.add_instrument,
caller=assistant,
executor=tools_executor,
name="add_instrument",
description="Add instrument with name and Id"
)
but got exception:
File ".\repo\ai\eq-agbot\venv\Lib\site-packages\autogen\agentchat\conversable_agent.py", line 2706, in _decorator
func._name = name
^^^^^^^^^^
AttributeError: 'method' object has no attribute '_name'
Is this possible to register function in this way?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to register function to LLM using autogen.register_function with some methods from a instance of a class:
but got exception:
File ".\repo\ai\eq-agbot\venv\Lib\site-packages\autogen\agentchat\conversable_agent.py", line 2706, in _decorator
func._name = name
^^^^^^^^^^
AttributeError: 'method' object has no attribute '_name'
Is this possible to register function in this way?
Beta Was this translation helpful? Give feedback.
All reactions