File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2802,9 +2802,8 @@ fn input_for_query(
28022802 }
28032803}
28042804
2805- /// Validates that tool call results have corresponding tool calls in the task context.
2806- /// Logs an error if a tool call result is found without a corresponding tool call,
2807- /// or if a tool call result is in a different task than the tool call use.
2805+ /// Validates that tool call results have corresponding tool calls in the task context, otherwise
2806+ /// logs a warning.
28082807fn validate_tool_call_results < ' a > (
28092808 inputs : impl Iterator < Item = & ' a AIAgentInput > ,
28102809 tasks : & [ Task ] ,
@@ -2831,8 +2830,9 @@ fn validate_tool_call_results<'a>(
28312830 . unwrap_or ( "None" ) ;
28322831
28332832 if !tool_call_to_task_map. contains_key ( & action_id_str) {
2834- log:: error!(
2835- "Found tool call result with ID '{action_id_str}' but no corresponding tool call in task context. Server conversation ID: '{server_conversation_id}'"
2833+ log:: warn!(
2834+ "Found tool call result with ID '{action_id_str}' but no corresponding tool \
2835+ call in task context. Server conversation ID: '{server_conversation_id}'"
28362836 ) ;
28372837 }
28382838 }
You can’t perform that action at this time.
0 commit comments