MCPcopy Create free account
hub / github.com/GPTScan/GPTScan / make_args_table

Function make_args_table

src/rich_utils.py:11–22  ·  view source on GitHub ↗
(args:List[str], title:str)

Source from the content-addressed store, hash-verified

9 return Panel(f"{response}", title=panel_title, border_style="green")
10
11def make_args_table(args:List[str], title:str) -> Table:
12 table = Table(title=title)
13 table.add_column("Argument")
14 table.add_column("Value")
15 for index, arg in enumerate(args):
16 if isinstance(arg, str):
17 table.add_row(f"arg\[{index}]", arg)
18 elif isinstance(arg, list):
19 table.add_row(f"arg\[{index}]", "\[" + ", ".join(arg) + "]")
20 else:
21 breakpoint()
22 return table

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected