fix(dialogflow): support toolCall in ResponseMessage mappers #16360
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.36) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 183 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.312
Real PR Conversation Timeline
1 comments
"Review active on #16360"
general
weight: 0.35
maqiuyujoyce
This pull request was generated by an AI coding agent.
Summary of Changes
pkg/controller/direct/dialogflow/mapper.go, implementedToolCall_ToProtoandToolCall_FromPrototo support mappingtool,action, andinputParametersbetween KRMToolCalland Dialogflow CX protobufpb.ToolCall.- Updated
ResponseMessage_ToPrototo mapin.ToolCalltoout.Message = &pb.ResponseMessage_ToolCall{ToolCall: oneof}, preventing empty message objects{}from being sent to GCP during create and update requests.- Moved and implemented
ResponseMessage_FromProtoinmapper.goto parsein.GetToolCall()intoout.ToolCall.DialogflowPlaybookdeterministic fuzzer inpkg/controller/direct/dialogflow/dialogflowplaybook_fuzzer.generated.go, promoting.tool_callfields to active fuzzer spec fields.pkg/controller/direct/dialogflow/mapper_test.goverifyingToolCallconversion in both directions, nil/empty handling, and round-trip fuzz tests.Fixes #16321
``
release-note
``fix: support toolCall in Dialogflow ResponseMessage mappers
<sub>🤖 Agent session</sub>
<!-- factory:task-output kind=Change task=recipe-fix-20261123-235757-9205 -->