MCPcopy Create free account
hub / github.com/BUPT-GAMMA/MASFactory / convert_to_markdown_table

Function convert_to_markdown_table

applications/chatdev/chatdev/utils.py:35–45  ·  view source on GitHub ↗
(records_kv)

Source from the content-addressed store, hash-verified

33
34
35def convert_to_markdown_table(records_kv):
36 # Create the Markdown table header
37 header = "| Parameter | Value |\n| --- | --- |"
38
39 # Create the Markdown table rows
40 rows = [f"| **{key}** | {value} |" for (key, value) in records_kv]
41
42 # Combine the header and rows to form the final Markdown table
43 markdown_table = header + "\n" + '\n'.join(rows)
44
45 return markdown_table
46
47
48def log_arguments(func):

Callers 1

wrapperFunction · 0.70

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected