feat: add function IDs to LettaMessage function calls and response (#1909)

This commit is contained in:
Charles Packer
2024-10-19 21:47:48 -07:00
committed by GitHub
parent 11bb2f1437
commit 8a9e6dddd3
6 changed files with 43 additions and 9 deletions

View File

@@ -488,6 +488,9 @@ def is_utc_datetime(dt: datetime) -> bool:
def get_tool_call_id() -> str:
# TODO(sarah) make this a slug-style string?
# e.g. OpenAI: "call_xlIfzR1HqAW7xJPa3ExJSg3C"
# or similar to agents: "call-xlIfzR1HqAW7xJPa3ExJSg3C"
return str(uuid.uuid4())[:TOOL_CALL_ID_MAX_LEN]