Documentation
¶
Overview ¶
Package sessctx prepares shared execution context for any loop or agent.
Index ¶
- func CwdCommand(store agentkit.SessionStore, ws workspace.Service) agentkit.Command
- func NextTurn(ctx context.Context) (context.Context, error)
- func Prepare(ctx context.Context, store agentkit.SessionStore, ws workspace.Service) (context.Context, error)
- func Resolve(ctx context.Context, store agentkit.SessionStore, ws workspace.Service) (rctx.SessionContext, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CwdCommand ¶
CwdCommand exposes the same session/channel binding scopes as /agent and /model.
func NextTurn ¶
NextTurn refreshes bindings for another turn dispatched by the same loop. Prepare stays idempotent within one turn. Custom loops draining follow-ups can call NextTurn before each additional turn just like loop/default.
func Prepare ¶
func Prepare(ctx context.Context, store agentkit.SessionStore, ws workspace.Service) (context.Context, error)
Prepare fixes the context for one turn. Runner, local and remote agents share this entry point; an existing snapshot prevents duplicate work. Callers must serialize turns for a session, as they do for all other session events.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.