Skip to content

Commit c2c0537

Browse files
committed
remove debugging code
1 parent f3c0131 commit c2c0537

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

packages/ai-providers/server-ai-openai/src/ldai_openai/openai_agent_graph_runner.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
3517
def _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

Comments
 (0)