Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

hotfix: Patch schema generation (#3134)

Matthew Zhoucf75cb67a07a
diff --git a/letta/schemas/tool.py b/letta/schemas/tool.py
index 844ee77ef..a9a41b2b0 100644
--- a/letta/schemas/tool.py
+++ b/letta/schemas/tool.py
@@ -91,7 +91,7 @@ class Tool(BaseTool):
description=description,
append_heartbeat=False,
)
- elif not self.json_schema:
+ else: # elif not self.json_schema: # TODO: JSON schema is not being derived correctly the first time?
# If there's not a json_schema provided, then we need to re-derive
try:
self.json_schema = derive_openai_json_schema(source_code=self.source_code)