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§
- Content
Filter - Processor that filters content parts, keeping only those that match a predicate.
- Instruction
Inserter - Processor that prepends a system instruction to every request.
- Request
Processor Chain - An ordered chain of request processors.
- Response
Processor Chain - An ordered chain of response processors.
Enums§
- Processor
Error - Errors from processor operations.
Traits§
- Request
Processor - Trait for processing LLM requests before they are sent.
- Response
Processor - Trait for processing LLM responses after they are received.