Skip to content

setting include_content to 'none' of a Agent with some tools within a loopAgent result in Pipeline break #2611

@Opty0602

Description

@Opty0602

So I am building a pipeline, which is like
ManagerAgent -> AgentTool ( LoopAgent( solution_agent with a tool to retrieve solution + Validator Agent ] )

I am setting include_contents = 'none' in both of the sub agents in LoopAgent, cause i want both of the Agents to be run independently.

i am hydrating my states with necessary information for my subagents to be capable enough to produce an output.

but when my loop is on its second iteration, the pipeline breaks after solution_agent gets the response from retrieval tool (as i am explicitly prompted my agent to always call the tool) and the error i am thrown is

google.genai.errors.ClientError: 400 INVALID_ARGUMENT. {'error': {'code': 400, 'message': 'Unable to submit request because it must have a text parameter. Add a text parameter and try again. Learn more: https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/gemini', 'status': 'INVALID_ARGUMENT'}}\

Please help !!

Metadata

Metadata

Assignees

Labels

core[Component] This issue is related to the core interface and implementation

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions