Documentation
¶
Overview ¶
Package appx declares the agent-capability seam the review's reasoners, gates and orchestrator are written against. pr-af received the AgentField SDK's `Agent` and called `.Harness(...)`, `.AI(...)` and `.Note(...)` on it; here the codeaf side answers those verbs (internal/praf's app.go, over the agent sessions internal/agentsession runs), so the seam names no SDK agent or harness type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AIer ¶
type AIer interface {
AI(ctx context.Context, prompt string, opts ...ai.Option) (*ai.Response, error)
}
AIer is the single structured call seam. The options and the response keep the SDK `ai` package's shapes, which codeaf speaks everywhere it talks to a model.
type HarnessOptions ¶
HarnessOptions is what one agent session is told about where it works.
Cwd is the checkout under review, which the session reads; an empty Cwd is a call that needs no file, and codeaf's session still reads only the run's checkout. Label names the session on the review's page ("review dimension", "evidence"); it changes nothing about the run.
type HarnessResult ¶
type HarnessResult struct {
Result string
Parsed any
IsError bool
ErrorMessage string
NumTurns int
DurationMS int64
CostUSD *float64
}
HarnessResult is the outcome of one agent session, carrying the fields the review reads off it.
A session that HAPPENED and failed is reported with IsError and ErrorMessage and a nil Go error; a Go error means the session could not be made at all. Parsed is the dest pointer once it holds a schema-valid object, nil when nothing validated. CostUSD is a pointer because "no cost reported" is not "free".