Versions in this module Expand all Collapse all v0 v0.7.28 Nov 24, 2026 v0.7.27 Nov 22, 2026 v0.7.26 Nov 21, 2026 v0.7.25 Nov 21, 2026 v0.7.24 Nov 21, 2026 Changes in this version + const ABI + var ErrBusy = errors.New("dev: the session is inside another call") + var ErrFull = errors.New("dev: no slot is left for another session") + var ErrHandle = errors.New("dev: the handle names no live session") + var ErrMalformed = errors.New("dev: the payload is not a message of this protocol") + var ErrNull = errors.New("dev: a pointer the caller must supply was null") + var ErrPanic = errors.New("dev: this call panicked; the session is now poisoned") + var ErrPoison = errors.New("dev: a previous call on this session panicked") + type Action struct + ID uint64 + Op Op + func (a *Action) UnmarshalJSONFrom(dec *jsontext.Decoder) error + type Agent struct + Calls []Dispatch + Text *string + type Answer struct + ID uint64 + Reply Reply + type Ask struct + Messages []Message + Model *string + Prelude *string + type Browse struct + Body *string + URL string + type Call struct + Browse *Browse + Exec *Exec + Git *Git + Patch *Patch + Read *Read + Write *Write + func (c *Call) UnmarshalJSONFrom(dec *jsontext.Decoder) error + func (c Call) MarshalJSONTo(enc *jsontext.Encoder) error + type Cancel struct + Turn uint64 + type Config struct + Model *string + Prelude *string + type Core struct + func Open(ctx context.Context) (*Core, error) + func (c *Core) Close(ctx context.Context) error + func (c *Core) New(ctx context.Context, cfg Config) (*Session, error) + func (c *Core) Restore(ctx context.Context, state []byte) (*Session, error) + type Dispatch struct + Call Call + ID uint64 + func (d *Dispatch) UnmarshalJSONFrom(dec *jsontext.Decoder) error + type Done struct + Outcome Outcome + Turn uint64 + func (d *Done) UnmarshalJSONFrom(dec *jsontext.Decoder) error + type Event struct + Browse *Output + Cancel *Cancel + Exec *Output + File *Output + Git *Output + Model *Answer + Timer bool + Turn *Turn + func (e *Event) UnmarshalJSONFrom(dec *jsontext.Decoder) error + func (e Event) MarshalJSONTo(enc *jsontext.Encoder) error + type Exec struct + Argv []string + Cwd *string + type Git struct + Argv []string + type Message struct + Agent *Agent + Tool *Tool + User *string + func (m *Message) UnmarshalJSONFrom(dec *jsontext.Decoder) error + func (m Message) MarshalJSONTo(enc *jsontext.Encoder) error + type Op struct + Browse *Browse + Done *Done + Emit *string + Exec *Exec + Git *Git + Model *Ask + Patch *Patch + Read *Read + Save bool + Write *Write + func (o *Op) UnmarshalJSONFrom(dec *jsontext.Decoder) error + func (o Op) MarshalJSONTo(enc *jsontext.Encoder) error + type Outcome struct + Cancelled bool + Complete bool + func (o *Outcome) UnmarshalJSONFrom(dec *jsontext.Decoder) error + func (o Outcome) MarshalJSONTo(enc *jsontext.Encoder) error + type Output struct + Failed bool + ID uint64 + Text string + type Patch struct + Diff string + Path string + type Read struct + Path string + type Reply struct + Calls []Call + Text *string + type Session struct + func (s *Session) Close(ctx context.Context) error + func (s *Session) Snapshot(ctx context.Context) ([]byte, error) + func (s *Session) Step(ctx context.Context, event Event) ([]Action, error) + type Tool struct + Failed bool + ID uint64 + Text string + type Turn struct + ID uint64 + Prompt string + type Write struct + Path string + Text string