awslabs / awslabs/agent-evaluation

Invalid type for parameter inputText, value: None, type: <class 'NoneType'>, valid types: <class 'str'>

Open
#98 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
372
Forks
51
PR merge metrics
No merged PRs in 30d

Description

hi all,
i have a test plan with about 30 tests. each test, when run in isolation, works fine. when the test plan contains all 30, the test run often errors out with either:

botocore.exceptions.ParamValidationError: Parameter validation failed:
Invalid type for parameter inputText, value: None, type: , valid types:

or

pydantic_core._pydantic_core.ValidationError: 1 validation error for TestResult
reasoning
Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.10/v/string_type

the traces files generate ok, even with the run errors out. the summary file however is not written out. re-running the eval several times would eventually complete successfully once, then errors out again.

here is an example of the type of tests in the test plan:

question_30:
steps:
- Ask the agent to build a table with the region in rows and vendors in the columns showing data traffic for 17 of January 2025.
expected_results:
- The agent returns the matrix table with region in the rows and vendor in the columns, showing the intersected data traffic
Region | Vendor1 | Vendor2 | Vendor3 | Vendor4
Central | 7229821 | 2459730 | 0 | 0
East | 0 | 4123003 | 148 | 0
North | 0 | 0 | 304 | 0
South | 0 | 2796411 | 1811676 | 0
West | 2510043 | 1356714 | 3917543 | 0
Empty | 0 | 59270 | 209 | 2019

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the full 30-test plan rather than an isolated test, then inspect the trace and summary generation around the TestResult.reasoning and inputText validation errors. Compare successful and failed runs to identify why None appears; done means the complete plan consistently finishes and writes its summary without either validation error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.