Replies: 3 comments 4 replies
-
Hi! We think we know what the issue is, but would we be able to move this conversation to discord? There's higher visibility there. Once we fix this, I will post a link to the discord discussion on this thread. |
Beta Was this translation helpful? Give feedback.
-
Oh great. Sure, feel free to move it. Thanks,LiorOn Dec 12, 2024, at 1:58 PM, Matthew Zhou ***@***.***> wrote:
Hi! We think we know what the issue is, but would we be able to move this conversation to discord? There's higher visibility there. Once we fix this, I will post a link to the discord discussion on this thread.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@thelbg sorry for the delayed response - for your tool definition, you need all imports and variables to be contained inside the tool definition. You also need to make sure that all dependencies are installed in the environment that the We will have support for custom execution environment that allow you to import your own code/dependencies as long as it's inside the right file -- documentation for this should be out by EOW. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Experimenting with a small app, I enjoyed integrating Letta but then ran into an issue.
Prior to integrating Letta, my app was using OpenAI API and I defined a function that can call Google Cloud API to query my calendar. It worked well.
Trying to define it as a tool in Letta seems to fail in runtime, and my best guess is that the Letta behavior of running the tool in a sandbox has some limitations. Can you take a look at my code and let me know if there is a way for me to make it work in Letta?
General description of my function/tool:
google_calendar_helper.py.tar.gz
The error message I receive when the tool is called:
Letta.letta.services.tool_execution_sandbox - ERROR - Executing tool get_events_next_30_days has an unexpected error: name 'get_calendar_service' is not defined
Letta.letta.services.tool_execution_sandbox - ERROR - Logging out tool get_events_next_30_days auto-generated code for debugging: (... followed by a dump of the log)
BTW, I tried to copy the code of 'get_calendar_service' into the code of 'get_events_next_30_days' but then I get similar error messages for other dependecies, such as "name 'os' is not defined" (although it is imported).
Thanks,
Lior
Beta Was this translation helpful? Give feedback.
All reactions