Files
letta-server/tests/data/functions/dump_json.py
2024-04-08 22:11:18 -07:00

16 lines
305 B
Python

import json
from memgpt.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)