MCPcopy Index your code
hub / github.com/openai/openai-agents-python / format_tool_arguments

Function format_tool_arguments

examples/memory/file_hitl_example.py:135–144  ·  view source on GitHub ↗
(interruption: Any)

Source from the content-addressed store, hash-verified

133
134
135def format_tool_arguments(interruption: Any) -> str:
136 args = getattr(interruption, "arguments", None)
137 if args is None:
138 return ""
139 if isinstance(args, str):
140 return args
141 try:
142 return json.dumps(args)
143 except Exception:
144 return str(args)
145
146
147async def prompt_yes_no(question: str) -> bool:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected