Skip to content

[Feature] Introduce unified AgentRuntime and SourceCollector contracts #45

Description

@jerry609

Goal

Define stable contracts so all agent flows share one lifecycle and one integration surface.

Scope

  • Add src/paperbot/core/abstractions/agent_runtime.py
  • Add src/paperbot/application/ports/source_collector.py
  • Define shared schemas: AgentMessage, AgentResult, AgentError
  • Keep compatibility adapters for existing agents

Acceptance

  • Contract types compile and are imported by at least one route/workflow
  • Current agents can be adapted without behavior regression
  • Contract includes run_id / trace_id / stage / agent_name

Metadata

Metadata

Assignees

Labels

backendBackend/API related workphase-3Roadmap phase 3priority-p1High priorityroadmapRoadmap planned work

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions