Skip to content

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

Open
jsonbailey wants to merge 1 commit intojb/aic-1664/managed-modelfrom
jb/aic-1664/runner-abcs
Open

feat: add AgentRunner, AgentGraphRunner ABCs and result types (PR-4)#103
jsonbailey wants to merge 1 commit intojb/aic-1664/managed-modelfrom
jb/aic-1664/runner-abcs

Conversation

@jsonbailey
Copy link
Contributor

@jsonbailey jsonbailey commented Mar 11, 2026

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

Note

Low Risk
Adds new abstract interfaces and lightweight dataclasses plus tests and exports; no changes to existing execution paths or data handling.

Overview
Introduces a new ldai.runners module that defines async runner ABCs (AgentRunner, AgentGraphRunner) and shared result containers (AgentResult, AgentGraphResult) plus a ToolRegistry type alias.

Exports these new types from the top-level ldai package and adds unit tests validating abstractness, return types, and export wiring.

Written by Cursor Bugbot for commit e2df180. This will update automatically on new commits. Configure here.

@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 jsonbailey force-pushed the jb/aic-1664/runner-abcs branch from db27c82 to ed8787a Compare March 11, 2026 18:38
@jsonbailey jsonbailey force-pushed the jb/aic-1664/adapter-executor-factory branch from 4bef65c to e10be52 Compare March 25, 2026 14:33
Base automatically changed from jb/aic-1664/adapter-executor-factory to main March 25, 2026 17:20
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 ed8787a to e2df180 Compare March 25, 2026 20:21
@jsonbailey jsonbailey changed the base branch from main to jb/aic-1664/managed-model March 25, 2026 20:23
@jsonbailey jsonbailey marked this pull request as ready for review March 25, 2026 21:01
@jsonbailey jsonbailey requested a review from a team as a code owner March 25, 2026 21:01
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