MCPcopy Create free account
hub / github.com/Mercury7353/PyBench / extract_code_from_arguments

Function extract_code_from_arguments

utils/output_parser.py:90–95  ·  view source on GitHub ↗
(arguments_str)

Source from the content-addressed store, hash-verified

88import json
89
90def extract_code_from_arguments(arguments_str):
91 try:
92 arguments_dict = json.loads(arguments_str)
93 return arguments_dict.get("code", "")
94 except json.JSONDecodeError:
95 return ""
96
97def fc2dict(sequence: str, spliter="<|tool_call|>"):
98 if spliter in sequence:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected