Skip to content

OIC agent provider interface, with a fake provider for tests #222

Open

Description

@exactml

Context

OIC runs investigations through coding agents, but the domain must not depend on any provider's session format. Depends on #220.

Behavior to implement

An AgentProvider interface:

  • start(task) -> run, plus streaming or polling of normalized events: message, question, tool_use, structured_output, completed, failed, timed_out.
  • resume(run, checkpoint): continue the provider session when it supports that, otherwise start a fresh session from the persisted checkpoint.
  • Provider session IDs stay in AgentRun.runtime_metadata and never reach domain objects or public responses.

A FakeProvider that replays scripted events (ask a question, return proposals, fail midway) for deterministic tests.

Acceptance criteria

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendbackend devfeatureoicOrganizational Intelligence Coretest

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions