Documentation
¶
Index ¶
- func AppendSprintContractPrompt(userGoal string) string
- func NewFileSessionStore(dir, keyPrefix string) (dinotask.SessionStore, error)
- func NewNoopSessionStore() dinotask.SessionStore
- func NewSessionStoreFromBlob(blob harness.BlobStore, keyPrefix string) dinotask.SessionStore
- type AndVerifier
- type CompositeVerifier
- type DefaultTaskEngine
- func (e *DefaultTaskEngine) RunTask(ctx context.Context, tk *dinotask.Task, sess *dino.Session) (*dinotask.TaskResult, dinotask.StopReason, error)
- func (e *DefaultTaskEngine) RunTaskWithSwap(ctx context.Context, tk *dinotask.Task, swap dinotask.SessionSwapper) (*dinotask.TaskResult, dinotask.StopReason, error)
- type DinoInnerTurnDriver
- type LLMChatFunc
- type LLMVerifier
- type MemorySessionStore
- func (m *MemorySessionStore) Delete(ctx context.Context, taskID string) error
- func (m *MemorySessionStore) List(ctx context.Context, sessionID string) ([]*dinotask.TaskSession, error)
- func (m *MemorySessionStore) Load(ctx context.Context, taskID string) (*dinotask.TaskSession, error)
- func (m *MemorySessionStore) PruneTask(ctx context.Context, taskID string, keep int) error
- func (m *MemorySessionStore) Save(ctx context.Context, s *dinotask.TaskSession) error
- type TextMustContainVerifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
func NewAndVerifier ¶
func NewAndVerifier(a, b dinotask.Verifier) *AndVerifier
type CompositeVerifier ¶
type CompositeVerifier struct{}
func NewCompositeVerifier ¶
func NewCompositeVerifier() *CompositeVerifier
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 (e *DefaultTaskEngine) RunTask(ctx context.Context, tk *dinotask.Task, sess *dino.Session) (*dinotask.TaskResult, dinotask.StopReason, error)
func (*DefaultTaskEngine) RunTaskWithSwap ¶
func (e *DefaultTaskEngine) RunTaskWithSwap(ctx context.Context, tk *dinotask.Task, swap dinotask.SessionSwapper) (*dinotask.TaskResult, dinotask.StopReason, error)
type DinoInnerTurnDriver ¶
type DinoInnerTurnDriver struct{}
func NewDinoInnerTurnDriver ¶
func NewDinoInnerTurnDriver() *DinoInnerTurnDriver
func (*DinoInnerTurnDriver) RunOneUserTurn ¶
func (d *DinoInnerTurnDriver) RunOneUserTurn(ctx context.Context, sess *dino.Session, in agenttypes.AgentInput) (*dinotask.TurnSnapshot, dinotask.StopReason, error)
type LLMChatFunc ¶
type LLMVerifier ¶
type LLMVerifier struct {
Chat LLMChatFunc
SystemPrompt string
}
func NewLLMVerifier ¶
func NewLLMVerifier(chat LLMChatFunc, systemPrompt string) *LLMVerifier
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 (m *MemorySessionStore) Load(ctx context.Context, taskID string) (*dinotask.TaskSession, error)
func (*MemorySessionStore) Save ¶
func (m *MemorySessionStore) Save(ctx context.Context, s *dinotask.TaskSession) error
type TextMustContainVerifier ¶
type TextMustContainVerifier struct{}
Click to show internal directories.
Click to hide internal directories.