MCPcopy Create free account
hub / github.com/modelscope/ms-agent / _stringify_content

Function _stringify_content

webui/backend/deep_research_eventizer.py:7–15  ·  view source on GitHub ↗
(content: Any)

Source from the content-addressed store, hash-verified

5
6
7def _stringify_content(content: Any) -> str:
8 if content is None:
9 return ''
10 if isinstance(content, str):
11 return content
12 try:
13 return json.dumps(content, ensure_ascii=False)
14 except Exception:
15 return str(content)
16
17
18class HistoryEventizer:

Callers 2

_process_tool_resultMethod · 0.85
processMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected