Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

Update src/llm/providers/openai.py

Anish Agrawal6691e7cc9ec4
diff --git a/src/llm/providers/openai.py b/src/llm/providers/openai.py
index ebbcf78d6..87ea347c8 100644
--- a/src/llm/providers/openai.py
+++ b/src/llm/providers/openai.py
@@ -81,9 +81,11 @@ class OpenAIProvider(LLMProvider):
)
for tc in choice.message.tool_calls
]
-
- return LLMOutput(
- content=choice.message.content or "",
+ ToolCall(
+ id=tc.id or "",
+ name=tc.function.name,
+ arguments={} if not tc.function.arguments else json.loads(tc.function.arguments),
+ )
tool_calls=tool_calls,
model=response.model,
usage={