Skip to content

feat: Update OpenAI runners to implement Runner protocol returning RunnerResult#149

Draft
jsonbailey wants to merge 1 commit intojb/aic-2388/managed-resultfrom
jb/aic-2388/openai-runner-protocol
Draft

feat: Update OpenAI runners to implement Runner protocol returning RunnerResult#149
jsonbailey wants to merge 1 commit intojb/aic-2388/managed-resultfrom
jb/aic-2388/openai-runner-protocol

Conversation

@jsonbailey
Copy link
Copy Markdown
Contributor

Summary

  • OpenAIModelRunner.run() implements the unified Runner protocol; returns RunnerResult with content, metrics, raw, and parsed fields. Structured output is supported via the output_type parameter.
  • OpenAIAgentRunner.run() updated to return RunnerResult; populates tool_calls in LDAIMetrics from observed openai-agents ToolCallItems.
  • Legacy invoke_model() and invoke_structured_model() retained as deprecated adapters that delegate to run() for backward compatibility.

Stacking

Stacked on top of jb/aic-2388/managed-result (PR #148).

Test plan

  • make test-openai — all 40 OpenAI provider tests pass
  • make test — all 261 tests across server-ai, langchain, and openai packages pass

🤖 Generated with Claude Code

…nnerResult

- OpenAIModelRunner.run() implements the unified Runner protocol; returns RunnerResult
  with content, metrics (LDAIMetrics), raw, and parsed fields. Structured output is
  supported via the output_type parameter.
- OpenAIAgentRunner.run() updated to return RunnerResult; populates tool_calls in
  LDAIMetrics from observed openai-agents ToolCallItems.
- Legacy invoke_model() and invoke_structured_model() retained as deprecated adapters
  that delegate to run() and wrap results into ModelResponse / StructuredResponse for
  backward compatibility.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant