MCPcopy Index your code
hub / github.com/bugy/script-server / values_to_string

Function values_to_string

src/utils/string_utils.py:56–66  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

54
55
56def values_to_string(value):
57 if not value:
58 return value
59
60 if isinstance(value, dict):
61 return {k: str(v) for k, v in value.items()}
62
63 if isinstance(value, list):
64 return [str(element) for element in value]
65
66 return value
67
68
69def dedent(multiline_text):

Callers 2

sendMethod · 0.90
format_bodyMethod · 0.90

Calls

no outgoing calls

Tested by 1

format_bodyMethod · 0.72