Documentation
¶
Index ¶
- func NewIsolatedTaskSessionID(prefix string) string
- type InnerTurnDriver
- type Plan
- type PlanStep
- type SessionStore
- type SessionSwapper
- type StopReason
- type Task
- type TaskConfig
- type TaskHooks
- type TaskProgress
- type TaskResult
- type TaskSession
- type TaskState
- type TaskStatus
- type TurnSnapshot
- type Verifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InnerTurnDriver ¶
type InnerTurnDriver interface {
RunOneUserTurn(ctx context.Context, sess *dino.Session, in agenttypes.AgentInput) (*TurnSnapshot, StopReason, error)
}
type SessionStore ¶
type SessionSwapper ¶
type StopReason ¶
type StopReason int
const ( StopReasonCompleted StopReason = iota StopReasonAgentIdle StopReasonMaxTurnsReached StopReasonMaxOuterIterations StopReasonMaxBudgetReached StopReasonContextOverflow StopReasonTimeout StopReasonFailed StopReasonUserCancelled StopReasonVerificationFailed )
type Task ¶
type Task struct {
ID string
SessionID string
Description string
Plan *Plan
Status TaskStatus
Result *TaskResult
Config *TaskConfig
Progress *TaskProgress
PendingInput agenttypes.AgentInput
CreatedAt time.Time
UpdatedAt time.Time
}
type TaskConfig ¶
type TaskConfig struct {
MaxBudgetTokens int
MaxTurns int
MaxOuterIterations int
Timeout time.Duration
RetryLimit int
StallWindow int
CheckpointKeepVersions int
CompactEveryNTurns int
ContextWindow int
ModelID string
Isolated bool
PreferContextReset bool
CompletionMarker string
ArtifactDir string
VerifyCommand string
VerifyTextMustContain string
VerifyLLMSystemPrompt string
}
type TaskHooks ¶
type TaskHooks struct {
BeforeTurn func(ctx context.Context, p *TaskProgress) error
AfterTurn func(ctx context.Context, p *TaskProgress, res *TaskResult) error
}
type TaskProgress ¶
type TaskResult ¶
type TaskResult struct {
FinalSnapshot *TurnSnapshot
}
type TaskSession ¶
type TaskStatus ¶
type TaskStatus string
const ( TaskStatusPending TaskStatus = "pending" TaskStatusRunning TaskStatus = "running" TaskStatusCompleted TaskStatus = "completed" TaskStatusFailed TaskStatus = "failed" )
type TurnSnapshot ¶
Click to show internal directories.
Click to hide internal directories.