MCPcopy
hub / github.com/openai/swarm / debug_print

Function debug_print

swarm/util.py:5–10  ·  view source on GitHub ↗
(debug: bool, *args: str)

Source from the content-addressed store, hash-verified

3
4
5def debug_print(debug: bool, *args: str) -> None:
6 if not debug:
7 return
8 timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
9 message = " ".join(map(str, args))
10 print(f"\033[97m[\033[90m{timestamp}\033[97m]\033[90m {message}\033[0m")
11
12
13def merge_fields(target, source):

Callers 5

get_chat_completionMethod · 0.85
handle_tool_callsMethod · 0.85
run_and_streamMethod · 0.85
runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…