git-subtree-dir: apps/core git-subtree-mainline: a8963e11e7a5a0059acbc849ce768e1eee80df61 git-subtree-split: ea2a7395f4023f5b9fab03e6273db3b64a1181d5
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)
|