Update

agent: implement contentsRequestProcessor (#23)

Hyang-Ah Hana Kim
2 months ago

Commit: 35ce036

Date: July 8, 2025 at 8:39 PM

  • agent: implement contentsRequestProcessor

and move implemented processors to their own files to help

tracking implementation status easier.

  • agent: correct handling of LLMAgent.IncludeContents

If it is "none", ignore conversation history.

The default ("" or "default") should include conversation history.

Implement IncludeContents = "none" mode.

  • agent: change processors not to return an error for non LLMAgent

This matches Python SDK's behavior --

When processors were invoked against non-llm agent,

nothing happens. No error report, no request mutation, etc.

Added a test for contents request processor like

testcontentprocessornonllm_agent in

adk-python's tests/unittests/flows/llmflows/testcontents.py