Expand description
Plugin executors at the RPC level (internal/pluginhost/adapters_executors.go,
rpc_client_stream.go, executor_route.go): format negotiation, the executor’s provider,
and executor.execute / execute_stream / count_tokens / http_request.
Translation around the call, usage reporting and dispatch live in the server.
Structs§
- Adapter
- One plugin executor (Go
executorAdapter). - Negotiated
- Formats chosen for one call (Go
preparedExecutorCall). - Plugin
Stream - A plugin executor’s stream: headers, then chunks until the plugin closes it. Dropping it releases the stream and its callback context.
- Stream
Response rpcExecutorStreamResponse.
Functions§
- encode_
request - Request bytes an executor plugin receives, for tests and logs.
- normalize_
format - Go
normalizeExecutorFormatName: aliases map to translator formats; anything else is kept as written (trimmed); empty andnonemean no format. - normalize_
formats - Go
normalizeExecutorFormats: normalized, de-duplicated, empty dropped. - translator_
pair_ exists - Go
sdktranslator.HasRequestTransformer/HasResponseTransformer: a registered pair between two named formats.