Module processors

Module processors 

Source
Expand description

Request/response processors — middleware for LLM request pipelines.

Unlike ADK-JS where processors are baked into the LLM request pipeline, our processors compose as middleware — they work with any BaseLlm, not just Gemini.

Structs§

ContentFilter
Processor that filters content parts, keeping only those that match a predicate.
InstructionInserter
Processor that prepends a system instruction to every request.
RequestProcessorChain
An ordered chain of request processors.
ResponseProcessorChain
An ordered chain of response processors.

Enums§

ProcessorError
Errors from processor operations.

Traits§

RequestProcessor
Trait for processing LLM requests before they are sent.
ResponseProcessor
Trait for processing LLM responses after they are received.