runner

package
v1.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendSprintContractPrompt

func AppendSprintContractPrompt(userGoal string) string

func NewFileSessionStore

func NewFileSessionStore(dir, keyPrefix string) (dinotask.SessionStore, error)

func NewNoopSessionStore

func NewNoopSessionStore() dinotask.SessionStore

func NewSessionStoreFromBlob

func NewSessionStoreFromBlob(blob harness.BlobStore, keyPrefix string) dinotask.SessionStore

Types

type AndVerifier

type AndVerifier struct {
	A, B dinotask.Verifier
}

func NewAndVerifier

func NewAndVerifier(a, b dinotask.Verifier) *AndVerifier

func (*AndVerifier) Verify

func (v *AndVerifier) Verify(ctx context.Context, tk *dinotask.Task, snap *dinotask.TurnSnapshot) (bool, string)

type CompositeVerifier

type CompositeVerifier struct{}

func NewCompositeVerifier

func NewCompositeVerifier() *CompositeVerifier

func (*CompositeVerifier) Verify

type DefaultTaskEngine

type DefaultTaskEngine struct {
	Inner    dinotask.InnerTurnDriver
	Verifier dinotask.Verifier
	Store    dinotask.SessionStore
	Hooks    *dinotask.TaskHooks
}

func NewDefaultTaskEngine

func NewDefaultTaskEngine() *DefaultTaskEngine

func (*DefaultTaskEngine) RunTask

func (*DefaultTaskEngine) RunTaskWithSwap

type DinoInnerTurnDriver

type DinoInnerTurnDriver struct{}

func NewDinoInnerTurnDriver

func NewDinoInnerTurnDriver() *DinoInnerTurnDriver

func (*DinoInnerTurnDriver) RunOneUserTurn

type LLMChatFunc

type LLMChatFunc func(ctx context.Context, messages []agenttypes.Message) (content string, err error)

type LLMVerifier

type LLMVerifier struct {
	Chat         LLMChatFunc
	SystemPrompt string
}

func NewLLMVerifier

func NewLLMVerifier(chat LLMChatFunc, systemPrompt string) *LLMVerifier

func (*LLMVerifier) Verify

func (v *LLMVerifier) Verify(ctx context.Context, tk *dinotask.Task, snap *dinotask.TurnSnapshot) (bool, string)

type MemorySessionStore

type MemorySessionStore struct {
	MaxKeep int
	// contains filtered or unexported fields
}

func NewMemorySessionStore

func NewMemorySessionStore(maxKeep int) *MemorySessionStore

func (*MemorySessionStore) Delete

func (m *MemorySessionStore) Delete(ctx context.Context, taskID string) error

func (*MemorySessionStore) List

func (m *MemorySessionStore) List(ctx context.Context, sessionID string) ([]*dinotask.TaskSession, error)

func (*MemorySessionStore) Load

func (*MemorySessionStore) PruneTask

func (m *MemorySessionStore) PruneTask(ctx context.Context, taskID string, keep int) error

func (*MemorySessionStore) Save

type TextMustContainVerifier

type TextMustContainVerifier struct{}

func (TextMustContainVerifier) Verify

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL