diff --git a/agents-api/agents_api/models/execution/prepare_execution_input.py b/agents-api/agents_api/models/execution/prepare_execution_input.py index 80382d38d..33d467465 100644 --- a/agents-api/agents_api/models/execution/prepare_execution_input.py +++ b/agents-api/agents_api/models/execution/prepare_execution_input.py @@ -31,7 +31,7 @@ QueryException: partialclass(HTTPException, status_code=400), ValidationError: partialclass(HTTPException, status_code=400), TypeError: partialclass(HTTPException, status_code=400), - AssertionError: lambda e: HTTPException(status_code=422, detail=str(e)), + AssertionError: lambda e: HTTPException(status_code=400, detail=str(e)), } ) @wrap_in_class(