google adk what will happened when we did not set the output key correctly in the template
What will happen when we set output wrongly?
pipeline_runner = LlmAgent(
name="pipeline_runner",
model=MODEL,
description=(
"Runs and coordinates the delivery pipeline from dev to test to "
"pre-prod to prod, enforcing promotion gates between stages."
),
instruction=RUNNER_INSTRUCTION,
tools=[run_pipeline_stage, get_stage_status, get_stage_logs],
output_key="pipeline_run_report1111",
)
Generally this is what you will get:-
raise KeyError(f'Context variable not found: `{var_name}`.')
KeyError: 'Context variable not found: `pipeline_run_report`.'
And it looksl like this:

Comments