Files
letta-server/tests/data/functions/dump_json.py
Sarah Wooders 8ae1e64987 chore: migrate package name to letta (#1775)
Co-authored-by: Charles Packer <packercharles@gmail.com>
Co-authored-by: Shubham Naik <shubham.naik10@gmail.com>
Co-authored-by: Shubham Naik <shub@memgpt.ai>
2024-09-23 09:15:18 -07:00

17 lines
305 B
Python

import json
from letta.agent import Agent
def dump_json(self: Agent, input: str) -> str:
"""
Dumps the content to JSON.
Args:
input (dict): dictionary object to convert to a string
Returns:
str: returns string version of the input
"""
return json.dumps(input)