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>
17 lines
305 B
Python
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)
|