4deafc5b1e
🌿 Preview Python SDK / changed-files (push) Has been cancelled
🌿 Preview Python SDK / preview-python-sdk (push) Has been cancelled
🌿 Preview TypeScript SDK / changed-files (push) Has been cancelled
🌿 Preview TypeScript SDK / preview-typescript-sdk (push) Has been cancelled
Sync Code / notify (push) Has been cancelled
Test Package Installation / test-install (3.13) (push) Has been cancelled
Test Package Installation / test-install (3.12) (push) Has been cancelled
Notify Submodule Repos / notify (push) Has been cancelled
Run Docker integration tests / test (push) Has been cancelled
🌿 Publish Docs / run (push) Has been cancelled
Test Package Installation / test-install (3.11) (push) Has been cancelled
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)
|