@@ -14,24 +14,6 @@ def _to_openai_name(name: str) -> str:
1414 """Convert a hyphenated tool/node name to an underscore-separated OpenAI function name."""
1515 return name .replace ('-' , '_' )
1616
17-
18- def _log_run_result_shape (result : Any ) -> None :
19- """Print RunResult attributes (excluding final_output) for debugging."""
20- attrs = [a for a in dir (result ) if not a .startswith ('_' )]
21- print ("RunResult public attributes:" , attrs )
22- for name in attrs :
23- if name == 'final_output' :
24- continue
25- try :
26- val = getattr (result , name )
27- if callable (val ):
28- print (f" { name } : callable" )
29- else :
30- print (f" { name } : { repr (val )} " )
31- except Exception as e :
32- print (f" { name } : (error reading: { e } )" )
33-
34-
3517def _build_native_tool_map () -> dict :
3618 try :
3719 from agents import (
@@ -98,7 +80,6 @@ async def run(self, input: Any) -> AgentGraphResult:
9880 from agents import Runner
9981 root_agent = self ._build_agents (path , last_handoff_ns )
10082 result = await Runner .run (root_agent , str (input ))
101- # _log_run_result_shape(result)
10283 self ._flush_final_segment (path , last_handoff_ns , tracker , result )
10384
10485 duration = (time .perf_counter_ns () - start_ns ) // 1_000_000
0 commit comments