Documentation
¶
Index ¶
- func RunLoop(ctx context.Context, workspaceDir string, interval time.Duration, ...) (int, error)
- func RunLoopWithLLM(ctx context.Context, workspaceDir string, interval time.Duration, ...) (int, error)
- func RunLoopWithLLMWithPolicy(ctx context.Context, workspaceDir string, interval time.Duration, ...) (int, error)
- func RunOnce(workspaceDir string, now time.Time) error
- func RunOnceWithLLM(ctx context.Context, workspaceDir string, now time.Time, ask AskFunc) error
- func RunOnceWithLLMResult(ctx context.Context, workspaceDir string, now time.Time, ask AskFunc) (string, error)
- type AskFunc
- type Policy
- type RunResult
- type TurnRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunLoop ¶
func RunLoop( ctx context.Context, workspaceDir string, interval time.Duration, maxHeartbeats int, nowFn func() time.Time, ) (int, error)
RunLoop executes RunOnce in a ticker loop. If maxHeartbeats is greater than zero, loop exits after maxHeartbeats ticks.
func RunLoopWithLLM ¶
func RunLoopWithLLM( ctx context.Context, workspaceDir string, interval time.Duration, maxHeartbeats int, nowFn func() time.Time, ask AskFunc, ) (int, error)
RunLoopWithLLM executes RunOnceWithLLM in a ticker loop.
func RunOnceWithLLM ¶
RunOnceWithLLM reads heartbeat context, asks LLM, and appends events to daily log.
Types ¶
Click to show internal directories.
Click to hide internal directories.