Skip to main content

Module executor

Module executor 

Source
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).
PluginStream
A plugin executor’s stream: headers, then chunks until the plugin closes it. Dropping it releases the stream and its callback context.
StreamResponse
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 and none mean 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.