Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
steerloop
command
Command steerloop runs an agent loop from the terminal: run, chat, replay, tools validate, version and help.
|
Command steerloop runs an agent loop from the terminal: run, chat, replay, tools validate, version and help. |
|
steerloop/internal/bootstrap
Package bootstrap is what `steerloop run` and `steerloop chat` share: the flags they both take, the loop each turn runs, its tools and the recording.
|
Package bootstrap is what `steerloop run` and `steerloop chat` share: the flags they both take, the loop each turn runs, its tools and the recording. |
|
steerloop/internal/cli
Package cli is the leaf of steerloop: command dispatch, the environment contract and exit codes.
|
Package cli is the leaf of steerloop: command dispatch, the environment contract and exit codes. |
|
steerloop/internal/cmds/chat
Package chatcmd is `steerloop chat`.
|
Package chatcmd is `steerloop chat`. |
|
steerloop/internal/cmds/help
Package helpcmd is `steerloop help`.
|
Package helpcmd is `steerloop help`. |
|
steerloop/internal/cmds/run
Package runcmd is `steerloop run`.
|
Package runcmd is `steerloop run`. |
|
steerloop/internal/cmds/version
Package versioncmd is `steerloop version`.
|
Package versioncmd is `steerloop version`. |
|
steerloop/internal/interrupt
Package interrupt maps Ctrl-C onto a session.
|
Package interrupt maps Ctrl-C onto a session. |
|
steerloop/internal/osenv
Package osenv is the real cli.Environment: the process's own env and streams.
|
Package osenv is the real cli.Environment: the process's own env and streams. |
|
steerloop/internal/prompt
Package prompt asks for the next turn once an answer is in.
|
Package prompt asks for the next turn once an answer is in. |
|
steerloop/internal/render
Package render prints a run for a person at a terminal.
|
Package render prints a run for a person at a terminal. |
|
steerloop/internal/stdin
Package stdin reads the terminal once for a whole run or chat.
|
Package stdin reads the terminal once for a whole run or chat. |
|
steerloop/internal/steering
Package steering feeds a person's input into a running loop.
|
Package steering feeds a person's input into a running loop. |
|
examples
|
|
|
ask_user
command
Ask_user shows a pause tool: when the model calls ask_user, the loop hands the call to a pause.Handler that waits for a person, and the answer becomes the tool's result.
|
Ask_user shows a pause tool: when the model calls ask_user, the loop hands the call to a pause.Handler that waits for a person, and the answer becomes the tool's result. |
|
minimal
command
Minimal shows the smallest useful loop: a model, one tool, and the event stream.
|
Minimal shows the smallest useful loop: a model, one tool, and the event stream. |
|
steer
command
Steer shows the three controls on a running loop: inject a message, change the configuration, and stop.
|
Steer shows the three controls on a running loop: inject a message, change the configuration, and stop. |
|
internal
|
|
|
eventlog
Package eventlog writes a run's events as JSON lines, for other programs and for recordings.
|
Package eventlog writes a run's events as JSON lines, for other programs and for recordings. |
|
gates
Package gates holds pause handlers for tool calls that need a person before they can finish.
|
Package gates holds pause handlers for tool calls that need a person before they can finish. |
|
provider
Package provider builds an Eino chat model from a "provider:model" string.
|
Package provider builds an Eino chat model from a "provider:model" string. |
|
tools
Package exectool runs command-line tools declared in a YAML manifest.
|
Package exectool runs command-line tools declared in a YAML manifest. |
|
Package loop is a controllable agent loop for CloudWeGo Eino, in an interface-first, nested shape.
|
Package loop is a controllable agent loop for CloudWeGo Eino, in an interface-first, nested shape. |
|
event
Package event is the vocabulary of a running loop: every event type and payload.
|
Package event is the vocabulary of a running loop: every event type and payload. |
|
internal/audit
Package audit builds the LLMTurn record of each model call that led to tool calls.
|
Package audit builds the LLMTurn record of each model call that led to tool calls. |
|
internal/control
Package control holds the controls sent to a running loop: stop, inject a message, change settings.
|
Package control holds the controls sent to a running loop: stop, inject a message, change settings. |
|
internal/defaults
Package defaults is what runs when the caller supplies nothing: one no-op or built-in implementation per optional interface, so no other package has to check for nil.
|
Package defaults is what runs when the caller supplies nothing: one no-op or built-in implementation per optional interface, so no other package has to check for nil. |
|
internal/dispatch
Package dispatch runs one tool call: through the ToolExecutor, or through the pause handler registered for that tool.
|
Package dispatch runs one tool call: through the ToolExecutor, or through the pause handler registered for that tool. |
|
internal/emitter
Package emitter owns the event channel: it filters, counts dropped events, and guarantees the done event is sent once and waited for.
|
Package emitter owns the event channel: it filters, counts dropped events, and guarantees the done event is sent once and waited for. |
|
internal/engine
Package engine is the loop itself.
|
Package engine is the loop itself. |
|
internal/modelcall
Package modelcall makes one logical model call: iteration timeout, streaming with an idle-chunk watchdog, and retries on transient failure.
|
Package modelcall makes one logical model call: iteration timeout, streaming with an idle-chunk watchdog, and retries on transient failure. |
|
internal/state
Package state holds all mutable state of one loop run behind one mutex.
|
Package state holds all mutable state of one loop run behind one mutex. |
|
internal/stopping_policy
Package stopping holds one stop policy per stop condition.
|
Package stopping holds one stop policy per stop condition. |
|
internal/transcript
Package transcript logs the conversation as it grows.
|
Package transcript logs the conversation as it grows. |
|
pause
Package pause is what a pause handler sees and can do.
|
Package pause is what a pause handler sees and can do. |
|
registry
Package registry tracks running loops by a key of the caller's choice, such as a user or session id, so another goroutine can stop or steer them.
|
Package registry tracks running loops by a key of the caller's choice, such as a user or session id, so another goroutine can stop or steer them. |
|
Package steerlooptest provides a scripted chat model and a recording tool executor for testing code built on steerloop without calling a provider.
|
Package steerlooptest provides a scripted chat model and a recording tool executor for testing code built on steerloop without calling a provider. |
Click to show internal directories.
Click to hide internal directories.
