Skip to content

feat: add AgentRunner, AgentGraphRunner ABCs and result types (PR-4)#103

Draft
jsonbailey wants to merge 2 commits intojb/aic-1664/adapter-executor-factoryfrom
jb/aic-1664/runner-abcs
Draft

feat: add AgentRunner, AgentGraphRunner ABCs and result types (PR-4)#103
jsonbailey wants to merge 2 commits intojb/aic-1664/adapter-executor-factoryfrom
jb/aic-1664/runner-abcs

Conversation

@jsonbailey
Copy link
Contributor

Adds the runner ABCs and result types needed to support agent and agent graph execution in later PRs:

  • ldai/runners/agent_runner.py: AgentRunner ABC with run(input) -> AgentResult
  • ldai/runners/agent_graph_runner.py: AgentGraphRunner ABC with run(input) -> AgentGraphResult
  • ldai/runners/types.py: AgentResult, AgentGraphResult (output, raw, metrics), ToolRegistry alias
  • Exports all new types from ldai top-level init.py

@jsonbailey jsonbailey changed the title feat: add AgentRunner, AgentGraphRunner ABCs and result types feat: add AgentRunner, AgentGraphRunner ABCs and result types (PR-4) Mar 11, 2026
jsonbailey and others added 2 commits March 11, 2026 13:36
feat: Add ModelRunner ABC with invoke_model() and invoke_structured_model()
feat: Add ManagedModel replacing Chat; expose get_model_runner() escape hatch
feat!: Rename ChatResponse to ModelResponse in providers/types.py
feat!: Extract OpenAIModelRunner from OpenAIRunnerFactory; factory is now model-creation-only
feat!: Extract LangChainModelRunner from LangChainRunnerFactory; factory is now model-creation-only
feat: Add OpenAIHelper with shared utilities for model and future agent runners
feat: Add LangChainHelper with shared utilities for model and future agent runners
feat!: LangChainRunnerFactory is now a no-arg factory; static helpers moved to LangChainHelper
fix: LDClient.create_chat() is deprecated in favour of create_model()
fix: Chat alias in ldai.chat is deprecated in favour of ManagedModel
fix: Rename ai_provider param to model_runner in Judge and ManagedModel
Adds the runner ABCs and result types needed to support agent and
agent graph execution in later PRs:

- ldai/runners/agent_runner.py: AgentRunner ABC with run(input) -> AgentResult
- ldai/runners/agent_graph_runner.py: AgentGraphRunner ABC with run(input) -> AgentGraphResult
- ldai/runners/types.py: AgentResult, AgentGraphResult (output, raw, metrics), ToolRegistry alias
- Exports all new types from ldai top-level __init__.py

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jsonbailey jsonbailey force-pushed the jb/aic-1664/runner-abcs branch from db27c82 to ed8787a Compare March 11, 2026 18:38
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