agent-orchestrator/backend/internal/ports/session.go

22 lines
559 B
Go

package ports
import (
"errors"
"github.com/aoagents/agent-orchestrator/backend/internal/domain"
)
// ErrSessionNotFound reports an observation for an unknown session id.
var ErrSessionNotFound = errors.New("session not found")
// SpawnConfig is the request to start a new session: which project/issue, which
// agent harness, and the branch/prompt the agent launches with.
type SpawnConfig struct {
ProjectID domain.ProjectID
IssueID domain.IssueID
Kind domain.SessionKind
Harness domain.AgentHarness
Branch string
Prompt string
}