Skip to main content

Crate plugins_protocol

Crate plugins_protocol 

Source
Expand description

Newt-Agent provider-plugin protocol.

Provider plugins run as separate processes and speak JSON-RPC over stdio. They register opt-in inference backends — most notably the cloud backends (OpenAI, Anthropic) that the default Newt binary deliberately does not link.

v0 surface: initialize, list_models, complete, stream, shutdown.

Modules§

emission_shape
Emission shapes a coder plugin can produce, surfaced in TaskReply.emission_shape when the newt-coder plugin processed the request.

Structs§

CompleteRequest
CompleteResponse
InitializeRequest
InitializeResponse
Message
Usage

Constants§

AGENT_KEY_ENV
Environment variable a Newt host sets when spawning a provider plugin to hand the plugin a base64-encoded JSON CertChain (an attenuated AgentKey) for this dispatch.
PROTOCOL_VERSION

Functions§

read_agent_key_envelope_from_env
Read the agent-key envelope from the AGENT_KEY_ENV env var, if set.