MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / preprocess_input

Function preprocess_input

camel/benchmarks/nexus.py:429–433  ·  view source on GitHub ↗

r"""Remove formatting like code blocks and whitespace.

(call: str)

Source from the content-addressed store, hash-verified

427 """
428
429 def preprocess_input(call: str) -> str:
430 r"""Remove formatting like code blocks and whitespace."""
431 if call.strip().startswith("```python"):
432 call = call.strip().removeprefix("```python").removesuffix("```")
433 return textwrap.dedent(call).strip()
434
435 def evaluate_arg(arg):
436 r"""Recursively evaluate arguments, including nested calls."""

Callers 1

parse_function_callFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected