Skip to content

chore: log tool call fields for tool validation errors

What does this merge request do and why?

When a validation error is raised, we see a truncated version of the input field: https://cloudlogging.app.goo.gl/i2eh7NGpmnhrDZoaA. Let's log at least the keys of the tool args to see which ones are specified and which ones are missing.

WriteFileInput accepts file_path and contents and according to the error:

contents
  Field required [type=missing, input_value={'file_path': 'cocc/COCC....errorMessage);\n\t}\n}'}, input_type=dict]

file_path is specified and something that contains text input is specified as well. It should be contents, but maybe it's some different field.

Merge request reports

Loading