relayhost

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 29 Imported by: 1 module, 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

Index

Constants

View Source
const Entry = "relay-host"

Hidden verb of the binary that hosts nemo_relay in an embedded interpreter

Variables

This section is empty.

Functions

func DispatchRelayHostEntry

func DispatchRelayHostEntry(ctx context.Context)

Runs the relay host child when started as one

func Load

func Load() (*tools.NemoRelay, error)

Imports nemo_relay in the relay host child of the relay environment, never provisioning it

func LoadFrom

func LoadFrom(python string) (*tools.NemoRelay, error)

Imports nemo_relay in a relay host child of python, reusing its running child and starting one after an exit

func ProvisionRuntime

func ProvisionRuntime(ctx context.Context, w io.Writer) error

Provisions the relay environment in this process with progress on w, the step that switches Relay on

func Ready

func Ready() bool

Whether Load finds the relay environment provisioned

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Parent end of a relay host child, the production NeMo Relay binding

func Start

func Start(ctx context.Context, python string) (*Client, error)

Starts a child hosting python and imports nemo_relay there

func (*Client) Alive

func (c *Client) Alive() bool

Whether the child still serves requests

func (*Client) Close

func (c *Client) Close()

Closes the channel, ending the child once it finalizes its interpreter, killing it past the finalize deadline

type Object

type Object struct {
	// contains filtered or unexported fields
}

Native object the child holds for the parent, its uuid read when it has one

func (*Object) UUID

func (o *Object) UUID() any

Native uuid of a scope, tool or LLM handle, nil for other objects

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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