Replies: 2 comments 1 reply
-
+1, suppose I want to make a field optional, I need to add the line "from typing import Optional" outside the function, I can do that through ui, but how to do that with python |
Beta Was this translation helpful? Give feedback.
-
What happens is that letta takes all the code related to the tool and does the following:
And finally: In ADE, you have the option of putting all the code that is relevant to a particular tool and then you simply paste the code. This way, the import can also be outside. What happens is that the system automatically knows how to connect it to your client. From there, it's a very short way to connect it to your specific agent. |
Beta Was this translation helpful? Give feedback.
-
I checked out many examples of tool usage in Letta framework, and it seemed that, when defining tools, they all had import statements inside the function body. Is it just a good practice or convention to do so, or is it a must? If it is a must, then could you explain the reasons behind it?
Beta Was this translation helpful? Give feedback.
All reactions