agentsrpc

package
v0.62.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 asks inbox.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(mux *http.ServeMux, o Options, opts ...connect.HandlerOption)

Mount adds AgentService and AskService to mux.

Types

type Options

type Options struct {
	Deliverer agents.Deliverer
	AsksDir   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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL