Skip to content

Tools using "agent_state" result in ModuleNotFoundError #3052

@SootyOwl

Description

@SootyOwl

Describe the bug
When trying to use the agent_state argument in a tool, the following error is always returned:

Error executing function create_research_plan: ModuleNotFoundError: No module named 'letta'
Details

---------------------------------------------------------------------------
ModuleNotFoundError
Traceback (most recent call last)
Cell In[1], line 12
     10 import struct
     11 import hashlib
---> 12 import letta
     13 from letta import *
     14 agent_state = pickle.loads(...)  # truncated
ModuleNotFoundError: No module named 'letta'

Steps to replicate
Create a tool which accepts the agent_state parameter as described in the documentation, attach it to an agent and ask the agent to run it.

Please describe your setup

  • How are you running Letta?
    • Docker compose, letta v0.13
  • Describe your setup
    • Linux

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions