Documentation
¶
Overview ¶
Package agentsrpc serves agents.v1 over the agents core: the workspaces and agents of the multiplexer, text sent to an agent, and the inbox.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
Deliverer agents.Deliverer
InboxDir func() string // the inbox; asks.Dir when nil
Now func() time.Time
// Session runs ctx's commands in a local caller's env, its agent calls in
// the session that env names; nil leaves ctx as it is
Session func(ctx context.Context, env []string) context.Context
// Links are the task urls the owner knows for asks, by display project
// and task id, so a terminal's list links them; nil knows none
Links func(ctx context.Context, all []asks.Ask) map[string]map[string]string
}
Options are what the owner of the core supplies: how an answer moves on to a drive, which the agents core knows nothing about, and the inbox.